|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleSetDAO
attribute def name set, links up attributes with other attributes (probably for privs)
Method Summary | |
---|---|
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(java.lang.String id,
boolean exceptionIfNotFound)
|
java.util.Set<RoleSet> |
findByIfHasRoleId(java.lang.String id)
find by set owner |
java.util.Set<RoleSet> |
findByIfHasRoleIdImmediate(java.lang.String id)
|
java.util.Set<RoleSet> |
findByIfThenHasRoleId(java.lang.String roleSetForThens,
java.lang.String roleSetForIfs)
this will help with deletes. |
RoleSet |
findByIfThenImmediate(java.lang.String roleIdIf,
java.lang.String roleIdThen,
boolean exceptionIfNotFound)
find by if and then (not same) with depth of 1 (immediate) |
java.util.Set<RoleSet> |
findByThenHasRoleId(java.lang.String id)
find by member |
java.util.Set<RoleSet> |
findByThenHasRoleIdImmediate(java.lang.String id)
|
RoleSet |
findByUuidOrKey(java.lang.String id,
java.lang.String ifHasRoleId,
java.lang.String thenHasRoleId,
java.lang.String parentRoleSetId,
int depth,
boolean exceptionIfNull)
find a record by uuid or key |
RoleSet |
findSelfRoleSet(java.lang.String groupId,
boolean exceptionIfNotFound)
|
java.util.Set<Role> |
rolesInheritPermissionsFromThis(java.lang.String roleId)
get all the THEN rows from rowSet about this id. |
java.util.Set<Role> |
rolesInheritPermissionsFromThisImmediate(java.lang.String roleId)
get all the THEN rows from rowSet about this id (immediate only). |
java.util.Set<Role> |
rolesInheritPermissionsToThis(java.lang.String roleId)
get all the IF rows from rowSet about this id. |
java.util.Set<Role> |
rolesInheritPermissionsToThisImmediate(java.lang.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 |
Method Detail |
---|
void deleteByIfHasRole(Role role)
role
- void saveOrUpdate(RoleSet roleSet)
roleSet
- void delete(RoleSet roleSet)
roleSet
- RoleSet findById(java.lang.String id, boolean exceptionIfNotFound) throws RoleSetNotFoundException
id
- exceptionIfNotFound
-
RoleSetNotFoundException
java.util.Set<RoleSet> findByIfHasRoleId(java.lang.String id)
id
-
java.util.Set<RoleSet> findByThenHasRoleId(java.lang.String id)
id
-
java.util.Set<RoleSet> findByIfThenHasRoleId(java.lang.String roleSetForThens, java.lang.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(java.lang.String roleIdIf, java.lang.String roleIdThen, boolean exceptionIfNotFound)
roleIdIf
- roleIdThen
- exceptionIfNotFound
-
java.util.Set<Role> rolesInheritPermissionsToThis(java.lang.String roleId)
roleId
-
java.util.Set<Role> rolesInheritPermissionsToThisImmediate(java.lang.String roleId)
roleId
-
java.util.Set<Role> rolesInheritPermissionsFromThis(java.lang.String roleId)
roleId
-
java.util.Set<Role> rolesInheritPermissionsFromThisImmediate(java.lang.String roleId)
roleId
-
RoleSet findByUuidOrKey(java.lang.String id, java.lang.String ifHasRoleId, java.lang.String thenHasRoleId, java.lang.String parentRoleSetId, int depth, boolean exceptionIfNull)
id
- ifHasRoleId
- thenHasRoleId
- parentRoleSetId
- depth
- exceptionIfNull
-
void saveUpdateProperties(RoleSet roleSet)
roleSet
- RoleSet findSelfRoleSet(java.lang.String groupId, boolean exceptionIfNotFound)
groupId
- exceptionIfNotFound
-
java.util.Set<RoleSet> findByIfHasRoleIdImmediate(java.lang.String id)
id
-
java.util.Set<RoleSet> findByThenHasRoleIdImmediate(java.lang.String id)
id
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |