com.atlassian.crowd.directory.ldap.mapper.attribute
Class USNChangedMapper

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.mapper.attribute.USNChangedMapper
All Implemented Interfaces:
AttributeMapper

public class USNChangedMapper
extends Object
implements AttributeMapper

Maps the uSNChanged on an entity. This concept only applies to Active Directory.


Field Summary
static String ATTRIBUTE_KEY
          USN Changed attribute name.
 
Constructor Summary
USNChangedMapper()
           
 
Method Summary
 String getKey()
          Get the key to use when storing the attribute on an entity with Attributes.
 Set<String> getRequiredLdapAttributes()
          Returns the LDAP attributes that should be requested in a search where AttributeMapper.getValues(DirContextAdapter) will be called on the results.
 Set<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
 

Field Detail

ATTRIBUTE_KEY

public static final String ATTRIBUTE_KEY
USN Changed attribute name.

See Also:
Constant Field Values
Constructor Detail

USNChangedMapper

public USNChangedMapper()
Method Detail

getKey

public String getKey()
Description copied from interface: AttributeMapper
Get the key to use when storing the attribute on an entity with Attributes.

Specified by:
getKey in interface AttributeMapper
Returns:
non-null key.

getValues

public Set<String> getValues(org.springframework.ldap.core.DirContextAdapter ctx)
                      throws NamingException
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:
NamingException

getRequiredLdapAttributes

public Set<String> getRequiredLdapAttributes()
Description copied from interface: AttributeMapper
Returns the LDAP attributes that should be requested in a search where AttributeMapper.getValues(DirContextAdapter) will be called on the results. If an implementation returns null then all attributes will be requested.

Specified by:
getRequiredLdapAttributes in interface AttributeMapper
Returns:
the LDAP attributes that should be requested, or null for all


Copyright © 2013 Atlassian. All Rights Reserved.