Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2011-04-14 19:54:15 +0000
committerRyan D. Brooks2011-04-14 19:54:15 +0000
commit3cd8f4cef125734e2d1a99039143ffbb07d7221c (patch)
tree7212d5993a4c3539d43ec307698d93776efe2a92 /plugins/org.eclipse.osee.framework.access
parenta4a4ecaee85f8549b61500c15154938ed61f2da5 (diff)
downloadorg.eclipse.osee-3cd8f4cef125734e2d1a99039143ffbb07d7221c.tar.gz
org.eclipse.osee-3cd8f4cef125734e2d1a99039143ffbb07d7221c.tar.xz
org.eclipse.osee-3cd8f4cef125734e2d1a99039143ffbb07d7221c.zip
feature[ats_YGHW1]: Block changes to requirements unless done under an appropriate action
Diffstat (limited to 'plugins/org.eclipse.osee.framework.access')
-rw-r--r--plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProvider.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProvider.java b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProvider.java
index 2e229b96cf9..ec19d1826bb 100644
--- a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProvider.java
+++ b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessProvider.java
@@ -15,7 +15,7 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import org.eclipse.osee.framework.access.IAccessProvider;
-import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.data.IAccessContextId;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.model.IBasicArtifact;
import org.eclipse.osee.framework.core.model.access.AccessData;
@@ -38,15 +38,15 @@ public class CmAccessProvider implements IAccessProvider {
@Override
public void computeAccess(IBasicArtifact<?> userArtifact, Collection<?> objToChecks, AccessData accessData) throws OseeCoreException {
- DoubleKeyHashMap<CmAccessControl, AccessContextId, Collection<Object>> cmToCheckObjects =
- new DoubleKeyHashMap<CmAccessControl, AccessContextId, Collection<Object>>();
+ DoubleKeyHashMap<CmAccessControl, IAccessContextId, Collection<Object>> cmToCheckObjects =
+ new DoubleKeyHashMap<CmAccessControl, IAccessContextId, Collection<Object>>();
for (Object objectToCheck : objToChecks) {
CmAccessControl management = provider.getService(userArtifact, objectToCheck);
if (management instanceof HasAccessModel) {
- Collection<? extends AccessContextId> contextIds = management.getContextId(userArtifact, objectToCheck);
+ Collection<? extends IAccessContextId> contextIds = management.getContextId(userArtifact, objectToCheck);
if (contextIds != null) {
- for (AccessContextId contextId : contextIds) {
+ for (IAccessContextId contextId : contextIds) {
Collection<Object> entries = cmToCheckObjects.get(management, contextId);
if (entries == null) {
entries = new HashSet<Object>();
@@ -60,9 +60,9 @@ public class CmAccessProvider implements IAccessProvider {
for (CmAccessControl cm : cmToCheckObjects.getKeySetOne()) {
AccessModel accessModel = ((HasAccessModel) cm).getAccessModel();
- Map<AccessContextId, Collection<Object>> sub = cmToCheckObjects.getSubHash(cm);
- for (Entry<AccessContextId, Collection<Object>> entry : sub.entrySet()) {
- AccessContextId contextId = entry.getKey();
+ Map<IAccessContextId, Collection<Object>> sub = cmToCheckObjects.getSubHash(cm);
+ for (Entry<IAccessContextId, Collection<Object>> entry : sub.entrySet()) {
+ IAccessContextId contextId = entry.getKey();
Collection<Object> objectsToCheck = entry.getValue();
accessModel.computeAccess(contextId, objectsToCheck, accessData);

Back to the top