|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.user.impl.ReadOnlyGroupManager
com.atlassian.user.impl.ldap.LDAPGroupManagerReadOnly
public class LDAPGroupManagerReadOnly
| Constructor Summary | |
|---|---|
LDAPGroupManagerReadOnly(RepositoryIdentifier repositoryIdentifier,
LDAPGroupAdaptor groupAdaptor)
|
|
| Method Summary | |
|---|---|
Pager<String> |
getExternalMemberNames(Group group)
Retrieves the names of those members of the specified group which are stored in another repository. |
Group |
getGroup(String groupName)
Retrieves the group with the given name. |
Pager<Group> |
getGroups()
Retrieves all groups in this repository. |
Pager<Group> |
getGroups(User user)
Retrieves the groups to which the given user belongs. |
RepositoryIdentifier |
getIdentifier()
|
Pager<String> |
getLocalMemberNames(Group group)
Retrieves the names of those members of the specified group which are also stored in this repository. |
Pager<String> |
getMemberNames(Group group)
Retrieves the names of all members of the specified group. |
RepositoryIdentifier |
getRepository(Entity entity)
|
boolean |
hasMembership(Group group,
User user)
Returns true if the user is a member of the specified group. |
boolean |
supportsExternalMembership()
Returns true if the repository supports users in other
repositories being members of groups in this repository. |
| Methods inherited from class com.atlassian.user.impl.ReadOnlyGroupManager |
|---|
addMembership, createGroup, getWritableGroups, isCreative, isReadOnly, removeGroup, removeMembership, saveGroup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LDAPGroupManagerReadOnly(RepositoryIdentifier repositoryIdentifier,
LDAPGroupAdaptor groupAdaptor)
| Method Detail |
|---|
public RepositoryIdentifier getIdentifier()
RepositoryIdentifier which is managed by this instance.
public RepositoryIdentifier getRepository(Entity entity)
throws EntityException
RepositoryIdentifier of the repository in which the entity is stored, or null
if the entity cannot be found.
EntityException - if the entity cannot be found, or trying to retrieve it results in an error
public Pager<Group> getGroups()
throws EntityException
GroupManager
Pager containing a Group for each group managed
by the repository. An empty pager will be returned if the repository does
not contain any groups.
EntityException
public Group getGroup(String groupName)
throws EntityException
GroupManagernull if the
group does not exist in this repository.
Group or null if the group does not exist.
EntityException
public Pager<Group> getGroups(User user)
throws EntityException
GroupManager
Pager containing a Group for each group the user
belongs to. An empty pager will be returned if the user does not belong to
any groups that this manager knows about.
EntityException
public Pager<String> getMemberNames(Group group)
throws EntityException
GroupManagerCollator.getInstance().
Pager containing a String with the name of each
member of the group. An empty pager will be returned if the group has no
members.
EntityException
public Pager<String> getLocalMemberNames(Group group)
throws EntityException
GroupManagerCollator.getInstance().
If GroupManager.supportsExternalMembership() returns false, this
call is equivalent to GroupManager.getMemberNames(Group).
Pager containing a String with the name of each
member of the group which is stored in the same repository. An empty pager
will be returned if the group has no local members.
EntityException
public Pager<String> getExternalMemberNames(Group group)
throws EntityException
GroupManagerCollator.getInstance().
If GroupManager.supportsExternalMembership() returns false, this
method throws UnsupportedOperationException.
Pager containing a String with the name of each
member of the group which is stored in a different repository. An empty pager
will be returned if the group has no external members.
EntityException
public boolean hasMembership(Group group,
User user)
throws EntityException
GroupManagerGroupManager.supportsExternalMembership()
returns true, external members will be checked as well.
If the group is not handled by this manager, returns false.
EntityException
public boolean supportsExternalMembership()
throws EntityException
GroupManagertrue 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.
supportsExternalMembership in interface GroupManagersupportsExternalMembership in class ReadOnlyGroupManagerEntityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||