public interface

InternalMembershipDao

com.atlassian.jira.crowd.embedded.ofbiz.InternalMembershipDao
Known Indirect Subclasses

Class Overview

This interface is used by OfBizDelegatingMembershipDao to avoid circular dependencies with the User and Group DAOs.

Summary

Public Methods
BatchResult<String> addAllUsersToGroup(long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group)
void addGroupToGroup(long directoryId, UserOrGroupStub child, UserOrGroupStub parent)
void addUserToGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group)
void flushCache()
boolean isGroupDirectMember(long directoryId, String childGroup, String parentGroup)
boolean isUserDirectMember(long directoryId, String userName, String groupName)
void removeAllGroupMemberships(Group group)
void removeAllMembersFromGroup(Group group)
void removeAllUserMemberships(User user)
void removeAllUserMemberships(long directoryId, String username)
void removeGroupFromGroup(long directoryId, UserOrGroupStub childGroup, UserOrGroupStub parentGroup)
void removeUserFromGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group)
<T> List<String> search(long directoryId, MembershipQuery<T> query)

Public Methods

public BatchResult<String> addAllUsersToGroup (long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group)

public void addGroupToGroup (long directoryId, UserOrGroupStub child, UserOrGroupStub parent)

public void addUserToGroup (long directoryId, UserOrGroupStub user, UserOrGroupStub group)

Throws
MembershipAlreadyExistsException

public void flushCache ()

public boolean isGroupDirectMember (long directoryId, String childGroup, String parentGroup)

public boolean isUserDirectMember (long directoryId, String userName, String groupName)

public void removeAllGroupMemberships (Group group)

public void removeAllMembersFromGroup (Group group)

public void removeAllUserMemberships (User user)

public void removeAllUserMemberships (long directoryId, String username)

public void removeGroupFromGroup (long directoryId, UserOrGroupStub childGroup, UserOrGroupStub parentGroup)

public void removeUserFromGroup (long directoryId, UserOrGroupStub user, UserOrGroupStub group)

public List<String> search (long directoryId, MembershipQuery<T> query)