edu.internet2.middleware.grouper.internal.dao
Interface PITGroupSetDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3PITGroupSetDAO

public interface PITGroupSetDAO
extends GrouperDAO


Method Summary
 void delete(PITGroupSet pitGroupSet)
          delete
 void delete(String id)
          Delete (won't run pre and post delete methods)
 void deleteInactiveRecords(Timestamp time)
          Delete records that ended before the given date.
 void deleteSelfByPITOwnerId(String id)
           
 Set<String> findActiveDuplicates()
           
 PITGroupSet findActiveImmediateByPITOwnerAndPITMemberAndPITField(String ownerId, String memberId, String fieldId)
           
 PITGroupSet findActiveImmediateChildByParentAndMemberPITGroup(PITGroupSet parentPITGroupSet, String memberGroupId)
           
 Set<PITGroupSet> findAllActiveByMemberPITGroup(String groupId)
           
 Set<PITGroupSet> findAllActiveByPITGroupOwnerAndPITField(String groupId, PITField field)
           
 Set<PITGroupSet> findAllActiveChildren(PITGroupSet pitGroupSet)
           
 Set<PITGroupSet> findAllByMemberPITGroup(String groupId)
           
 Set<PITGroupSet> findAllSelfPITGroupSetsByPITOwnerId(String id)
           
 PITGroupSet findById(String id, boolean exceptionIfNotFound)
           
 Set<PITGroupSet> findBySourceId(String id, boolean exceptionIfNotFound)
           
 PITGroupSet findBySourceIdActive(String id, boolean exceptionIfNotFound)
           
 PITGroupSet findBySourceIdUnique(String id, boolean exceptionIfNotFound)
           
 Set<PITGroupSet> findImmediateChildren(PITGroupSet pitGroupSet)
           
 Set<GroupSet> findMissingActivePITGroupSets(QueryOptions options)
           
 Set<GroupSet> findMissingActivePITGroupSetsSecondPass()
           
 Set<PITGroupSet> findMissingInactivePITGroupSets()
           
 PITGroupSet findSelfPITGroupSet(String ownerId, String fieldId, boolean activeOnly)
           
 void insertSelfPITGroupSetsByField(String fieldId, Long startTime, String contextId)
           
 void insertSelfPITGroupSetsByOwner(String ownerId, Long startTime, String contextId, boolean checkIfAlreadyExists)
           
 void saveBatch(Set<PITGroupSet> pitGroupSets)
          insert a batch of pit group set objects
 void saveOrUpdate(PITGroupSet pitGroupSet)
          insert or update
 void saveOrUpdate(Set<PITGroupSet> pitGroupSets)
          insert or update
 void updateEndTimeByPITField(String fieldId, Long endTime, String contextId)
           
 void updateEndTimeByPITOwner(String ownerId, Long endTime, String contextId)
           
 void updateEndTimeByPITOwnerAndPITField(String ownerId, String fieldId, Long endTime, String contextId)
           
 

Method Detail

saveOrUpdate

void saveOrUpdate(PITGroupSet pitGroupSet)
insert or update

Parameters:
pitGroupSet -

saveOrUpdate

void saveOrUpdate(Set<PITGroupSet> pitGroupSets)
insert or update

Parameters:
pitGroupSets -

saveBatch

void saveBatch(Set<PITGroupSet> pitGroupSets)
insert a batch of pit group set objects

Parameters:
pitGroupSets -

delete

void delete(PITGroupSet pitGroupSet)
delete

Parameters:
pitGroupSet -

findBySourceIdActive

PITGroupSet findBySourceIdActive(String id,
                                 boolean exceptionIfNotFound)
Parameters:
id -
exceptionIfNotFound -
Returns:
PITGroupSet

findById

PITGroupSet findById(String id,
                     boolean exceptionIfNotFound)
Parameters:
id -
exceptionIfNotFound -
Returns:
PITGroupSet

findBySourceIdUnique

PITGroupSet findBySourceIdUnique(String id,
                                 boolean exceptionIfNotFound)
Parameters:
id -
exceptionIfNotFound -
Returns:
PITGroupSet

insertSelfPITGroupSetsByOwner

void insertSelfPITGroupSetsByOwner(String ownerId,
                                   Long startTime,
                                   String contextId,
                                   boolean checkIfAlreadyExists)
Parameters:
ownerId -
startTime -
contextId -
checkIfAlreadyExists -

insertSelfPITGroupSetsByField

void insertSelfPITGroupSetsByField(String fieldId,
                                   Long startTime,
                                   String contextId)
Parameters:
fieldId -
startTime -
contextId -

updateEndTimeByPITOwner

void updateEndTimeByPITOwner(String ownerId,
                             Long endTime,
                             String contextId)
Parameters:
ownerId -
endTime -
contextId -

updateEndTimeByPITField

void updateEndTimeByPITField(String fieldId,
                             Long endTime,
                             String contextId)
Parameters:
fieldId -
endTime -
contextId -

updateEndTimeByPITOwnerAndPITField

void updateEndTimeByPITOwnerAndPITField(String ownerId,
                                        String fieldId,
                                        Long endTime,
                                        String contextId)
Parameters:
ownerId -
fieldId -
endTime -
contextId -

findSelfPITGroupSet

PITGroupSet findSelfPITGroupSet(String ownerId,
                                String fieldId,
                                boolean activeOnly)
Parameters:
ownerId -
fieldId -
activeOnly -
Returns:
pit group set

findActiveImmediateByPITOwnerAndPITMemberAndPITField

PITGroupSet findActiveImmediateByPITOwnerAndPITMemberAndPITField(String ownerId,
                                                                 String memberId,
                                                                 String fieldId)
Parameters:
ownerId -
memberId -
fieldId -
Returns:
pit group set

findAllActiveByPITGroupOwnerAndPITField

Set<PITGroupSet> findAllActiveByPITGroupOwnerAndPITField(String groupId,
                                                         PITField field)
Parameters:
groupId -
field -
Returns:
pit group sets

findAllActiveByMemberPITGroup

Set<PITGroupSet> findAllActiveByMemberPITGroup(String groupId)
Parameters:
groupId -
Returns:
pit group sets

findAllByMemberPITGroup

Set<PITGroupSet> findAllByMemberPITGroup(String groupId)
Parameters:
groupId -
Returns:
pit group sets

findAllActiveChildren

Set<PITGroupSet> findAllActiveChildren(PITGroupSet pitGroupSet)
Parameters:
pitGroupSet -
Returns:
all nested children of the pit group set

findActiveImmediateChildByParentAndMemberPITGroup

PITGroupSet findActiveImmediateChildByParentAndMemberPITGroup(PITGroupSet parentPITGroupSet,
                                                              String memberGroupId)
Parameters:
parentPITGroupSet -
memberGroupId -
Returns:
pit group set

findImmediateChildren

Set<PITGroupSet> findImmediateChildren(PITGroupSet pitGroupSet)
Parameters:
pitGroupSet -
Returns:
pit group sets

deleteInactiveRecords

void deleteInactiveRecords(Timestamp time)
Delete records that ended before the given date.

Parameters:
time -

findAllSelfPITGroupSetsByPITOwnerId

Set<PITGroupSet> findAllSelfPITGroupSetsByPITOwnerId(String id)
Parameters:
id -
Returns:
pit group sets

deleteSelfByPITOwnerId

void deleteSelfByPITOwnerId(String id)
Parameters:
id -

findMissingActivePITGroupSets

Set<GroupSet> findMissingActivePITGroupSets(QueryOptions options)
Parameters:
options -
Returns:
active group sets that are missing in point in time

findMissingActivePITGroupSetsSecondPass

Set<GroupSet> findMissingActivePITGroupSetsSecondPass()
Returns:
active group sets that are missing in point in time (this time looking for effective issues)

findMissingInactivePITGroupSets

Set<PITGroupSet> findMissingInactivePITGroupSets()
Returns:
active point in time group sets that should be inactive

findActiveDuplicates

Set<String> findActiveDuplicates()
Returns:
source ids of records that have duplicate active entries in PIT

findBySourceId

Set<PITGroupSet> findBySourceId(String id,
                                boolean exceptionIfNotFound)
Parameters:
id -
exceptionIfNotFound -
Returns:
set of PITGroupSet

delete

void delete(String id)
Delete (won't run pre and post delete methods)

Parameters:
id -