|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.handler.AbstractSearchEntryHandler
org.ldaptive.handler.MergeAttributeEntryHandler
public class MergeAttributeEntryHandler
Merges the values of one or more attributes into a single attribute. The merged attribute may or may not already exist on the entry. If it does exist it's existing values will remain intact.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.handler.AbstractSearchEntryHandler |
|---|
logger |
| Constructor Summary | |
|---|---|
MergeAttributeEntryHandler()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String[] |
getAttributeNames()
Returns the attribute names. |
String |
getMergeAttributeName()
Returns the merge attribute name. |
protected void |
handleAttributes(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the attributes of a search entry. |
int |
hashCode()
|
void |
setAttributeNames(String... names)
Sets the attribute names. |
void |
setMergeAttributeName(String name)
Sets the merge attribute name. |
String |
toString()
|
| Methods inherited from class org.ldaptive.handler.AbstractSearchEntryHandler |
|---|
handle, handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, initializeRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MergeAttributeEntryHandler()
| Method Detail |
|---|
public String getMergeAttributeName()
public void setMergeAttributeName(String name)
name - of the merge attributepublic String[] getAttributeNames()
public void setAttributeNames(String... names)
names - of the attributes
protected void handleAttributes(Connection conn,
SearchRequest request,
SearchEntry entry)
throws LdapException
handleAttributes in class AbstractSearchEntryHandlerconn - the search was performed onrequest - used to find the search entryentry - search entry to extract the attributes from
LdapException - if the LDAP returns an errorpublic boolean equals(Object o)
equals in class AbstractSearchEntryHandlerpublic int hashCode()
AbstractSearchEntryHandler
hashCode in class AbstractSearchEntryHandlerpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||