Spring LDAP

org.springframework.ldap.test
Class AttributeCheckAttributesMapper

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

public class AttributeCheckAttributesMapper
extends Object
implements AttributesMapper

Dummy AttributesMapper for testing purposes to check that the received Attributes are the expected ones.

Author:
Mattias Hellborg Arthursson

Constructor Summary
AttributeCheckAttributesMapper()
           
 
Method Summary
 Object mapFromAttributes(Attributes attributes)
          Map Attributes to an object.
 void setAbsentAttributes(String[] absentAttributes)
           
 void setExpectedAttributes(String[] expectedAttributes)
           
 void setExpectedValues(String[] expectedValues)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeCheckAttributesMapper

public AttributeCheckAttributesMapper()
Method Detail

mapFromAttributes

public Object mapFromAttributes(Attributes attributes)
                         throws NamingException
Description copied from interface: AttributesMapper
Map Attributes to an object. The supplied attributes are the attributes from a single SearchResult.

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

setAbsentAttributes

public void setAbsentAttributes(String[] absentAttributes)

setExpectedAttributes

public void setExpectedAttributes(String[] expectedAttributes)

setExpectedValues

public void setExpectedValues(String[] expectedValues)

Spring LDAP