Interface InternalMembershipDao

All Known Implementing Classes:
OfBizInternalMembershipDao

public interface InternalMembershipDao
This interface is used by OfBizDelegatingMembershipDao to avoid circular dependencies with the User and Group DAOs.
  • Method Details

    • isUserDirectMember

      boolean isUserDirectMember(long directoryId, String userName, String groupName)
    • isGroupDirectMember

      boolean isGroupDirectMember(long directoryId, String childGroup, String parentGroup)
    • addUserToGroup

      void addUserToGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group) throws com.atlassian.crowd.exception.MembershipAlreadyExistsException
      Throws:
      com.atlassian.crowd.exception.MembershipAlreadyExistsException
    • addAllUsersToGroup

      com.atlassian.crowd.util.BatchResult<String> addAllUsersToGroup(long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group)
    • addUserToGroups

      com.atlassian.crowd.util.BatchResult<String> addUserToGroups(long directoryId, UserOrGroupStub user, Collection<UserOrGroupStub> groups)
    • addGroupToGroup

      void addGroupToGroup(long directoryId, UserOrGroupStub child, UserOrGroupStub parent)
    • addAllGroupsToGroup

      com.atlassian.crowd.util.BatchResult<String> addAllGroupsToGroup(long directoryId, Collection<UserOrGroupStub> childGroups, UserOrGroupStub parentGroup)
    • countDirectMembersOfGroup

      long countDirectMembersOfGroup(long directoryId, String groupName, com.atlassian.crowd.model.membership.MembershipType membershipType)
    • removeAllMembersFromGroup

      void removeAllMembersFromGroup(com.atlassian.crowd.model.group.Group group)
    • removeAllGroupMemberships

      void removeAllGroupMemberships(com.atlassian.crowd.model.group.Group group)
    • removeAllUserMemberships

      void removeAllUserMemberships(com.atlassian.crowd.model.user.User user)
    • removeAllUserMemberships

      void removeAllUserMemberships(long directoryId, String username)
    • removeUserFromGroup

      void removeUserFromGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group) throws com.atlassian.crowd.exception.MembershipNotFoundException
      Throws:
      com.atlassian.crowd.exception.MembershipNotFoundException
    • removeUsersFromGroup

      com.atlassian.crowd.util.BatchResult<String> removeUsersFromGroup(long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group)
    • removeGroupFromGroup

      void removeGroupFromGroup(long directoryId, UserOrGroupStub childGroup, UserOrGroupStub parentGroup) throws com.atlassian.crowd.exception.MembershipNotFoundException
      Throws:
      com.atlassian.crowd.exception.MembershipNotFoundException
    • removeGroupsFromGroup

      com.atlassian.crowd.util.BatchResult<String> removeGroupsFromGroup(long directoryId, Collection<UserOrGroupStub> childGroups, UserOrGroupStub parentGroup)
    • search

      <T> List<String> search(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
    • searchGroupedByName

      <T> com.google.common.collect.ListMultimap<String,String> searchGroupedByName(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
    • flushCache

      void flushCache()
    • findGroupChildrenOfGroups

      Collection<String> findGroupChildrenOfGroups(long directoryId, Collection<String> groupNames)
      Finds direct group children of the specified groups in a directory.
      Parameters:
      directoryId - the directory.
      groupNames - the names of the groups whose group children are returned. If this is empty, an empty collection is returned.
      Returns:
      the names of the group children.
      Since:
      v7.0
    • findUserChildrenOfGroups

      Collection<String> findUserChildrenOfGroups(long directoryId, Collection<String> groupNames)
      Finds direct user children of the specified groups in a directory.
      Parameters:
      directoryId - the directory.
      groupNames - the name of the groups whose user children are returned. If this is empty, an empty collection is returned.
      Returns:
      the names of the users in the specified groups.
      Since:
      v7.0