Class RoleInheritanceDelegate
java.lang.Object
edu.internet2.middleware.grouper.permissions.role.RoleInheritanceDelegate
- All Implemented Interfaces:
Serializable
delegate the role
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 adminpermissions 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 administratorpermissions 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 administratorpermissions in these returned roles inherit to this role (immediate or effective) so if this role is senior loan administrator, then returned set has loanAdministratorpermissions in these returned roles inherit to this role (immediate only) so if this role is senior loan administrator, then returned set has loanAdministratorboolean
internal_addRoleToInheritFromThis
(Role roleToAdd, String uuid) if a user has this role, then he also inherits permissions from the roleToAddboolean
removeRoleFromInheritFromThis
(Role roleToRemove) if a user has this role, and he had inheriated permissions from roleToRemove directly, then remove that relationship
-
Constructor Details
-
RoleInheritanceDelegate
- Parameters:
group1
-
-
-
Method Details
-
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- Returns:
- set of roles not including this role, or empty set if none available
-
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- Returns:
- set of roles not including this role, or empty set if none available
-
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- Returns:
- set of roles not including this role, or empty set if none available
-
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- Returns:
- set of roles not including this role, or empty set if none available
-
addRoleToInheritFromThis
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- Parameters:
roleToAdd
-- Returns:
- true if added, false if already there
-
internal_addRoleToInheritFromThis
if a user has this role, then he also inherits permissions from the roleToAdd- Parameters:
roleToAdd
-uuid
- is id or null if assigned- Returns:
- true if added, false if already there
-
removeRoleFromInheritFromThis
if a user has this role, and he had inheriated permissions from roleToRemove directly, then remove that relationship- Parameters:
roleToRemove
-- Returns:
- true if removed, false if already not there
-