public interface RoleSetDAO extends GrouperDAO
Modifier and Type | Method and Description |
---|---|
void |
delete(RoleSet roleSet)
delete a role set
|
void |
deleteByIfHasRole(Role role)
delete role sets by owner, so the role can be deleted
|
RoleSet |
findById(String id,
boolean exceptionIfNotFound) |
Set<RoleSet> |
findByIfHasRoleId(String id)
find by set owner
|
Set<RoleSet> |
findByIfHasRoleIdImmediate(String id) |
Set<RoleSet> |
findByIfThenHasRoleId(String roleSetForThens,
String roleSetForIfs)
this will help with deletes.
|
RoleSet |
findByIfThenImmediate(String roleIdIf,
String roleIdThen,
boolean exceptionIfNotFound)
find by if and then (not same) with depth of 1 (immediate)
|
Set<RoleSet> |
findByThenHasRoleId(String id)
find by member
|
Set<RoleSet> |
findByThenHasRoleIdImmediate(String id) |
RoleSet |
findByUuidOrKey(String id,
String ifHasRoleId,
String thenHasRoleId,
String parentRoleSetId,
int depth,
boolean exceptionIfNull)
find a record by uuid or key
|
RoleSet |
findSelfRoleSet(String groupId,
boolean exceptionIfNotFound) |
Set<Role> |
rolesInheritPermissionsFromThis(String roleId)
get all the THEN rows from rowSet about this id.
|
Set<Role> |
rolesInheritPermissionsFromThisImmediate(String roleId)
get all the THEN rows from rowSet about this id (immediate only).
|
Set<Role> |
rolesInheritPermissionsToThis(String roleId)
get all the IF rows from rowSet about this id.
|
Set<Role> |
rolesInheritPermissionsToThisImmediate(String roleId)
get all the IF rows from rowSet about this id (immediate only).
|
void |
saveOrUpdate(RoleSet roleSet)
insert or update an attribute def name set
|
void |
saveUpdateProperties(RoleSet roleSet)
save the update properties which are auto saved when business method is called
|
void deleteByIfHasRole(Role role)
role
- void saveOrUpdate(RoleSet roleSet)
roleSet
- void delete(RoleSet roleSet)
roleSet
- RoleSet findById(String id, boolean exceptionIfNotFound) throws RoleSetNotFoundException
id
- exceptionIfNotFound
- RoleSetNotFoundException
Set<RoleSet> findByIfHasRoleId(String id)
id
- Set<RoleSet> findByThenHasRoleId(String id)
id
- Set<RoleSet> findByIfThenHasRoleId(String roleSetForThens, String roleSetForIfs)
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
roleSetForThens
- roleSetForIfs
- RoleSet findByIfThenImmediate(String roleIdIf, String roleIdThen, boolean exceptionIfNotFound)
roleIdIf
- roleIdThen
- exceptionIfNotFound
- Set<Role> rolesInheritPermissionsToThis(String roleId)
roleId
- Set<Role> rolesInheritPermissionsToThisImmediate(String roleId)
roleId
- Set<Role> rolesInheritPermissionsFromThis(String roleId)
roleId
- Set<Role> rolesInheritPermissionsFromThisImmediate(String roleId)
roleId
- RoleSet findByUuidOrKey(String id, String ifHasRoleId, String thenHasRoleId, String parentRoleSetId, int depth, boolean exceptionIfNull)
id
- ifHasRoleId
- thenHasRoleId
- parentRoleSetId
- depth
- exceptionIfNull
- void saveUpdateProperties(RoleSet roleSet)
roleSet
- RoleSet findSelfRoleSet(String groupId, boolean exceptionIfNotFound)
groupId
- exceptionIfNotFound
- Set<RoleSet> findByIfHasRoleIdImmediate(String id)
id
- Copyright © 2016 Internet2. All rights reserved.