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 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).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 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:
findById
in interfaceRoleSetDAO
- Returns:
- the attribute def name set or null if not there
- Throws:
AttributeDefNameSetNotFoundException
- See Also:
-
saveOrUpdate
Description copied from interface:RoleSetDAO
insert or update an attribute def name set- Specified by:
saveOrUpdate
in interfaceRoleSetDAO
- See Also:
-
delete
Description copied from interface:RoleSetDAO
delete a role set- Specified by:
delete
in interfaceRoleSetDAO
- See Also:
-
findByIfHasRoleId
Description copied from interface:RoleSetDAO
find by set owner- Specified by:
findByIfHasRoleId
in interfaceRoleSetDAO
- Returns:
- the role set or null if not there
- See Also:
-
findByIfHasRoleIdImmediate
- Specified by:
findByIfHasRoleIdImmediate
in interfaceRoleSetDAO
- Returns:
- set of rolesets
- See Also:
-
findByThenHasRoleIdImmediate
- Specified by:
findByThenHasRoleIdImmediate
in interfaceRoleSetDAO
- Returns:
- set of rolesets
- See Also:
-
findByIfThenHasRoleId
Description copied from interface:RoleSetDAO
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
- Specified by:
findByIfThenHasRoleId
in 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:RoleSetDAO
find by if and then (not same) with depth of 1 (immediate)- Specified by:
findByIfThenImmediate
in interfaceRoleSetDAO
- Returns:
- the roleSet
- See Also:
-
findByThenHasRoleId
Description copied from interface:RoleSetDAO
find by member- Specified by:
findByThenHasRoleId
in interfaceRoleSetDAO
- Returns:
- the role set or null if not there
- See Also:
-
rolesInheritPermissionsFromThis
Description copied from interface:RoleSetDAO
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- Specified by:
rolesInheritPermissionsFromThis
in interfaceRoleSetDAO
- Returns:
- the role
- See Also:
-
deleteByIfHasRole
Description copied from interface:RoleSetDAO
delete role sets by owner, so the role can be deleted- Specified by:
deleteByIfHasRole
in interfaceRoleSetDAO
- See Also:
-
rolesInheritPermissionsFromThisImmediate
Description copied from interface:RoleSetDAO
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- Specified by:
rolesInheritPermissionsFromThisImmediate
in interfaceRoleSetDAO
- Returns:
- the role
- See Also:
-
rolesInheritPermissionsToThis
Description copied from interface:RoleSetDAO
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- Specified by:
rolesInheritPermissionsToThis
in interfaceRoleSetDAO
- Returns:
- the role
- See Also:
-
rolesInheritPermissionsToThisImmediate
Description copied from interface:RoleSetDAO
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- Specified by:
rolesInheritPermissionsToThisImmediate
in 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:RoleSetDAO
find a record by uuid or key- Specified by:
findByUuidOrKey
in interfaceRoleSetDAO
- Returns:
- the roleset or null
- See Also:
-
saveUpdateProperties
Description copied from interface:RoleSetDAO
save the update properties which are auto saved when business method is called- Specified by:
saveUpdateProperties
in interfaceRoleSetDAO
- See Also:
-
findSelfRoleSet
- Specified by:
findSelfRoleSet
in interfaceRoleSetDAO
- Returns:
- roleSet
-