com.atlassian.confluence.user.crowd
Class CachedCrowdInternalMembershipDao

java.lang.Object
  extended by com.atlassian.confluence.user.crowd.CachedCrowdInternalMembershipDao
All Implemented Interfaces:
InternalMembershipDao

public final class CachedCrowdInternalMembershipDao
extends Object
implements InternalMembershipDao

Removes cached membership information as required by the bulk operations on the InternalMembershipDao interface.

Since:
3.5
See Also:
DefaultMembershipCache

Constructor Summary
CachedCrowdInternalMembershipDao(InternalMembershipDao delegate, MembershipCache stringCache, GroupMembershipCache parentGroupCache, GroupMembershipCache childGroupCache)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedCrowdInternalMembershipDao

public CachedCrowdInternalMembershipDao(InternalMembershipDao delegate,
                                        MembershipCache stringCache,
                                        GroupMembershipCache parentGroupCache,
                                        GroupMembershipCache childGroupCache)
Method Detail

removeAllGroupRelationships

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

Specified by:
removeAllGroupRelationships in interface InternalMembershipDao
Parameters:
group - the group to remove all memberships for.

removeAllUserRelationships

public void removeAllUserRelationships(com.atlassian.crowd.model.user.InternalUser user)
Description copied from interface: InternalMembershipDao
Remove all memberships that rely on the existence of a particular user.

Specified by:
removeAllUserRelationships in interface InternalMembershipDao
Parameters:
user - the user to remove all memberships for

removeAllRelationships

public void removeAllRelationships(com.atlassian.crowd.embedded.api.Directory directory)
Description copied from interface: InternalMembershipDao
Remove all memberships related to a particular directory. This is necessary when deleting an internal directory.

Specified by:
removeAllRelationships in interface InternalMembershipDao


Confluence is developed by Atlassian.