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) |
Modifier and Type | Method and Description |
---|---|
String[] |
getAttributesArray() |
boolean |
hasMore() |
Object |
mapFromAttributes(Attributes attributes) |
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 © 2020 Atlassian. All rights reserved.