Spring LDAP Framework

org.springframework.ldap
Class PersonAttributesMapper

java.lang.Object
  extended by org.springframework.ldap.PersonAttributesMapper
All Implemented Interfaces:
AttributesMapper

public class PersonAttributesMapper
extends Object
implements AttributesMapper

Dummy implementation of AttributesMapper for use in integration tests.

Author:
Mattias Hellborg Arthursson

Constructor Summary
PersonAttributesMapper()
           
 
Method Summary
 Object mapFromAttributes(Attributes attributes)
          Maps the given attributes into a Person object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonAttributesMapper

public PersonAttributesMapper()
Method Detail

mapFromAttributes

public Object mapFromAttributes(Attributes attributes)
                         throws NamingException
Maps the given attributes into a Person object.

Specified by:
mapFromAttributes in interface AttributesMapper
Parameters:
attributes - attributes from a SearchResult.
Returns:
an object built from the attributes.
Throws:
NamingException - if any error occurs mapping the attributes
See Also:
AttributesMapper.mapFromAttributes(javax.naming.directory.Attributes)

Spring LDAP Framework

Copyright © 2006-2009 The Spring LDAP Framework. All Rights Reserved.