com.atlassian.crowd.directory.ldap.mapper.attribute.group
Class RFC4519MemberDnRangeOffsetMapper
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.attribute.group.RFC4519MemberDnRangeOffsetMapper
- All Implemented Interfaces:
- AttributeMapper
public class RFC4519MemberDnRangeOffsetMapper
- extends java.lang.Object
- implements AttributeMapper
If the group has ranged memberships (Active Directory specific) this mapper will obtain
the offset - ie. where to start the search for the second page of users.
Tested by: _testBrowseLargeGroup() in DnRangeTest
Method Summary |
java.lang.String |
getKey()
Get the key to use when storing the attribute on an entity. |
java.util.Set<java.lang.String> |
getValues(org.springframework.ldap.core.DirContextAdapter ctx)
Map the value of the key from the directory context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTRIBUTE_KEY
public static final java.lang.String ATTRIBUTE_KEY
- See Also:
- Constant Field Values
RFC4519MemberDnRangeOffsetMapper
public RFC4519MemberDnRangeOffsetMapper(java.lang.String groupMemberAttribute)
getKey
public java.lang.String getKey()
- Description copied from interface:
AttributeMapper
- Get the key to use when storing the attribute on an entity.
- Specified by:
getKey
in interface AttributeMapper
- Returns:
- non-null key.
getValues
public java.util.Set<java.lang.String> getValues(org.springframework.ldap.core.DirContextAdapter ctx)
throws java.lang.Exception
- Description copied from interface:
AttributeMapper
- Map the value of the key from the directory context.
- Specified by:
getValues
in interface AttributeMapper
- Parameters:
ctx
- directory context containing attributes.
- Returns:
- the set of attribute values associated with the key. If no values are present an empty set will be returned
- Throws:
java.lang.Exception
- error retrieving value. The attribute will not be set.
Copyright © 2010 Atlassian. All Rights Reserved.