public class RoleInheritanceDelegate extends Object implements Serializable
Constructor and Description |
---|
RoleInheritanceDelegate(Group group1) |
Modifier and Type | Method and Description |
---|---|
boolean |
addRoleToInheritFromThis(Role roleToAdd)
if a user has this role, then he also inherits permissions from the roleToAdd
for isntance this would be senior admin, and the argument would be admin
|
Set<Role> |
getRolesInheritPermissionsFromThis()
permissions in this role are inherited by other roles in the set returned (immediate or effective)
so if this role is loanAdministrator, then returned set has senior loan administrator
|
Set<Role> |
getRolesInheritPermissionsFromThisImmediate()
permissions in this role are inherited by other roles in the set returned (immediate only)
so if this role is loanAdministrator, then returned set has senior loan administrator
|
Set<Role> |
getRolesInheritPermissionsToThis()
permissions in these returned roles inherit to this role (immediate or effective)
so if this role is senior loan administrator, then returned set has loanAdministrator
|
Set<Role> |
getRolesInheritPermissionsToThisImmediate()
permissions in these returned roles inherit to this role (immediate only)
so if this role is senior loan administrator, then returned set has loanAdministrator
|
boolean |
internal_addRoleToInheritFromThis(Role roleToAdd,
String uuid)
if a user has this role, then he also inherits permissions from the roleToAdd
|
boolean |
removeRoleFromInheritFromThis(Role roleToRemove)
if a user has this role, and he had inheriated permissions from roleToRemove directly, then
remove that relationship
|
public RoleInheritanceDelegate(Group group1)
group1
- public Set<Role> getRolesInheritPermissionsFromThis()
public Set<Role> getRolesInheritPermissionsFromThisImmediate()
public Set<Role> getRolesInheritPermissionsToThis()
public Set<Role> getRolesInheritPermissionsToThisImmediate()
public boolean addRoleToInheritFromThis(Role roleToAdd)
roleToAdd
- public boolean internal_addRoleToInheritFromThis(Role roleToAdd, String uuid)
roleToAdd
- uuid
- is id or null if assignedpublic boolean removeRoleFromInheritFromThis(Role roleToRemove)
roleToRemove
- Copyright © 2016 Internet2. All rights reserved.