com.atlassian.crowd.model.membership
Interface MembershipDAO

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
MembershipDAOHibernate

public interface MembershipDAO
extends ObjectDao


Method Summary
 BatchResult<InternalMembership> addAll(java.util.Set<InternalMembership> memberships)
           
 void addGroupToGroup(long directoryId, java.lang.String childGroup, java.lang.String parentGroup)
           
 void addUserToGroup(long directoryId, java.lang.String username, java.lang.String groupName)
           
 boolean isGroupDirectMember(long directoryId, java.lang.String childGroup, java.lang.String parentGroup)
           
 boolean isUserDirectMember(long directoryId, java.lang.String username, java.lang.String groupName)
           
 void removeAllRelationships(long directoryId)
           
 void removeAllUserRelationships(long directoryId)
           
 void removeGroupFromGroup(long directoryId, java.lang.String childGroup, java.lang.String parentGroup)
           
 void removeGroupMembers(long directoryId, java.lang.String groupName)
           
 void removeGroupMemberships(long directoryId, java.lang.String groupName)
           
 void removeUserFromGroup(long directoryId, java.lang.String username, java.lang.String groupName)
           
 void removeUserMemberships(long directoryId, java.lang.String username)
           
 void renameGroupRelationships(long directoryId, java.lang.String oldName, java.lang.String newName)
           
 void renameUserRelationships(long directoryId, java.lang.String oldName, java.lang.String newName)
           
 java.util.List search(long directoryId, MembershipQuery query)
           
 
Methods inherited from interface com.atlassian.crowd.util.persistence.hibernate.ObjectDao
getPersistentClass, load, remove, save, update
 

Method Detail

isUserDirectMember

boolean isUserDirectMember(long directoryId,
                           java.lang.String username,
                           java.lang.String groupName)

isGroupDirectMember

boolean isGroupDirectMember(long directoryId,
                            java.lang.String childGroup,
                            java.lang.String parentGroup)

addUserToGroup

void addUserToGroup(long directoryId,
                    java.lang.String username,
                    java.lang.String groupName)
                    throws ObjectNotFoundException
Throws:
ObjectNotFoundException

removeUserFromGroup

void removeUserFromGroup(long directoryId,
                         java.lang.String username,
                         java.lang.String groupName)
                         throws ObjectNotFoundException
Throws:
ObjectNotFoundException

addGroupToGroup

void addGroupToGroup(long directoryId,
                     java.lang.String childGroup,
                     java.lang.String parentGroup)
                     throws ObjectNotFoundException
Throws:
ObjectNotFoundException

removeGroupFromGroup

void removeGroupFromGroup(long directoryId,
                          java.lang.String childGroup,
                          java.lang.String parentGroup)
                          throws ObjectNotFoundException
Throws:
ObjectNotFoundException

removeGroupMembers

void removeGroupMembers(long directoryId,
                        java.lang.String groupName)

removeGroupMemberships

void removeGroupMemberships(long directoryId,
                            java.lang.String groupName)

removeUserMemberships

void removeUserMemberships(long directoryId,
                           java.lang.String username)

removeAllRelationships

void removeAllRelationships(long directoryId)

removeAllUserRelationships

void removeAllUserRelationships(long directoryId)

renameUserRelationships

void renameUserRelationships(long directoryId,
                             java.lang.String oldName,
                             java.lang.String newName)

renameGroupRelationships

void renameGroupRelationships(long directoryId,
                              java.lang.String oldName,
                              java.lang.String newName)

search

java.util.List search(long directoryId,
                      MembershipQuery query)

addAll

BatchResult<InternalMembership> addAll(java.util.Set<InternalMembership> memberships)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.