public class

OfBizInternalMembershipDao

extends Object
implements InternalMembershipDao
java.lang.Object
   ↳ com.atlassian.jira.crowd.embedded.ofbiz.OfBizInternalMembershipDao

Summary

Public Constructors
OfBizInternalMembershipDao(OfBizDelegator ofBizDelegator, CacheManager cacheManager)
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()
Invoked by OfBizCacheFlushingManager to ensure caches are being flushed in the right order on XMLRestoreFinishedEvent
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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.crowd.embedded.ofbiz.InternalMembershipDao

Public Constructors

public OfBizInternalMembershipDao (OfBizDelegator ofBizDelegator, CacheManager cacheManager)

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 ()

Invoked by OfBizCacheFlushingManager to ensure caches are being flushed in the right order on XMLRestoreFinishedEvent

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)