Interface PITGroupSetDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3PITGroupSetDAO

public interface PITGroupSetDAO extends GrouperDAO
  • Method Details

    • 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
    • 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
    • findAllImmediateByPITOwnerAndPITMemberAndPITField

      Set<PITGroupSet> findAllImmediateByPITOwnerAndPITMemberAndPITField(String ownerId, String memberId, String fieldId)
      Parameters:
      ownerId -
      memberId -
      fieldId -
      Returns:
      pit group sets
    • 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

      long deleteInactiveRecords(Timestamp time)
      Delete records that ended before the given date.
      Parameters:
      time -
      Returns:
      the number of records deleted
    • 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
    • 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 -