Interface PITGroupDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3PITGroupDAO

public interface PITGroupDAO extends GrouperDAO
  • Method Details

    • saveOrUpdate

      void saveOrUpdate(PITGroup pitGroup)
      insert or update
      Parameters:
      pitGroup -
    • saveOrUpdate

      void saveOrUpdate(Set<PITGroup> pitGroups)
      insert or update
      Parameters:
      pitGroups -
    • delete

      void delete(PITGroup pitGroup)
      delete
      Parameters:
      pitGroup -
    • findBySourceIdActive

      PITGroup findBySourceIdActive(String id, boolean exceptionIfNotFound)
      Parameters:
      id -
      exceptionIfNotFound -
      Returns:
      PITGroup
    • findBySourceIdsActive

      Set<PITGroup> findBySourceIdsActive(Collection<String> ids)
      Parameters:
      ids -
      Returns:
      PITMembership
    • findBySourceIdActive

      PITGroup findBySourceIdActive(String id, boolean createIfNotFound, boolean exceptionIfNotFound)
      Parameters:
      id -
      createIfNotFound -
      exceptionIfNotFound -
      Returns:
      PITGroup
    • findById

      PITGroup findById(String id, boolean exceptionIfNotFound)
      Parameters:
      id -
      exceptionIfNotFound -
      Returns:
      PITGroup
    • findByIds

      Map<String,PITGroup> findByIds(Collection<String> ids)
      Parameters:
      ids -
      Returns:
      map pit groups keyed by id
    • findBySourceIdUnique

      PITGroup findBySourceIdUnique(String id, boolean exceptionIfNotFound)
      Parameters:
      id -
      exceptionIfNotFound -
      Returns:
      PITGroup
    • findBySourceId

      Set<PITGroup> findBySourceId(String id, boolean exceptionIfNotFound)
      Parameters:
      id -
      exceptionIfNotFound -
      Returns:
      set of pit groups
    • findByName

      Set<PITGroup> findByName(String groupName, boolean orderByStartTime)
      Parameters:
      groupName -
      orderByStartTime -
      Returns:
      set of pit groups
    • deleteInactiveRecords

      long deleteInactiveRecords(Timestamp time)
      Delete records that ended before the given date.
      Parameters:
      time -
      Returns:
      the number of records deleted
    • findByPITStemId

      Set<PITGroup> findByPITStemId(String id)
      Parameters:
      id -
      Returns:
      set of PITGroup
    • getAllGroupsMembershipSecure

      Set<PITGroup> getAllGroupsMembershipSecure(String pitMemberId, String pitFieldId, String scope, PITStem pitStem, Stem.Scope stemScope, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, QueryOptions queryOptions)
      Get all the groups that a member is a member of.
      Parameters:
      pitMemberId -
      pitFieldId -
      scope -
      pitStem -
      stemScope -
      pointInTimeFrom -
      pointInTimeTo -
      queryOptions -
      Returns:
      set of pit groups
    • findMissingActivePITGroups

      Set<Group> findMissingActivePITGroups()
      Returns:
      active groups that are missing in point in time
    • findMissingInactivePITGroups

      Set<PITGroup> findMissingInactivePITGroups()
      Returns:
      active point in time groups that should be inactive
    • findRolesWithPermissionsContainingObject

      Set<PITGroup> findRolesWithPermissionsContainingObject(PITAttributeAssign assign)
      Find the roles that have permissions containing the specified object
      Parameters:
      assign -
      Returns:
      set of pit groups
    • findRolesWithPermissionsContainingObject

      Set<PITGroup> findRolesWithPermissionsContainingObject(PITAttributeAssignActionSet actionSet)
      Find the roles that have permissions containing the specified object
      Parameters:
      actionSet -
      Returns:
      set of pit groups
    • findRolesWithPermissionsContainingObject

      Set<PITGroup> findRolesWithPermissionsContainingObject(PITAttributeDefNameSet attributeDefNameSet)
      Find the roles that have permissions containing the specified object
      Parameters:
      attributeDefNameSet -
      Returns:
      set of pit groups
    • findRolesWithPermissionsContainingObject

      Set<PITGroup> findRolesWithPermissionsContainingObject(PITRoleSet roleSet)
      Find the roles that have permissions containing the specified object
      Parameters:
      roleSet -
      Returns:
      set of pit groups
    • findRolesWithPermissionsContainingObject

      Set<PITGroup> findRolesWithPermissionsContainingObject(PITMembership membership)
      Find the roles that have permissions containing the specified object
      Parameters:
      membership -
      Returns:
      set of pit groups
    • findActiveDuplicates

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

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