public abstract class AddOperationWrapper extends OperationWrapper<AddOperation> implements AddOperation
LOCALBACKENDOPERATIONS
Constructor and Description |
---|
AddOperationWrapper(AddOperation add)
Creates a new add operation based on the provided add operation.
|
Modifier and Type | Method and Description |
---|---|
void |
addObjectClass(ObjectClass objectClass,
String name)
Adds the provided objectclass to the entry to add.
|
void |
addRawAttribute(RawAttribute rawAttribute)
Adds the provided attribute to the set of raw attributes for this add
operation.
|
DN |
getEntryDN()
Retrieves the DN of the entry to add.
|
Map<ObjectClass,String> |
getObjectClasses()
Retrieves the set of processed objectclasses for the entry to add.
|
Map<AttributeType,List<Attribute>> |
getOperationalAttributes()
Retrieves the set of processed operational attributes for the entry to add.
|
List<RawAttribute> |
getRawAttributes()
Retrieves the set of attributes in their raw, unparsed form as read from
the client request.
|
org.forgerock.opendj.ldap.ByteString |
getRawEntryDN()
Retrieves the DN of the entry to add in a raw, unparsed form as it was
included in the request.
|
Map<AttributeType,List<Attribute>> |
getUserAttributes()
Retrieves the set of processed user attributes for the entry to add.
|
void |
removeAttribute(AttributeType attributeType)
Removes the specified attribute from the entry to add.
|
void |
removeObjectClass(ObjectClass objectClass)
Removes the provided objectclass from the entry to add.
|
void |
setAttribute(AttributeType attributeType,
List<Attribute> attributeList)
Sets the specified attribute in the entry to add, overwriting any existing
attribute of the specified type if necessary.
|
void |
setRawAttributes(List<RawAttribute> rawAttributes)
Replaces the set of raw attributes for this add operation.
|
void |
setRawEntryDN(org.forgerock.opendj.ldap.ByteString rawEntryDN)
Specifies the raw entry DN for the entry to add.
|
String |
toString()
Retrieves a string representation of this operation.
|
abort, addAdditionalLogItem, addRequestControl, addResponseControl, appendErrorMessage, appendMaskedErrorMessage, cancel, checkIfCanceled, disconnectClient, dontSynchronize, equals, getAdditionalLogItems, getAttachment, getAttachments, getAuthorizationDN, getAuthorizationEntry, getCancelRequest, getCancelResult, getClientConnection, getConnectionID, getErrorMessage, getMaskedErrorMessage, getMaskedResultCode, getMatchedDN, getMessageID, getOperation, getOperationID, getOperationType, getProcessingNanoTime, getProcessingStartTime, getProcessingStopTime, getProcessingTime, getProxiedAuthorizationDN, getReferralURLs, getRequestControl, getRequestControls, getResponseControls, getResultCode, hashCode, isInnerOperation, isInternalOperation, isSynchronizationOperation, operationCompleted, registerPostResponseCallback, removeAttachment, removeResponseControl, run, setAttachment, setAttachments, setAuthorizationEntry, setDontSynchronize, setErrorMessage, setInnerOperation, setInternalOperation, setMaskedErrorMessage, setMaskedResultCode, setMatchedDN, setProxiedAuthorizationDN, setReferralURLs, setResponseData, setResultCode, setSynchronizationOperation, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getProxiedAuthorizationDN, setProxiedAuthorizationDN
abort, addAdditionalLogItem, addRequestControl, addResponseControl, appendErrorMessage, appendMaskedErrorMessage, cancel, checkIfCanceled, disconnectClient, dontSynchronize, getAdditionalLogItems, getAttachment, getAttachments, getAuthorizationDN, getAuthorizationEntry, getCancelRequest, getCancelResult, getClientConnection, getConnectionID, getErrorMessage, getMaskedErrorMessage, getMaskedResultCode, getMatchedDN, getMessageID, getOperationID, getOperationType, getProcessingNanoTime, getProcessingStartTime, getProcessingStopTime, getProcessingTime, getReferralURLs, getRequestControl, getRequestControls, getResponseControls, getResultCode, isInnerOperation, isInternalOperation, isSynchronizationOperation, operationCompleted, registerPostResponseCallback, removeAttachment, removeResponseControl, run, setAttachment, setAttachments, setAuthorizationEntry, setDontSynchronize, setErrorMessage, setInnerOperation, setInternalOperation, setMaskedErrorMessage, setMaskedResultCode, setMatchedDN, setReferralURLs, setResponseData, setResultCode, setSynchronizationOperation, toString
public AddOperationWrapper(AddOperation add)
add
- The add operation to wrappublic void addObjectClass(ObjectClass objectClass, String name)
addObjectClass
in interface AddOperation
objectClass
- The objectclass to add to the entry.name
- The name to use for the objectclass.public void addRawAttribute(RawAttribute rawAttribute)
addRawAttribute
in interface AddOperation
rawAttribute
- The attribute to add to the set of raw attributes for
this add operation.public DN getEntryDN()
getEntryDN
in interface AddOperation
null
if it has not yet
been parsed from the raw DN.public Map<ObjectClass,String> getObjectClasses()
getObjectClasses
in interface AddOperation
null
if that information is not yet available.public Map<AttributeType,List<Attribute>> getOperationalAttributes()
getOperationalAttributes
in interface AddOperation
null
if that information is not yet available.public List<RawAttribute> getRawAttributes()
getRawAttributes
in interface AddOperation
public org.forgerock.opendj.ldap.ByteString getRawEntryDN()
getRawEntryDN
in interface AddOperation
public Map<AttributeType,List<Attribute>> getUserAttributes()
getUserAttributes
in interface AddOperation
null
if that information is not yet available.public void removeAttribute(AttributeType attributeType)
removeAttribute
in interface AddOperation
attributeType
- The attribute tyep for the attribute to remove.public void removeObjectClass(ObjectClass objectClass)
removeObjectClass
in interface AddOperation
objectClass
- The objectclass to remove from the entry.public void setAttribute(AttributeType attributeType, List<Attribute> attributeList)
setAttribute
in interface AddOperation
attributeType
- The attribute type for the attribute.attributeList
- The attribute list for the provided attribute type.public void setRawAttributes(List<RawAttribute> rawAttributes)
setRawAttributes
in interface AddOperation
rawAttributes
- The set of raw attributes for this add operation.public void setRawEntryDN(org.forgerock.opendj.ldap.ByteString rawEntryDN)
getEntryDN
and setEntryDN
methods.setRawEntryDN
in interface AddOperation
rawEntryDN
- The raw entry DN for the entry to add.public String toString()
toString
in interface Operation
toString
in class OperationWrapper<AddOperation>
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.