Package org.ldaptive.ad.handler
Class ObjectGuidHandler
java.lang.Object
org.ldaptive.transport.MessageFunctional<Q,S>
org.ldaptive.transport.MessageFunctional.Function<SearchRequest,SearchResponse,T,T>
org.ldaptive.handler.AbstractEntryHandler<T>
org.ldaptive.ad.handler.AbstractBinaryAttributeHandler<LdapEntry>
org.ldaptive.ad.handler.ObjectGuidHandler
- All Implemented Interfaces:
Function<LdapEntry,
,LdapEntry> LdapEntryHandler
public class ObjectGuidHandler
extends AbstractBinaryAttributeHandler<LdapEntry>
implements LdapEntryHandler
Processes an objectGuid attribute by converting it from binary to it's string form.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
objectGuid attribute name.private static final int
hash code seed.Fields inherited from class org.ldaptive.handler.AbstractEntryHandler
logger
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new object guid handler.ObjectGuidHandler
(String attrName) Creates a new object guid handler. -
Method Summary
Methods inherited from class org.ldaptive.ad.handler.AbstractBinaryAttributeHandler
getAttributeName, handleAttributes, setAttributeName, setRequest
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
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
ATTRIBUTE_NAME
objectGuid attribute name.- See Also:
-
-
Constructor Details
-
ObjectGuidHandler
public ObjectGuidHandler()Creates a new object guid handler. -
ObjectGuidHandler
Creates a new object guid handler.- Parameters:
attrName
- name of the attribute which is encoded as an objectGUID
-
-
Method Details
-
apply
-
convertValue
Description copied from class:AbstractBinaryAttributeHandler
Converts the supplied binary value to it's string form.- Specified by:
convertValue
in classAbstractBinaryAttributeHandler<LdapEntry>
- Parameters:
value
- to convert- Returns:
- string form of the value
-
equals
- Overrides:
equals
in classAbstractBinaryAttributeHandler<LdapEntry>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractBinaryAttributeHandler<LdapEntry>
-