public class DnAttributeEntryHandler extends AbstractSearchEntryHandler
logger
Constructor and Description |
---|
DnAttributeEntryHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getDnAttributeName()
Returns the DN attribute name.
|
protected void |
handleAttributes(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the attributes of a search entry.
|
int |
hashCode() |
boolean |
isAddIfExists()
Returns whether to add the entryDN if an attribute of the same name exists.
|
void |
setAddIfExists(boolean b)
Sets whether to add the entryDN if an attribute of the same name exists.
|
void |
setDnAttributeName(String name)
Sets the DN attribute name.
|
String |
toString() |
equals, handle, handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, initializeRequest
public String getDnAttributeName()
public void setDnAttributeName(String name)
name
- of the DN attributepublic boolean isAddIfExists()
public void setAddIfExists(boolean b)
b
- whether to add the entryDN if an attribute of the same name existsprotected void handleAttributes(Connection conn, SearchRequest request, SearchEntry entry) throws LdapException
AbstractSearchEntryHandler
handleAttributes
in class AbstractSearchEntryHandler
conn
- the search was performed onrequest
- used to find the search entryentry
- search entry to extract the attributes fromLdapException
- if the LDAP returns an errorpublic int hashCode()
hashCode
in class AbstractSearchEntryHandler
Copyright © 2023. All rights reserved.