Class Hib3PITGroupDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3PITGroupDAO
- All Implemented Interfaces:
GrouperDAO
,PITGroupDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deletevoid
Delete (won't run pre and post delete methods)long
Delete records that ended before the given date.findByIds
(Collection<String> ids) findByName
(String groupName, boolean orderByStartTime) findBySourceId
(String id, boolean exceptionIfNotFound) findBySourceIdActive
(String id, boolean exceptionIfNotFound) findBySourceIdActive
(String id, boolean createIfNotFound, boolean exceptionIfNotFound) findBySourceIdUnique
(String id, boolean exceptionIfNotFound) findBySourceInternalIdActive
(long sourceInternalId, boolean exceptionIfNotFound) Find the roles that have permissions containing the specified objectFind the roles that have permissions containing the specified objectfindRolesWithPermissionsContainingObject
(PITAttributeDefNameSet attributeDefNameSet) Find the roles that have permissions containing the specified objectFind the roles that have permissions containing the specified objectFind the roles that have permissions containing the specified objectgetAllGroupsMembershipSecure
(String pitMemberId, String pitFieldId, String scope, PITStem pitStem, Stem.Scope stemScope, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, QueryOptions queryOptions) Get all the groups that a member is a member of.static void
reset
(HibernateSession hibernateSession) resetvoid
saveOrUpdate
(PITGroup pitGroup) insert or updatevoid
saveOrUpdate
(Set<PITGroup> pitGroups) insert or updateMethods 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
-
Hib3PITGroupDAO
public Hib3PITGroupDAO()
-
-
Method Details
-
saveOrUpdate
Description copied from interface:PITGroupDAO
insert or update- Specified by:
saveOrUpdate
in interfacePITGroupDAO
- See Also:
-
saveOrUpdate
Description copied from interface:PITGroupDAO
insert or update- Specified by:
saveOrUpdate
in interfacePITGroupDAO
- See Also:
-
delete
Description copied from interface:PITGroupDAO
delete- Specified by:
delete
in interfacePITGroupDAO
- See Also:
-
reset
reset- Parameters:
hibernateSession
-
-
findBySourceIdActive
- Specified by:
findBySourceIdActive
in interfacePITGroupDAO
- Returns:
- PITGroup
- See Also:
-
findBySourceInternalIdActive
- Specified by:
findBySourceInternalIdActive
in interfacePITGroupDAO
- Returns:
- PITGroup
-
findBySourceIdActive
public PITGroup findBySourceIdActive(String id, boolean createIfNotFound, boolean exceptionIfNotFound) - Specified by:
findBySourceIdActive
in interfacePITGroupDAO
- Returns:
- PITGroup
- See Also:
-
findBySourceIdsActive
- Specified by:
findBySourceIdsActive
in interfacePITGroupDAO
- Returns:
- PITMembership
-
findByIds
- Specified by:
findByIds
in interfacePITGroupDAO
- Returns:
- map pit groups keyed by id
-
findBySourceIdUnique
- Specified by:
findBySourceIdUnique
in interfacePITGroupDAO
- Returns:
- PITGroup
- See Also:
-
findBySourceId
- Specified by:
findBySourceId
in interfacePITGroupDAO
- Returns:
- set of pit groups
- See Also:
-
findById
- Specified by:
findById
in interfacePITGroupDAO
- Returns:
- PITGroup
- See Also:
-
findByName
- Specified by:
findByName
in interfacePITGroupDAO
- Returns:
- set of pit groups
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.PITGroupDAO#findByName(java.lang.String)
-
deleteInactiveRecords
Description copied from interface:PITGroupDAO
Delete records that ended before the given date.- Specified by:
deleteInactiveRecords
in interfacePITGroupDAO
- Returns:
- the number of records deleted
- See Also:
-
getAllGroupsMembershipSecure
public Set<PITGroup> getAllGroupsMembershipSecure(String pitMemberId, String pitFieldId, String scope, PITStem pitStem, Stem.Scope stemScope, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, QueryOptions queryOptions) Description copied from interface:PITGroupDAO
Get all the groups that a member is a member of.- Specified by:
getAllGroupsMembershipSecure
in interfacePITGroupDAO
- Returns:
- set of pit groups
- See Also:
-
findByPITStemId
- Specified by:
findByPITStemId
in interfacePITGroupDAO
- Returns:
- set of PITGroup
- See Also:
-
findMissingActivePITGroups
- Specified by:
findMissingActivePITGroups
in interfacePITGroupDAO
- Returns:
- active groups that are missing in point in time
- See Also:
-
findMissingInactivePITGroups
- Specified by:
findMissingInactivePITGroups
in interfacePITGroupDAO
- Returns:
- active point in time groups that should be inactive
- See Also:
-
findRolesWithPermissionsContainingObject
Description copied from interface:PITGroupDAO
Find the roles that have permissions containing the specified object- Specified by:
findRolesWithPermissionsContainingObject
in interfacePITGroupDAO
- Returns:
- set of pit groups
- See Also:
-
findRolesWithPermissionsContainingObject
public Set<PITGroup> findRolesWithPermissionsContainingObject(PITAttributeAssignActionSet actionSet) Description copied from interface:PITGroupDAO
Find the roles that have permissions containing the specified object- Specified by:
findRolesWithPermissionsContainingObject
in interfacePITGroupDAO
- Returns:
- set of pit groups
- See Also:
-
findRolesWithPermissionsContainingObject
public Set<PITGroup> findRolesWithPermissionsContainingObject(PITAttributeDefNameSet attributeDefNameSet) Description copied from interface:PITGroupDAO
Find the roles that have permissions containing the specified object- Specified by:
findRolesWithPermissionsContainingObject
in interfacePITGroupDAO
- Returns:
- set of pit groups
- See Also:
-
findRolesWithPermissionsContainingObject
Description copied from interface:PITGroupDAO
Find the roles that have permissions containing the specified object- Specified by:
findRolesWithPermissionsContainingObject
in interfacePITGroupDAO
- Returns:
- set of pit groups
- See Also:
-
findRolesWithPermissionsContainingObject
Description copied from interface:PITGroupDAO
Find the roles that have permissions containing the specified object- Specified by:
findRolesWithPermissionsContainingObject
in interfacePITGroupDAO
- Returns:
- set of pit groups
- See Also:
-
findActiveDuplicates
- Specified by:
findActiveDuplicates
in interfacePITGroupDAO
- Returns:
- source ids of records that have duplicate active entries in PIT
- See Also:
-
delete
Description copied from interface:PITGroupDAO
Delete (won't run pre and post delete methods)- Specified by:
delete
in interfacePITGroupDAO
- See Also:
-