Interface RoleSetDAO
- All Superinterfaces:
GrouperDAO
- All Known Implementing Classes:
Hib3RoleSetDAO
attribute def name set, links up attributes with other attributes (probably for privs)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete a role setvoid
deleteByIfHasRole
(Role role) delete role sets by owner, so the role can be deletedfind by set ownerfindByIfThenHasRoleId
(String roleSetForThens, String roleSetForIfs) this will help with deletes.findByIfThenImmediate
(String roleIdIf, String roleIdThen, boolean exceptionIfNotFound) find by if and then (not same) with depth of 1 (immediate)find by memberfindByUuidOrKey
(String id, String ifHasRoleId, String thenHasRoleId, String parentRoleSetId, int depth, boolean exceptionIfNull) find a record by uuid or keyfindSelfRoleSet
(String groupId, boolean exceptionIfNotFound) get all the THEN rows from rowSet about this id.get all the THEN rows from rowSet about this id (immediate only).rolesInheritPermissionsToThis
(String roleId) get all the IF rows from rowSet about this id.get all the IF rows from rowSet about this id (immediate only).void
saveOrUpdate
(RoleSet roleSet) insert or update an attribute def name setvoid
saveUpdateProperties
(RoleSet roleSet) save the update properties which are auto saved when business method is called
-
Method Details
-
deleteByIfHasRole
delete role sets by owner, so the role can be deleted- Parameters:
role
-
-
saveOrUpdate
insert or update an attribute def name set- Parameters:
roleSet
-
-
delete
delete a role set- Parameters:
roleSet
-
-
findById
- Parameters:
id
-exceptionIfNotFound
-- Returns:
- the attribute def name set or null if not there
- Throws:
RoleSetNotFoundException
-
findByIfHasRoleId
find by set owner- Parameters:
id
-- Returns:
- the role set or null if not there
-
findByThenHasRoleId
find by member- Parameters:
id
-- Returns:
- the role set or null if not there
-
findByIfThenHasRoleId
this will help with deletes. It will find sets who have if's which match thens provided, and thens which match ifs provided. So if there is this path: A -> B -> C -> D And the inputs here are B and C (removing that path) Then return A -> C, A -> D, B -> C, B -> D
- Parameters:
roleSetForThens
-roleSetForIfs
-- Returns:
- the attribute def name set or null if not there
-
findByIfThenImmediate
find by if and then (not same) with depth of 1 (immediate)- Parameters:
roleIdIf
-roleIdThen
-exceptionIfNotFound
-- Returns:
- the roleSet
-
rolesInheritPermissionsToThis
get all the IF rows from rowSet about this id. So if this is seniorLoanAdministator, loanAdministrator would be returned. Dont return the role for the id passed in- Parameters:
roleId
-- Returns:
- the role
-
rolesInheritPermissionsToThisImmediate
get all the IF rows from rowSet about this id (immediate only). So if this is seniorLoanAdministator, loanAdministrator would be returned. Dont return the role for the id passed in- Parameters:
roleId
-- Returns:
- the role
-
rolesInheritPermissionsFromThis
get all the THEN rows from rowSet about this id. So if this is loanAdministrator, seniorLoanAdministator would be returned. Dont return the role for the id passed in- Parameters:
roleId
-- Returns:
- the role
-
rolesInheritPermissionsFromThisImmediate
get all the THEN rows from rowSet about this id (immediate only). So if this is loanAdministrator, seniorLoanAdministator would be returned. Dont return the role for the id passed in- Parameters:
roleId
-- Returns:
- the role
-
findByUuidOrKey
RoleSet findByUuidOrKey(String id, String ifHasRoleId, String thenHasRoleId, String parentRoleSetId, int depth, boolean exceptionIfNull) find a record by uuid or key- Parameters:
id
-ifHasRoleId
-thenHasRoleId
-parentRoleSetId
-depth
-exceptionIfNull
-- Returns:
- the roleset or null
-
saveUpdateProperties
save the update properties which are auto saved when business method is called- Parameters:
roleSet
-
-
findSelfRoleSet
- Parameters:
groupId
-exceptionIfNotFound
-- Returns:
- roleSet
-
findByIfHasRoleIdImmediate
- Parameters:
id
-- Returns:
- set of rolesets
-
findByThenHasRoleIdImmediate
- Parameters:
id
-- Returns:
- set of rolesets
-