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

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3PITRoleSetDAO

public interface PITRoleSetDAO
extends GrouperDAO


Method Summary
 void delete(PITRoleSet pitRoleSet)
          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 deleteSelfByPITRoleId(String id)
           
 Set<String> findActiveDuplicates()
           
 Set<PITRoleSet> findAllSelfPITRoleSetsByPITRoleId(String id)
           
 PITRoleSet findById(String id, boolean exceptionIfNotFound)
           
 Set<PITRoleSet> findBySourceId(String id, boolean exceptionIfNotFound)
           
 PITRoleSet findBySourceIdActive(String id, boolean exceptionIfNotFound)
           
 PITRoleSet findBySourceIdUnique(String id, boolean exceptionIfNotFound)
           
 Set<PITRoleSet> findByThenHasPITRoleId(String id)
           
 Set<PITRoleSet> findImmediateChildren(PITRoleSet pitRoleSet)
           
 Set<RoleSet> findMissingActivePITRoleSets()
           
 Set<PITRoleSet> findMissingInactivePITRoleSets()
           
 void saveOrUpdate(PITRoleSet pitRoleSet)
          insert or update
 void saveOrUpdate(Set<PITRoleSet> pitRoleSets)
          insert or update
 

Method Detail

saveOrUpdate

void saveOrUpdate(PITRoleSet pitRoleSet)
insert or update

Parameters:
pitRoleSet -

saveOrUpdate

void saveOrUpdate(Set<PITRoleSet> pitRoleSets)
insert or update

Parameters:
pitRoleSets -

delete

void delete(PITRoleSet pitRoleSet)
delete

Parameters:
pitRoleSet -

findBySourceIdActive

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

findById

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

findBySourceIdUnique

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

deleteInactiveRecords

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

Parameters:
time -

findImmediateChildren

Set<PITRoleSet> findImmediateChildren(PITRoleSet pitRoleSet)
Parameters:
pitRoleSet -
Returns:
pit role sets

findAllSelfPITRoleSetsByPITRoleId

Set<PITRoleSet> findAllSelfPITRoleSetsByPITRoleId(String id)
Parameters:
id -
Returns:
pit role sets

deleteSelfByPITRoleId

void deleteSelfByPITRoleId(String id)
Parameters:
id -

findByThenHasPITRoleId

Set<PITRoleSet> findByThenHasPITRoleId(String id)
Parameters:
id -
Returns:
pit role sets

findMissingActivePITRoleSets

Set<RoleSet> findMissingActivePITRoleSets()
Returns:
active role sets that are missing in point in time

findMissingInactivePITRoleSets

Set<PITRoleSet> findMissingInactivePITRoleSets()
Returns:
active point in time role sets that should be inactive

findActiveDuplicates

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

findBySourceId

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

delete

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

Parameters:
id -