com.atlassian.crowd.directory.ldap.mapper
Interface ContextMapperWithRequiredAttributes<T>

All Superinterfaces:
org.springframework.ldap.core.ContextMapper
All Known Implementing Classes:
ActiveDirectoryUserContextMapper, ContextMapperWithCustomAttributes, GroupContextMapper, TombstoneContextMapper, UserContextMapper

public interface ContextMapperWithRequiredAttributes<T>
extends org.springframework.ldap.core.ContextMapper

A ContextMapper for LDAP DirContextAdapters that declares which attributes it requires.


Method Summary
 Set<String> getRequiredLdapAttributes()
          Returns the LDAP attributes that should be requested in a search where mapFromContext(Object) will be called on the results.
 T mapFromContext(Object ctx)
           
 

Method Detail

mapFromContext

T mapFromContext(Object ctx)
Specified by:
mapFromContext in interface org.springframework.ldap.core.ContextMapper

getRequiredLdapAttributes

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

Returns:
the LDAP attributes that should be requested, or null for all


Copyright © 2014 Atlassian. All Rights Reserved.