Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2012-01-06 18:05:38 +0000
committerRoberto E. Escobar2012-01-06 18:05:38 +0000
commit826b838b8f25ee09d2eabc062a44f9895538fc24 (patch)
tree46cad5669a668a49f2cdd73d60dfc4837cbe99f5 /plugins/org.eclipse.osee.framework.access
parenta28223f8da83976789db1e226c46c38c5681e1f0 (diff)
downloadorg.eclipse.osee-826b838b8f25ee09d2eabc062a44f9895538fc24.tar.gz
org.eclipse.osee-826b838b8f25ee09d2eabc062a44f9895538fc24.tar.xz
org.eclipse.osee-826b838b8f25ee09d2eabc062a44f9895538fc24.zip
feature: Add clearCaches to AccessControlManager
Diffstat (limited to 'plugins/org.eclipse.osee.framework.access')
-rw-r--r--plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/AccessControlManager.java4
-rw-r--r--plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java5
2 files changed, 9 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/AccessControlManager.java b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/AccessControlManager.java
index e9879a0b42c..b7b60d1fa62 100644
--- a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/AccessControlManager.java
+++ b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/AccessControlManager.java
@@ -41,6 +41,10 @@ public final class AccessControlManager {
return accessService;
}
+ public static void clearCaches() {
+ getService().clearCache();
+ }
+
public static void lockObjects(Collection<Artifact> objects, Artifact subject) throws OseeCoreException {
getService().lockObjects(objects, subject);
}
diff --git a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java
index c203158f6bc..0db46fbf0cf 100644
--- a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java
+++ b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/AccessControlService.java
@@ -147,6 +147,11 @@ public class AccessControlService implements IAccessControlService {
populateAccessControlLists();
}
+ public synchronized void clearCache() {
+ accessDataCache.clear();
+ initializeCaches();
+ }
+
private void initializeCaches() {
accessControlListCache.clear();
objectToSubjectCache.clear();

Back to the top