Class Hib3PITConfigDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3PITConfigDAO
- All Implemented Interfaces:
GrouperDAO
,PITConfigDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(PITGrouperConfigHibernate pitGrouperConfigHibernate) deletevoid
long
Delete records that ended before the given date.findByIds
(Collection<String> ids) findBySourceId
(String id, boolean exceptionIfNotFound) findBySourceIdActive
(String id, boolean exceptionIfNotFound) findBySourceIdActive
(String id, boolean createIfNotFound, boolean exceptionIfNotFound) findBySourceIdUnique
(String id, boolean exceptionIfNotFound) findPITConfigs
(QueryOptions queryOptions, String filter) find pit configs based on filter (optional)static void
reset
(HibernateSession hibernateSession) resetvoid
revertConfigs
(Set<String> pitIds, StringBuilder message, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay) revert list of configs to previous valuesvoid
saveOrUpdate
(PITGrouperConfigHibernate pitGrouperConfigHibernate) insert or updatevoid
saveOrUpdate
(Set<PITGrouperConfigHibernate> pitGrouperConfigHibernates) 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
-
Hib3PITConfigDAO
public Hib3PITConfigDAO()
-
-
Method Details
-
saveOrUpdate
Description copied from interface:PITConfigDAO
insert or update- Specified by:
saveOrUpdate
in interfacePITConfigDAO
- See Also:
-
saveOrUpdate
Description copied from interface:PITConfigDAO
insert or update- Specified by:
saveOrUpdate
in interfacePITConfigDAO
- See Also:
-
delete
Description copied from interface:PITConfigDAO
delete- Specified by:
delete
in interfacePITConfigDAO
- See Also:
-
reset
reset- Parameters:
hibernateSession
-
-
findBySourceIdActive
public PITGrouperConfigHibernate findBySourceIdActive(String id, boolean createIfNotFound, boolean exceptionIfNotFound) - See Also:
-
edu.internet2.middleware.grouper.internal.dao.PITConfigDAO#findBySourceIdActive(java.lang.String, boolean, boolean)
-
findBySourceIdActive
- Specified by:
findBySourceIdActive
in interfacePITConfigDAO
- Returns:
- PITGrouperConfigHibernate
- See Also:
-
findBySourceIdsActive
- Specified by:
findBySourceIdsActive
in interfacePITConfigDAO
- Returns:
-
findByIds
- Specified by:
findByIds
in interfacePITConfigDAO
- Returns:
- PITGrouperConfigHibernate
-
findBySourceIdUnique
- Specified by:
findBySourceIdUnique
in interfacePITConfigDAO
- Returns:
- PITGrouperConfigHibernate
- See Also:
-
findBySourceId
- Specified by:
findBySourceId
in interfacePITConfigDAO
- Returns:
- set of PITGrouperConfigHibernate
- See Also:
-
findById
- Specified by:
findById
in interfacePITConfigDAO
- Returns:
- PITGrouperConfigHibernate
- See Also:
-
deleteInactiveRecords
Description copied from interface:PITConfigDAO
Delete records that ended before the given date.- Specified by:
deleteInactiveRecords
in interfacePITConfigDAO
- Returns:
- the number of records deleted
- See Also:
-
findActiveDuplicates
- See Also:
-
edu.internet2.middleware.grouper.internal.dao.PITConfigDAO#findActiveDuplicates()
-
delete
- Specified by:
delete
in interfacePITConfigDAO
- See Also:
-
findMissingActivePITConfigs
- Specified by:
findMissingActivePITConfigs
in interfacePITConfigDAO
- Returns:
- active configs that are missing in point in time
- See Also:
-
findMissingInactivePITConfigs
- Specified by:
findMissingInactivePITConfigs
in interfacePITConfigDAO
- Returns:
- active point in time configs that should be inactive
- See Also:
-
findPITConfigs
Description copied from interface:PITConfigDAO
find pit configs based on filter (optional)- Specified by:
findPITConfigs
in interfacePITConfigDAO
- Returns:
- See Also:
-
revertConfigs
public void revertConfigs(Set<String> pitIds, StringBuilder message, List<String> errorsToDisplay, Map<String, String> validationErrorsToDisplay) Description copied from interface:PITConfigDAO
revert list of configs to previous values- Specified by:
revertConfigs
in interfacePITConfigDAO
- See Also:
-