Interface InternalMembershipDao

All Superinterfaces:
MembershipDao
All Known Implementing Classes:
CachingInternalMembershipDao, MembershipDAOHibernate

public interface InternalMembershipDao extends MembershipDao
Manages persistence of InternalMembership.
  • Method Details

    • removeGroupMembers

      void removeGroupMembers(long directoryId, String groupName)
      Removes all members of the given group name.
      Parameters:
      directoryId - Directory id.
      groupName - Group name.
    • removeGroupMemberships

      void removeGroupMemberships(long directoryId, String groupName)
      Removes all relationships from parent groups to the given group name.
      Parameters:
      directoryId - Directory id.
      groupName - Group name.
    • removeUserMemberships

      void removeUserMemberships(long directoryId, String username)
      Removes all MembershipType.GROUP_USER relationships from parent groups to the given username.
      Parameters:
      directoryId - Directory id.
      username - Username.
    • removeAllRelationships

      void removeAllRelationships(long directoryId)
      Removes all relationships the the given directory identified by directory id.
      Parameters:
      directoryId - Directory id.
    • removeAllUserRelationships

      void removeAllUserRelationships(long directoryId)
      Removes all user relationships the the given directory identified by directory id.
      Parameters:
      directoryId - Directory id.
    • renameUserRelationships

      void renameUserRelationships(long directoryId, String oldName, String newName)
      Renames username in all relationships.
      Parameters:
      directoryId - Directory id.
      oldName - Old username.
      newName - New username.
    • renameGroupRelationships

      void renameGroupRelationships(long directoryId, String oldName, String newName)
      Renames group name in all relationships.
      Parameters:
      directoryId - Directory id.
      oldName - Old group name.
      newName - New group name.
    • addAll

      Bulk add of memberships.
      Parameters:
      memberships - Set of memberships.
      Returns:
      Batch result.
    • getMembershipsCreatedAfter

      @ExperimentalSpi List<InternalMembership> getMembershipsCreatedAfter(long directoryId, Date timestamp, int maxResults)
      Retrieves memberships with the creation timestamp greater than the specified date
      Parameters:
      directoryId - the id of the directory to search
      timestamp - the date to limit the search by
      maxResults - the maximum number of results to return
      Returns: