Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2012-04-18 18:47:21 +0000
committerRoberto E. Escobar2012-04-18 18:47:21 +0000
commite61f0abfaf278defaf779d193530a902ca8cac0f (patch)
tree90da2e4eee0a59061f243110ed10293c91c37b98 /plugins
parentae8056a5a5c834806c245e8b41e1ccac52a3ef6b (diff)
downloadorg.eclipse.osee-e61f0abfaf278defaf779d193530a902ca8cac0f.tar.gz
org.eclipse.osee-e61f0abfaf278defaf779d193530a902ca8cac0f.tar.xz
org.eclipse.osee-e61f0abfaf278defaf779d193530a902ca8cac0f.zip
feature[ats_VDYBJ]: Change access control clear cache to reload cache
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlServiceProxy.java10
-rw-r--r--plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProviderProxy.java8
2 files changed, 12 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlServiceProxy.java b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlServiceProxy.java
index 859e7f7ddf..f4604f4c70 100644
--- a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlServiceProxy.java
+++ b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlServiceProxy.java
@@ -11,6 +11,7 @@
package org.eclipse.osee.framework.access.internal;
import java.util.Collection;
+import java.util.logging.Level;
import org.eclipse.osee.framework.core.data.IOseeBranch;
import org.eclipse.osee.framework.core.enums.PermissionEnum;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
@@ -21,6 +22,7 @@ import org.eclipse.osee.framework.core.services.IOseeCachingService;
import org.eclipse.osee.framework.core.services.IdentityService;
import org.eclipse.osee.framework.core.util.Conditions;
import org.eclipse.osee.framework.database.IOseeDatabaseService;
+import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
public final class AccessControlServiceProxy implements IAccessControlService {
@@ -48,8 +50,12 @@ public final class AccessControlServiceProxy implements IAccessControlService {
return accessService;
}
- public void clearCache() {
- getProxiedObject().clearCache();
+ public void reloadCache() {
+ try {
+ getProxiedObject().reloadCache();
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AccessControlServiceProxy.class, Level.WARNING, ex);
+ }
}
public void start() {
diff --git a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProviderProxy.java b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProviderProxy.java
index 6645429d0d..5f6061fce3 100644
--- a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProviderProxy.java
+++ b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProviderProxy.java
@@ -49,7 +49,7 @@ public final class CmAccessProviderProxy implements IAccessProvider {
} else {
cmServices.add(cmAccessControl);
}
- refreshCache();
+ reloadCache();
}
public void removeCmAccessControl(CmAccessControl cmAccessControl, Map<String, Object> properties) {
@@ -58,7 +58,7 @@ public final class CmAccessProviderProxy implements IAccessProvider {
} else {
cmServices.remove(cmAccessControl);
}
- refreshCache();
+ reloadCache();
}
private boolean isDefault(Map<String, Object> properties) {
@@ -78,9 +78,9 @@ public final class CmAccessProviderProxy implements IAccessProvider {
cmServices.clear();
}
- public void refreshCache() {
+ public void reloadCache() {
if (accessControlService instanceof AccessControlServiceProxy) {
- ((AccessControlServiceProxy) accessControlService).clearCache();
+ ((AccessControlServiceProxy) accessControlService).reloadCache();
}
}

Back to the top