public class IncrementalAttributeMapper extends Object implements org.springframework.ldap.core.AttributesMapper
Example usage of this attribute mapper:
public void retrieveAttributeIncrementally(LdapTemplate ldap, LdapName entrDn, String attributeName, AttributeValueProcessor valueProcessor) { IncrementalAttributeMapper incrementalAttributeMapper = new IncrementalAttributeMapper(attributeName, valueProcessor); while (incrementalAttributeMapper.hasMore()) { ldap.lookup(entrDn, incrementalAttributeMapper.getAttributesArray(), incrementalAttributeMapper); } }
Constructor and Description |
---|
IncrementalAttributeMapper(String attributeName,
AttributeValueProcessor valueProcessor) |
IncrementalAttributeMapper(String attributeName,
AttributeValueProcessor valueProcessor,
RangeOption requestRange) |
public IncrementalAttributeMapper(String attributeName, AttributeValueProcessor valueProcessor)
public IncrementalAttributeMapper(String attributeName, AttributeValueProcessor valueProcessor, RangeOption requestRange)
public Object mapFromAttributes(Attributes attributes) throws NamingException
mapFromAttributes
in interface org.springframework.ldap.core.AttributesMapper
NamingException
public boolean hasMore()
public String[] getAttributesArray()
Copyright © 2013 Atlassian. All Rights Reserved.