com.atlassian.crowd.embedded.hibernate2
Interface InternalMembershipDao

All Known Implementing Classes:
CachedCrowdInternalMembershipDao, HibernateInternalMembershipDao

public interface InternalMembershipDao

Implements bulk membership changes via database IDs rather than by name. Methods take objects rather than IDs so that the caching wrappers in Confluence will work correctly.


Method Summary
 void removeAllGroupRelationships(com.atlassian.crowd.model.group.InternalGroup group)
          Remove all memberships that rely on the existence of a particular group.
 void removeAllRelationships(com.atlassian.crowd.embedded.api.Directory directory)
          Remove all memberships related to a particular directory.
 void removeAllUserRelationships(com.atlassian.crowd.model.user.InternalUser user)
          Remove all memberships that rely on the existence of a particular user.
 void rename(java.lang.String oldUsername, com.atlassian.crowd.model.user.InternalUser user)
          Make required changes to memberships when user is renamed.
 

Method Detail

removeAllGroupRelationships

void removeAllGroupRelationships(com.atlassian.crowd.model.group.InternalGroup group)
Remove all memberships that rely on the existence of a particular group. For example, if the group is about to be deleted.

Parameters:
group - the group to remove all memberships for.

removeAllUserRelationships

void removeAllUserRelationships(com.atlassian.crowd.model.user.InternalUser user)
Remove all memberships that rely on the existence of a particular user.

Parameters:
user - the user to remove all memberships for

removeAllRelationships

void removeAllRelationships(com.atlassian.crowd.embedded.api.Directory directory)
Remove all memberships related to a particular directory. This is necessary when deleting an internal directory.


rename

void rename(java.lang.String oldUsername,
            com.atlassian.crowd.model.user.InternalUser user)
Make required changes to memberships when user is renamed.

Parameters:
oldUsername - previous username of the user
user - user that has been renamed


Copyright © 2003-2013 Atlassian. All Rights Reserved.