|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RoleSetDAO
public class Hib3RoleSetDAO
Data Access Object for role set
| Field Summary |
|---|
| Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO |
|---|
hibernateInitted |
| Constructor Summary | |
|---|---|
Hib3RoleSetDAO()
|
|
| 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 id)
get all the THEN rows from rowSet about this id. |
java.util.Set<Role> |
rolesInheritPermissionsFromThisImmediate(java.lang.String id)
get all the THEN rows from rowSet about this id (immediate only). |
java.util.Set<Role> |
rolesInheritPermissionsToThis(java.lang.String id)
get all the IF rows from rowSet about this id. |
java.util.Set<Role> |
rolesInheritPermissionsToThisImmediate(java.lang.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 |
| Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO |
|---|
evict, evictEntity, evictQueries, getConfiguration, initHibernateIfNotInitted, resourceNameFromClassName, session |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Hib3RoleSetDAO()
| Method Detail |
|---|
public RoleSet findById(java.lang.String id,
boolean exceptionIfNotFound)
throws AttributeDefNameSetNotFoundException
findById in interface RoleSetDAOAttributeDefNameSetNotFoundExceptionRoleSetDAO.findById(java.lang.String, boolean)public void saveOrUpdate(RoleSet roleSet)
RoleSetDAO
saveOrUpdate in interface RoleSetDAORoleSetDAO.saveOrUpdate(edu.internet2.middleware.grouper.permissions.role.RoleSet)public void delete(RoleSet roleSet)
RoleSetDAO
delete in interface RoleSetDAORoleSetDAO.delete(edu.internet2.middleware.grouper.permissions.role.RoleSet)public java.util.Set<RoleSet> findByIfHasRoleId(java.lang.String id)
RoleSetDAO
findByIfHasRoleId in interface RoleSetDAORoleSetDAO.findByIfHasRoleId(java.lang.String)public java.util.Set<RoleSet> findByIfHasRoleIdImmediate(java.lang.String id)
findByIfHasRoleIdImmediate in interface RoleSetDAORoleSetDAO.findByIfHasRoleIdImmediate(java.lang.String)public java.util.Set<RoleSet> findByThenHasRoleIdImmediate(java.lang.String id)
findByThenHasRoleIdImmediate in interface RoleSetDAORoleSetDAO.findByThenHasRoleIdImmediate(java.lang.String)
public java.util.Set<RoleSet> findByIfThenHasRoleId(java.lang.String roleSetForThens,
java.lang.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(java.lang.String roleIdIf,
java.lang.String roleIdThen,
boolean exceptionIfNotFound)
RoleSetDAO
findByIfThenImmediate in interface RoleSetDAORoleSetDAO.findByIfThenImmediate(java.lang.String, java.lang.String, boolean)public java.util.Set<RoleSet> findByThenHasRoleId(java.lang.String id)
RoleSetDAO
findByThenHasRoleId in interface RoleSetDAORoleSetDAO.findByThenHasRoleId(java.lang.String)public java.util.Set<Role> rolesInheritPermissionsFromThis(java.lang.String id)
RoleSetDAO
rolesInheritPermissionsFromThis in interface RoleSetDAORoleSetDAO.rolesInheritPermissionsFromThis(java.lang.String)public void deleteByIfHasRole(Role role)
RoleSetDAO
deleteByIfHasRole in interface RoleSetDAORoleSetDAO.deleteByIfHasRole(edu.internet2.middleware.grouper.permissions.role.Role)public java.util.Set<Role> rolesInheritPermissionsFromThisImmediate(java.lang.String id)
RoleSetDAO
rolesInheritPermissionsFromThisImmediate in interface RoleSetDAORoleSetDAO.rolesInheritPermissionsFromThisImmediate(java.lang.String)public java.util.Set<Role> rolesInheritPermissionsToThis(java.lang.String id)
RoleSetDAO
rolesInheritPermissionsToThis in interface RoleSetDAORoleSetDAO.rolesInheritPermissionsToThis(java.lang.String)public java.util.Set<Role> rolesInheritPermissionsToThisImmediate(java.lang.String id)
RoleSetDAO
rolesInheritPermissionsToThisImmediate in interface RoleSetDAORoleSetDAO.rolesInheritPermissionsToThisImmediate(java.lang.String)
public RoleSet findByUuidOrKey(java.lang.String id,
java.lang.String ifHasRoleId,
java.lang.String thenHasRoleId,
java.lang.String parentRoleSetId,
int depth,
boolean exceptionIfNull)
RoleSetDAO
findByUuidOrKey in interface RoleSetDAORoleSetDAO.findByUuidOrKey(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, boolean)public void saveUpdateProperties(RoleSet roleSet)
RoleSetDAO
saveUpdateProperties in interface RoleSetDAORoleSetDAO.saveUpdateProperties(edu.internet2.middleware.grouper.permissions.role.RoleSet)
public RoleSet findSelfRoleSet(java.lang.String groupId,
boolean exceptionIfNotFound)
findSelfRoleSet in interface RoleSetDAO
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||