Package org.ldaptive.handler
Class MergeAttributeEntryHandler
- java.lang.Object
-
- org.ldaptive.transport.MessageFunctional<Q,S>
-
- org.ldaptive.transport.MessageFunctional.Function<SearchRequest,SearchResponse,T,T>
-
- org.ldaptive.handler.AbstractEntryHandler<LdapEntry>
-
- org.ldaptive.handler.MergeAttributeEntryHandler
-
- All Implemented Interfaces:
java.util.function.Function<LdapEntry,LdapEntry>,LdapEntryHandler
public class MergeAttributeEntryHandler extends AbstractEntryHandler<LdapEntry> implements LdapEntryHandler
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.- Author:
- Middleware Services
-
-
Field Summary
-
Fields inherited from class org.ldaptive.handler.AbstractEntryHandler
logger
-
-
Constructor Summary
Constructors Constructor Description MergeAttributeEntryHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapEntryapply(LdapEntry entry)booleanequals(java.lang.Object o)java.lang.String[]getAttributeNames()Returns the attribute names.java.lang.StringgetMergeAttributeName()Returns the merge attribute name.protected voidhandleAttributes(LdapEntry entry)Handle the attributes of a search entry.inthashCode()voidsetAttributeNames(java.lang.String... names)Sets the attribute names.voidsetMergeAttributeName(java.lang.String name)Sets the merge attribute name.java.lang.StringtoString()-
Methods inherited from class org.ldaptive.handler.AbstractEntryHandler
handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, handleEntry
-
Methods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, setConnection, setHandle, setRequest
-
-
-
-
Method Detail
-
getMergeAttributeName
public java.lang.String getMergeAttributeName()
Returns the merge attribute name.- Returns:
- merge attribute name
-
setMergeAttributeName
public void setMergeAttributeName(java.lang.String name)
Sets the merge attribute name.- Parameters:
name- of the merge attribute
-
getAttributeNames
public java.lang.String[] getAttributeNames()
Returns the attribute names.- Returns:
- attribute names
-
setAttributeNames
public void setAttributeNames(java.lang.String... names)
Sets the attribute names.- Parameters:
names- of the attributes
-
handleAttributes
protected void handleAttributes(LdapEntry entry)
Description copied from class:AbstractEntryHandlerHandle the attributes of a search entry.- Overrides:
handleAttributesin classAbstractEntryHandler<LdapEntry>- Parameters:
entry- search entry to extract the attributes from
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractEntryHandler<LdapEntry>
-
hashCode
public int hashCode()
- Specified by:
hashCodein classAbstractEntryHandler<LdapEntry>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-