com.atlassian.crowd.directory.ldap.mapper
Class TombstoneContextMapper

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.mapper.TombstoneContextMapper
All Implemented Interfaces:
ContextMapperWithRequiredAttributes<Tombstone>, org.springframework.ldap.core.ContextMapper

public class TombstoneContextMapper
extends Object
implements ContextMapperWithRequiredAttributes<Tombstone>

Specific to Active Directory to map deleted objects.


Constructor Summary
TombstoneContextMapper()
           
 
Method Summary
 Set<String> getRequiredLdapAttributes()
          Returns the LDAP attributes that should be requested in a search where ContextMapperWithRequiredAttributes.mapFromContext(Object) will be called on the results.
 Tombstone mapFromContext(Object ctx)
          Returns an object representation of a deleted object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TombstoneContextMapper

public TombstoneContextMapper()
Method Detail

mapFromContext

public Tombstone mapFromContext(Object ctx)
Returns an object representation of a deleted object.

Specified by:
mapFromContext in interface ContextMapperWithRequiredAttributes<Tombstone>
Specified by:
mapFromContext in interface org.springframework.ldap.core.ContextMapper
Parameters:
ctx -
Returns:
tombstone object with objectGUID and uSNChanged.

getRequiredLdapAttributes

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

Specified by:
getRequiredLdapAttributes in interface ContextMapperWithRequiredAttributes<Tombstone>
Returns:
the LDAP attributes that should be requested, or null for all


Copyright © 2013 Atlassian. All Rights Reserved.