Ejemplo n.º 1
0
 @Override
 public Set<String> permissionStrings() {
   Set<String> permissionStrings = new HashSet<String>();
   for (RoleAssignment assignment : roleAssignee.roleAssignments()) {
     permissionStrings.addAll(assignment.role().get().permissions().get());
   }
   return Collections.unmodifiableSet(permissionStrings);
 }
Ejemplo n.º 2
0
 @Override
 public Set<String> roleNames() {
   Set<String> roleNames = new HashSet<String>();
   for (RoleAssignment assignment : roleAssignee.roleAssignments()) {
     roleNames.add(assignment.role().get().name().get());
   }
   return Collections.unmodifiableSet(roleNames);
 }