Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/operations/OseeDslRoleContextProvider.java')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/operations/OseeDslRoleContextProvider.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/operations/OseeDslRoleContextProvider.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/operations/OseeDslRoleContextProvider.java
index 6e4342f1de2..d356c639893 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/operations/OseeDslRoleContextProvider.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/operations/OseeDslRoleContextProvider.java
@@ -76,13 +76,13 @@ public class OseeDslRoleContextProvider implements RoleContextProvider {
Set<Role> applicableRoles = getApplicableRoles(dsl.getRoleDeclarations(), applicableGuids);
if (!applicableRoles.isEmpty()) {
- Map<String, String> accessContextMap = new HashMap<String, String>();
+ Map<String, String> accessContextMap = new HashMap<>();
for (AccessContext ac : dsl.getAccessDeclarations()) {
accessContextMap.put(ac.getName(), ac.getGuid());
}
//now get the context id's
- toReturn = new HashSet<IAccessContextId>();
+ toReturn = new HashSet<>();
for (Role role : applicableRoles) {
for (ReferencedContext ref : role.getReferencedContexts()) {
String contextName = ref.getAccessContextRef();
@@ -95,7 +95,7 @@ public class OseeDslRoleContextProvider implements RoleContextProvider {
}
private Set<Role> getApplicableRoles(List<Role> roles, List<String> applicableGuids) {
- Queue<Role> applicableRoles = new LinkedList<Role>();
+ Queue<Role> applicableRoles = new LinkedList<>();
for (Role role : roles) {
for (UsersAndGroups uag : role.getUsersAndGroups()) {
if (applicableGuids.contains(uag.getUserOrGroupGuid()) && !applicableRoles.contains(role)) {
@@ -105,13 +105,13 @@ public class OseeDslRoleContextProvider implements RoleContextProvider {
}
}
- Set<Role> includesInherited = new HashSet<Role>();
+ Set<Role> includesInherited = new HashSet<>();
getSuperRoles(includesInherited, applicableRoles);
return includesInherited;
}
private List<String> getApplicableGuids(Artifact user) {
- List<String> applicableGuids = new LinkedList<String>();
+ List<String> applicableGuids = new LinkedList<>();
List<Artifact> groups = Collections.emptyList();
try {

Back to the top