public class Hib3RoleSetDAO extends Hib3DAO implements RoleSetDAO
| Constructor and Description |
|---|
Hib3RoleSetDAO() |
| 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 id)
get all the THEN rows from rowSet about this id.
|
Set<Role> |
rolesInheritPermissionsFromThisImmediate(String id)
get all the THEN rows from rowSet about this id (immediate only).
|
Set<Role> |
rolesInheritPermissionsToThis(String id)
get all the IF rows from rowSet about this id.
|
Set<Role> |
rolesInheritPermissionsToThisImmediate(String id)
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
|
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, sessionpublic RoleSet findById(String id, boolean exceptionIfNotFound) throws AttributeDefNameSetNotFoundException
findById in interface RoleSetDAOAttributeDefNameSetNotFoundExceptionRoleSetDAO.findById(java.lang.String, boolean)public void saveOrUpdate(RoleSet roleSet)
RoleSetDAOsaveOrUpdate in interface RoleSetDAORoleSetDAO.saveOrUpdate(edu.internet2.middleware.grouper.permissions.role.RoleSet)public void delete(RoleSet roleSet)
RoleSetDAOdelete in interface RoleSetDAORoleSetDAO.delete(edu.internet2.middleware.grouper.permissions.role.RoleSet)public Set<RoleSet> findByIfHasRoleId(String id)
RoleSetDAOfindByIfHasRoleId in interface RoleSetDAORoleSetDAO.findByIfHasRoleId(java.lang.String)public Set<RoleSet> findByIfHasRoleIdImmediate(String id)
findByIfHasRoleIdImmediate in interface RoleSetDAORoleSetDAO.findByIfHasRoleIdImmediate(java.lang.String)public Set<RoleSet> findByThenHasRoleIdImmediate(String id)
findByThenHasRoleIdImmediate in interface RoleSetDAORoleSetDAO.findByThenHasRoleIdImmediate(java.lang.String)public Set<RoleSet> findByIfThenHasRoleId(String roleSetForThens, String roleSetForIfs)
RoleSetDAOthis 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
findByIfThenHasRoleId in interface RoleSetDAORoleSetDAO.findByIfThenHasRoleId(java.lang.String, java.lang.String)public RoleSet findByIfThenImmediate(String roleIdIf, String roleIdThen, boolean exceptionIfNotFound)
RoleSetDAOfindByIfThenImmediate in interface RoleSetDAORoleSetDAO.findByIfThenImmediate(java.lang.String, java.lang.String, boolean)public Set<RoleSet> findByThenHasRoleId(String id)
RoleSetDAOfindByThenHasRoleId in interface RoleSetDAORoleSetDAO.findByThenHasRoleId(java.lang.String)public Set<Role> rolesInheritPermissionsFromThis(String id)
RoleSetDAOrolesInheritPermissionsFromThis in interface RoleSetDAORoleSetDAO.rolesInheritPermissionsFromThis(java.lang.String)public void deleteByIfHasRole(Role role)
RoleSetDAOdeleteByIfHasRole in interface RoleSetDAORoleSetDAO.deleteByIfHasRole(edu.internet2.middleware.grouper.permissions.role.Role)public Set<Role> rolesInheritPermissionsFromThisImmediate(String id)
RoleSetDAOrolesInheritPermissionsFromThisImmediate in interface RoleSetDAORoleSetDAO.rolesInheritPermissionsFromThisImmediate(java.lang.String)public Set<Role> rolesInheritPermissionsToThis(String id)
RoleSetDAOrolesInheritPermissionsToThis in interface RoleSetDAORoleSetDAO.rolesInheritPermissionsToThis(java.lang.String)public Set<Role> rolesInheritPermissionsToThisImmediate(String id)
RoleSetDAOrolesInheritPermissionsToThisImmediate in interface RoleSetDAORoleSetDAO.rolesInheritPermissionsToThisImmediate(java.lang.String)public RoleSet findByUuidOrKey(String id, String ifHasRoleId, String thenHasRoleId, String parentRoleSetId, int depth, boolean exceptionIfNull)
RoleSetDAOfindByUuidOrKey in interface RoleSetDAORoleSetDAO.findByUuidOrKey(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, boolean)public void saveUpdateProperties(RoleSet roleSet)
RoleSetDAOsaveUpdateProperties in interface RoleSetDAORoleSetDAO.saveUpdateProperties(edu.internet2.middleware.grouper.permissions.role.RoleSet)public RoleSet findSelfRoleSet(String groupId, boolean exceptionIfNotFound)
findSelfRoleSet in interface RoleSetDAOCopyright © 2016 Internet2. All rights reserved.