Class Hib3RoleSetDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RoleSetDAO
- All Implemented Interfaces:
GrouperDAO,RoleSetDAO
Data Access Object for role set
- Version:
- $Id: Hib3RoleSetDAO.java,v 1.6 2009-11-08 13:16:53 mchyzer Exp $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete a role setvoiddeleteByIfHasRole(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).get all the IF rows from rowSet about this id.get all the IF rows from rowSet about this id (immediate only).voidsaveOrUpdate(RoleSet roleSet) insert or update an attribute def name setvoidsaveUpdateProperties(RoleSet roleSet) save the update properties which are auto saved when business method is calledMethods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, session
-
Constructor Details
-
Hib3RoleSetDAO
public Hib3RoleSetDAO()
-
-
Method Details
-
findById
public RoleSet findById(String id, boolean exceptionIfNotFound) throws AttributeDefNameSetNotFoundException - Specified by:
findByIdin interfaceRoleSetDAO- Returns:
- the attribute def name set or null if not there
- Throws:
AttributeDefNameSetNotFoundException- See Also:
-
saveOrUpdate
Description copied from interface:RoleSetDAOinsert or update an attribute def name set- Specified by:
saveOrUpdatein interfaceRoleSetDAO- See Also:
-
delete
Description copied from interface:RoleSetDAOdelete a role set- Specified by:
deletein interfaceRoleSetDAO- See Also:
-
findByIfHasRoleId
Description copied from interface:RoleSetDAOfind by set owner- Specified by:
findByIfHasRoleIdin interfaceRoleSetDAO- Returns:
- the role set or null if not there
- See Also:
-
findByIfHasRoleIdImmediate
- Specified by:
findByIfHasRoleIdImmediatein interfaceRoleSetDAO- Returns:
- set of rolesets
- See Also:
-
findByThenHasRoleIdImmediate
- Specified by:
findByThenHasRoleIdImmediatein interfaceRoleSetDAO- Returns:
- set of rolesets
- See Also:
-
findByIfThenHasRoleId
Description copied from interface: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
- Specified by:
findByIfThenHasRoleIdin interfaceRoleSetDAO- Returns:
- the attribute def name set or null if not there
- See Also:
-
findByIfThenImmediate
public RoleSet findByIfThenImmediate(String roleIdIf, String roleIdThen, boolean exceptionIfNotFound) Description copied from interface:RoleSetDAOfind by if and then (not same) with depth of 1 (immediate)- Specified by:
findByIfThenImmediatein interfaceRoleSetDAO- Returns:
- the roleSet
- See Also:
-
findByThenHasRoleId
Description copied from interface:RoleSetDAOfind by member- Specified by:
findByThenHasRoleIdin interfaceRoleSetDAO- Returns:
- the role set or null if not there
- See Also:
-
rolesInheritPermissionsFromThis
Description copied from interface:RoleSetDAOget 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- Specified by:
rolesInheritPermissionsFromThisin interfaceRoleSetDAO- Returns:
- the role
- See Also:
-
deleteByIfHasRole
Description copied from interface:RoleSetDAOdelete role sets by owner, so the role can be deleted- Specified by:
deleteByIfHasRolein interfaceRoleSetDAO- See Also:
-
rolesInheritPermissionsFromThisImmediate
Description copied from interface:RoleSetDAOget 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- Specified by:
rolesInheritPermissionsFromThisImmediatein interfaceRoleSetDAO- Returns:
- the role
- See Also:
-
rolesInheritPermissionsToThis
Description copied from interface:RoleSetDAOget 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- Specified by:
rolesInheritPermissionsToThisin interfaceRoleSetDAO- Returns:
- the role
- See Also:
-
rolesInheritPermissionsToThisImmediate
Description copied from interface:RoleSetDAOget 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- Specified by:
rolesInheritPermissionsToThisImmediatein interfaceRoleSetDAO- Returns:
- the role
- See Also:
-
findByUuidOrKey
public RoleSet findByUuidOrKey(String id, String ifHasRoleId, String thenHasRoleId, String parentRoleSetId, int depth, boolean exceptionIfNull) Description copied from interface:RoleSetDAOfind a record by uuid or key- Specified by:
findByUuidOrKeyin interfaceRoleSetDAO- Returns:
- the roleset or null
- See Also:
-
saveUpdateProperties
Description copied from interface:RoleSetDAOsave the update properties which are auto saved when business method is called- Specified by:
saveUpdatePropertiesin interfaceRoleSetDAO- See Also:
-
findSelfRoleSet
- Specified by:
findSelfRoleSetin interfaceRoleSetDAO- Returns:
- roleSet
-