|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.directory.connector.SpringLDAPConnector
com.atlassian.crowd.integration.directory.connector.RFC4519Directory
public abstract class RFC4519Directory
Read-write, nesting-aware implementation of RFC4519 user-group membership interactions.
A user is a member of a group if either: - the DN of user is present in the collection of member attribute values of the group - the user has a memberOf attribute which contains the DN of the group (must be enabled via LDAPPropertiesMapper)
RFC2307GidNumberMapper,
RFC2307MemberUidMapper| Field Summary |
|---|
| Fields inherited from class com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector |
|---|
applicationContext, attributes, contextSource, DEFAULT_PAGE_SIZE, eventManager, ldapPropertiesMapper, ldapQueryTranslater, ldapTemplate, logger, nameConverter, searchDN |
| Constructor Summary | |
|---|---|
RFC4519Directory()
|
|
| Method Summary | |
|---|---|
void |
addGroupToGroup(java.lang.String childGroup,
java.lang.String parentGroup)
Adds a group as a member of a parent group. |
void |
addUserToGroup(java.lang.String username,
java.lang.String groupName)
Adds a user as a member of a group. |
protected java.util.List<AttributeMapper> |
getCustomGroupAttributeMappers()
As a minimum, this SHOULD provide an attribute mapper that maps the group members attribute (if available). |
protected java.util.List<AttributeMapper> |
getCustomUserAttributeMappers()
|
boolean |
isGroupDirectGroupMember(java.lang.String childGroup,
java.lang.String parentGroup)
Determines if a group is a direct member of another group. |
boolean |
isUserDirectGroupMember(java.lang.String username,
java.lang.String groupName)
Determines if a user is a direct member of a group. |
void |
removeGroupFromGroup(java.lang.String childGroup,
java.lang.String parentGroup)
Removes a group as a member of a parent group. |
void |
removeUserFromGroup(java.lang.String username,
java.lang.String groupName)
Removes a user as a member of a group. |
protected java.util.List |
searchGroupRelationshipsWithGroupTypeSpecified(MembershipQuery query)
Execute the search for group relationships given that a group of type GROUP or LEGACY_ROLE has been specified in the EntityDescriptor for the group(s). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.crowd.integration.directory.RemoteDirectory |
|---|
getDescriptiveName |
| Constructor Detail |
|---|
public RFC4519Directory()
| Method Detail |
|---|
protected java.util.List<AttributeMapper> getCustomGroupAttributeMappers()
SpringLDAPConnector
getCustomGroupAttributeMappers in class SpringLDAPConnectorprotected java.util.List<AttributeMapper> getCustomUserAttributeMappers()
getCustomUserAttributeMappers in class SpringLDAPConnector
public boolean isUserDirectGroupMember(java.lang.String username,
java.lang.String groupName)
RemoteDirectory
username - name of user.groupName - name of group.
true iff the user is a direct member of the group.
public boolean isGroupDirectGroupMember(java.lang.String childGroup,
java.lang.String parentGroup)
RemoteDirectory
childGroup - name of child group.parentGroup - name of parent group.
true iff the childGroup is a direct member of the parentGroup.
public void addUserToGroup(java.lang.String username,
java.lang.String groupName)
throws ObjectNotFoundException
RemoteDirectorychildGroup will
appear as members of parentGroup to querying applications.
username - The user that will become a member of groupNamegroupName - The group that will gain a new member.
ObjectNotFoundException - If the user or group cannot be found.
public void addGroupToGroup(java.lang.String childGroup,
java.lang.String parentGroup)
throws ObjectNotFoundException,
InvalidMembershipException
RemoteDirectory
childGroup - The group that will become a member of parentGroupparentGroup - The group that will gain a new member
ObjectNotFoundException - One or both of the groups cannot be found.
InvalidMembershipException - if the childGroup and parentGroup exist but are of different GroupTypes.
public void removeUserFromGroup(java.lang.String username,
java.lang.String groupName)
throws ObjectNotFoundException,
MembershipNotFoundException
RemoteDirectory
username - The user that will be removed from parentGroupgroupName - The group that will lose the member.
ObjectNotFoundException - If either the user or group cannot be found.
MembershipNotFoundException - if the user is not a direct member of the group.
public void removeGroupFromGroup(java.lang.String childGroup,
java.lang.String parentGroup)
throws ObjectNotFoundException,
MembershipNotFoundException,
InvalidMembershipException
RemoteDirectory
childGroup - The group that will be removed from parentGroupparentGroup - The group that will lose the member.
ObjectNotFoundException - One or both of the groups cannot be found.
MembershipNotFoundException - if the childGroup is not a direct member of the parentGroup.
InvalidMembershipException - if the childGroup and parentGroup exist but are of different GroupTypes.protected java.util.List searchGroupRelationshipsWithGroupTypeSpecified(MembershipQuery query)
SpringLDAPConnector
searchGroupRelationshipsWithGroupTypeSpecified in class SpringLDAPConnectorquery - membership query with all GroupType's not null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||