edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3PITGroupSetDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3PITGroupSetDAO
- All Implemented Interfaces:
- GrouperDAO, PITGroupSetDAO
public class Hib3PITGroupSetDAO
- extends Hib3DAO
- implements PITGroupSetDAO
- Author:
- shilen
$Id: Hib3PITGroupSetDAO.java 7072 2010-12-06 16:03:59Z shilen $
Method Summary |
void |
delete(PITGroupSet pitGroupSet)
delete |
void |
deleteInactiveRecords(Timestamp time)
Delete records that ended before the given date. |
PITGroupSet |
findActiveImmediateByOwnerAndMemberAndField(String ownerId,
String memberId,
String fieldId)
|
PITGroupSet |
findActiveImmediateChildByParentAndMemberGroup(PITGroupSet parentPITGroupSet,
String memberGroupId)
|
Set<PITGroupSet> |
findAllActiveByGroupOwnerAndField(String groupId,
Field field)
|
Set<PITGroupSet> |
findAllActiveByMemberGroup(String groupId)
|
Set<PITGroupSet> |
findAllActiveChildren(PITGroupSet pitGroupSet)
|
PITGroupSet |
findById(String pitGroupSetId)
|
PITGroupSet |
findSelfGroupSet(String ownerId,
String fieldId,
boolean activeOnly)
|
void |
insertSelfGroupSetsByField(String fieldId,
Long startTime,
String contextId)
|
void |
insertSelfGroupSetsByOwner(String ownerId,
Long startTime,
String contextId,
boolean checkIfAlreadyExists)
|
static void |
reset(HibernateSession hibernateSession)
reset |
void |
saveOrUpdate(PITGroupSet pitGroupSet)
insert or update |
void |
updateEndTimeByField(String fieldId,
Long endTime,
String contextId)
|
void |
updateEndTimeByOwner(String ownerId,
Long endTime,
String contextId)
|
void |
updateEndTimeByOwnerAndField(String ownerId,
String fieldId,
Long endTime,
String contextId)
|
Hib3PITGroupSetDAO
public Hib3PITGroupSetDAO()
saveOrUpdate
public void saveOrUpdate(PITGroupSet pitGroupSet)
- Description copied from interface:
PITGroupSetDAO
- insert or update
- Specified by:
saveOrUpdate
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.saveOrUpdate(edu.internet2.middleware.grouper.pit.PITGroupSet)
delete
public void delete(PITGroupSet pitGroupSet)
- Description copied from interface:
PITGroupSetDAO
- delete
- Specified by:
delete
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.delete(edu.internet2.middleware.grouper.pit.PITGroupSet)
reset
public static void reset(HibernateSession hibernateSession)
- reset
- Parameters:
hibernateSession
-
findById
public PITGroupSet findById(String pitGroupSetId)
- Specified by:
findById
in interface PITGroupSetDAO
- Returns:
- pit group set
- See Also:
PITGroupSetDAO.findById(java.lang.String)
insertSelfGroupSetsByOwner
public void insertSelfGroupSetsByOwner(String ownerId,
Long startTime,
String contextId,
boolean checkIfAlreadyExists)
- Specified by:
insertSelfGroupSetsByOwner
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.insertSelfGroupSetsByOwner(java.lang.String, java.lang.Long, java.lang.String, boolean)
insertSelfGroupSetsByField
public void insertSelfGroupSetsByField(String fieldId,
Long startTime,
String contextId)
- Specified by:
insertSelfGroupSetsByField
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.insertSelfGroupSetsByField(java.lang.String, java.lang.Long, java.lang.String)
updateEndTimeByOwner
public void updateEndTimeByOwner(String ownerId,
Long endTime,
String contextId)
- Specified by:
updateEndTimeByOwner
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.updateEndTimeByOwner(java.lang.String, java.lang.Long, java.lang.String)
updateEndTimeByField
public void updateEndTimeByField(String fieldId,
Long endTime,
String contextId)
- Specified by:
updateEndTimeByField
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.updateEndTimeByField(java.lang.String, java.lang.Long, java.lang.String)
updateEndTimeByOwnerAndField
public void updateEndTimeByOwnerAndField(String ownerId,
String fieldId,
Long endTime,
String contextId)
- Specified by:
updateEndTimeByOwnerAndField
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.updateEndTimeByOwnerAndField(java.lang.String, java.lang.String, java.lang.Long, java.lang.String)
findSelfGroupSet
public PITGroupSet findSelfGroupSet(String ownerId,
String fieldId,
boolean activeOnly)
- Specified by:
findSelfGroupSet
in interface PITGroupSetDAO
- Returns:
- pit group set
- See Also:
PITGroupSetDAO.findSelfGroupSet(java.lang.String, java.lang.String, boolean)
findActiveImmediateByOwnerAndMemberAndField
public PITGroupSet findActiveImmediateByOwnerAndMemberAndField(String ownerId,
String memberId,
String fieldId)
- Specified by:
findActiveImmediateByOwnerAndMemberAndField
in interface PITGroupSetDAO
- Returns:
- pit group set
- See Also:
PITGroupSetDAO.findActiveImmediateByOwnerAndMemberAndField(java.lang.String, java.lang.String, java.lang.String)
findAllActiveByGroupOwnerAndField
public Set<PITGroupSet> findAllActiveByGroupOwnerAndField(String groupId,
Field field)
- Specified by:
findAllActiveByGroupOwnerAndField
in interface PITGroupSetDAO
- Returns:
- pit group sets
- See Also:
PITGroupSetDAO.findAllActiveByGroupOwnerAndField(java.lang.String, edu.internet2.middleware.grouper.Field)
findAllActiveByMemberGroup
public Set<PITGroupSet> findAllActiveByMemberGroup(String groupId)
- Specified by:
findAllActiveByMemberGroup
in interface PITGroupSetDAO
- Returns:
- pit group sets
- See Also:
PITGroupSetDAO.findAllActiveByMemberGroup(java.lang.String)
findAllActiveChildren
public Set<PITGroupSet> findAllActiveChildren(PITGroupSet pitGroupSet)
- Specified by:
findAllActiveChildren
in interface PITGroupSetDAO
- Returns:
- all nested children of the pit group set
- See Also:
PITGroupSetDAO.findAllActiveChildren(edu.internet2.middleware.grouper.pit.PITGroupSet)
findActiveImmediateChildByParentAndMemberGroup
public PITGroupSet findActiveImmediateChildByParentAndMemberGroup(PITGroupSet parentPITGroupSet,
String memberGroupId)
- Specified by:
findActiveImmediateChildByParentAndMemberGroup
in interface PITGroupSetDAO
- Returns:
- pit group set
- See Also:
PITGroupSetDAO.findActiveImmediateChildByParentAndMemberGroup(edu.internet2.middleware.grouper.pit.PITGroupSet, java.lang.String)
deleteInactiveRecords
public void deleteInactiveRecords(Timestamp time)
- Description copied from interface:
PITGroupSetDAO
- Delete records that ended before the given date.
- Specified by:
deleteInactiveRecords
in interface PITGroupSetDAO
- See Also:
PITGroupSetDAO.deleteInactiveRecords(java.sql.Timestamp)