com.atlassian.crowd.integration.atlassianuser
Class AbstractCrowdGroupManager

java.lang.Object
  extended by com.atlassian.crowd.integration.atlassianuser.AbstractCrowdGroupManager
All Implemented Interfaces:
com.atlassian.user.EntityManager, com.atlassian.user.GroupManager
Direct Known Subclasses:
CrowdGroupManager, DirectCrowdGroupManager

public abstract class AbstractCrowdGroupManager
extends java.lang.Object
implements com.atlassian.user.GroupManager


Constructor Summary
AbstractCrowdGroupManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier)
           
 
Method Summary
 com.atlassian.user.search.page.Pager getExternalMemberNames(com.atlassian.user.Group group)
          Sett getLocalMemberNames(com.atlassian.user.Group)}
 com.atlassian.user.repository.RepositoryIdentifier getIdentifier()
          Returns information about the respository implementation.
 com.atlassian.user.search.page.Pager getLocalMemberNames(com.atlassian.user.Group group)
           
 com.atlassian.user.repository.RepositoryIdentifier getRepository(com.atlassian.user.Entity entity)
          Returns information about the respository for a specific entity.
 boolean isCreative()
           
 boolean isReadOnly(com.atlassian.user.Group group)
          Returns true if the specified group and membership of the specified group cannot be modified in the repository.
 boolean supportsExternalMembership()
          Returns true if the repository supports users in other repositories being members of groups in this repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.user.GroupManager
addMembership, createGroup, getGroup, getGroups, getGroups, getMemberNames, getWritableGroups, hasMembership, removeGroup, removeMembership
 

Constructor Detail

AbstractCrowdGroupManager

public AbstractCrowdGroupManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier)
Method Detail

getExternalMemberNames

public com.atlassian.user.search.page.Pager getExternalMemberNames(com.atlassian.user.Group group)
                                                            throws com.atlassian.user.EntityException
Sett getLocalMemberNames(com.atlassian.user.Group)}

Specified by:
getExternalMemberNames in interface com.atlassian.user.GroupManager
Parameters:
group - The group to lookup.
Returns:
Search results.
Throws:
com.atlassian.user.EntityException - Search exception.

supportsExternalMembership

public boolean supportsExternalMembership()
                                   throws com.atlassian.user.EntityException
Returns true if the repository supports users in other repositories being members of groups in this repository.

Typically this is true of an application-specific Hibernate repository, but not of a company's LDAP server. It is designed to allow the LDAP users to be members of the application's groups for flexible application-level security.

Specified by:
supportsExternalMembership in interface com.atlassian.user.GroupManager
Returns:
true if users from other repositories can be granted membership to groups in this repository, otherwise false.
Throws:
com.atlassian.user.EntityException

isReadOnly

public boolean isReadOnly(com.atlassian.user.Group group)
                   throws com.atlassian.user.EntityException
Returns true if the specified group and membership of the specified group cannot be modified in the repository.

If this returns true, invoking methods which attempt to modify the group or membership of the group will fail with UnsupportedOperationException.

Specified by:
isReadOnly in interface com.atlassian.user.GroupManager
Returns:
true if the group and membership of the group cannot be modified, otherwise false.
Throws:
com.atlassian.user.EntityException

getIdentifier

public com.atlassian.user.repository.RepositoryIdentifier getIdentifier()
Returns information about the respository implementation.

Specified by:
getIdentifier in interface com.atlassian.user.EntityManager
Returns:
The repository configuration.

getRepository

public com.atlassian.user.repository.RepositoryIdentifier getRepository(com.atlassian.user.Entity entity)
                                                                 throws com.atlassian.user.EntityException
Returns information about the respository for a specific entity.

Specified by:
getRepository in interface com.atlassian.user.EntityManager
Parameters:
entity - The entity.
Returns:
The repository configuration.
Throws:
com.atlassian.user.EntityException

isCreative

public boolean isCreative()
Specified by:
isCreative in interface com.atlassian.user.EntityManager

getLocalMemberNames

public com.atlassian.user.search.page.Pager getLocalMemberNames(com.atlassian.user.Group group)
                                                         throws com.atlassian.user.EntityException
Specified by:
getLocalMemberNames in interface com.atlassian.user.GroupManager
Throws:
com.atlassian.user.EntityException


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.