edu.vt.middleware.ldap.handler
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,
java.lang.String attrName)
Creates a new
RecursiveAttributeHandler with the supplied ldap
and attribute name. |
RecursiveAttributeHandler(java.lang.String attrName)
Creates a new
RecursiveAttributeHandler with the supplied
attribute name. |
Modifier and Type | Method and Description |
---|---|
java.lang.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 javax.naming.directory.Attribute |
processResult(SearchCriteria sc,
javax.naming.directory.Attribute attr)
This will return a deep copy of the supplied
Attribute . |
void |
setAttributeName(java.lang.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. |
processValue
process, process, process
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process, process, process
public RecursiveAttributeHandler(java.lang.String attrName)
RecursiveAttributeHandler
with the supplied
attribute name.attrName
- String
public RecursiveAttributeHandler(Ldap l, java.lang.String attrName)
RecursiveAttributeHandler
with the supplied ldap
and attribute name.l
- Ldap
attrName
- String
public Ldap getSearchResultLdap()
Ldap
used by the search operation invoking this
handler.getSearchResultLdap
in interface ExtendedAttributeHandler
Ldap
public void setSearchResultLdap(Ldap l)
Ldap
used by the search operation invoking this
handler.setSearchResultLdap
in interface ExtendedAttributeHandler
l
- Ldap
public java.lang.String getAttributeName()
String
attribute namepublic void setAttributeName(java.lang.String s)
s
- String
protected javax.naming.directory.Attribute processResult(SearchCriteria sc, javax.naming.directory.Attribute attr) throws javax.naming.NamingException
Attribute
.processResult
in class CopyAttributeHandler
sc
- SearchCriteria
used to find enumerationattr
- Attribute
to copyAttribute
javax.naming.NamingException
- if the attribute values cannot be readCopyright © 2014. All Rights Reserved.