public class RecursiveAttributeHandler extends CopyAttributeHandler implements ExtendedAttributeHandler
RecursiveAttributeHandler will recursively search for attributes
of the same name and combine them into one attribute. Attribute values must
represent DNs in the LDAP.logger| Constructor and Description |
|---|
RecursiveAttributeHandler(Ldap l,
String attrName)
Creates a new
RecursiveAttributeHandler with the supplied ldap
and attribute name. |
RecursiveAttributeHandler(String attrName)
Creates a new
RecursiveAttributeHandler with the supplied
attribute name. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeName()
Returns the attribute name that will be recursively searched on.
|
Ldap |
getSearchResultLdap()
Gets the
Ldap used by the search operation invoking this
handler. |
protected Attribute |
processResult(SearchCriteria sc,
Attribute attr)
This will return a deep copy of the supplied
Attribute. |
void |
setAttributeName(String s)
Sets the attribute name that will be recursively searched on.
|
void |
setSearchResultLdap(Ldap l)
Sets the
Ldap used by the search operation invoking this
handler. |
processValueprocess, process, processclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocess, process, processpublic RecursiveAttributeHandler(String attrName)
RecursiveAttributeHandler with the supplied
attribute name.attrName - Stringpublic Ldap getSearchResultLdap()
Ldap used by the search operation invoking this
handler.getSearchResultLdap in interface ExtendedAttributeHandlerLdappublic void setSearchResultLdap(Ldap l)
Ldap used by the search operation invoking this
handler.setSearchResultLdap in interface ExtendedAttributeHandlerl - Ldappublic String getAttributeName()
String attribute namepublic void setAttributeName(String s)
s - Stringprotected Attribute processResult(SearchCriteria sc, Attribute attr) throws NamingException
Attribute.processResult in class CopyAttributeHandlersc - SearchCriteria used to find enumerationattr - Attribute to copyAttributeNamingException - if the attribute values cannot be readCopyright © 2014. All rights reserved.