public class ModifyRequestDsml extends AbstractResultResponseRequestDsml<ModifyRequest,ModifyResponse> implements ModifyRequest
| Constructor and Description |
|---|
ModifyRequestDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of ModifyRequestDsml.
|
ModifyRequestDsml(LdapApiService codec,
ModifyRequest ldapMessage)
Creates a new getDecoratedMessage() of ModifyRequestDsml.
|
| Modifier and Type | Method and Description |
|---|---|
ModifyRequest |
add(Attribute attr)
marks a given attribute for addition in the target entry.
|
ModifyRequest |
add(String attributeName,
byte[]... attributeValue) |
ModifyRequest |
add(String attributeName,
String... attributeValue)
marks a given attribute for addition in the target entry with the
given values.
|
ModifyRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message.
|
void |
addAttributeTypeAndValues(String type)
Add a new attributeTypeAndValue
|
void |
addAttributeValue(byte[] value)
Add a new value to the current attribute
|
void |
addAttributeValue(String value)
Add a new value to the current attribute
|
ModifyRequest |
addControl(Control control)
Adds a control to this Message.
|
ModifyRequest |
addModification(Attribute attr,
ModificationOperation modOp)
Add a modification
|
ModifyRequest |
addModification(Modification mod)
Adds a ModificationItem to the set of modifications composing this modify
request.
|
String |
getCurrentAttributeType()
Return the current attribute's type
|
Collection<Modification> |
getModifications()
Gets an immutable Collection of modification items representing the
atomic changes to perform on the candidate entry to modify.
|
Dn |
getName()
Gets the distinguished name of the entry to be modified by this request.
|
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces
at least one response.
|
ModifyRequest |
remove(Attribute attr)
marks a given attribute for removal from the target entry.
|
ModifyRequest |
remove(String attributeName)
marks a given attribute name for removal from the target entry.
|
ModifyRequest |
remove(String attributeName,
byte[]... attributeValue) |
ModifyRequest |
remove(String attributeName,
String... attributeValue)
marks a given attribute for removal with the given
values from the target entry.
|
ModifyRequest |
removeControl(Control control)
Deletes a control removing it from this Message.
|
ModifyRequest |
removeModification(Modification mod)
Removes a ModificationItem to the set of modifications composing this
modify request.
|
ModifyRequest |
replace(Attribute attr)
marks a given attribute for replacement in the target entry.
|
ModifyRequest |
replace(String attributeName) |
ModifyRequest |
replace(String attributeName,
byte[]... attributeValue) |
ModifyRequest |
replace(String attributeName,
String... attributeValue)
marks a given attribute for replacement with the given
values in the target entry.
|
void |
setCurrentOperation(int currentOperation)
Store the current operation
|
ModifyRequest |
setMessageId(int messageId)
Sets the Message ID for this request
|
ModifyRequest |
setName(Dn name)
Sets the distinguished name of the entry to be modified by this request.
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls.
|
abandon, addAbandonListener, computeLength, encode, getResultResponse, isAbandonedhasResponseget, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, getType, hasControl, putclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResultResponsehasResponseget, getControl, getControls, getMessageId, getType, hasControl, putabandon, addAbandonListener, isAbandonedpublic ModifyRequestDsml(LdapApiService codec)
public ModifyRequestDsml(LdapApiService codec, ModifyRequest ldapMessage)
ldapMessage - the message to decoratepublic String getCurrentAttributeType()
public void setCurrentOperation(int currentOperation)
currentOperation - The currentOperation to set.public void addAttributeTypeAndValues(String type)
type - The attribute's namepublic void addAttributeValue(byte[] value)
throws LdapException
value - The value to addLdapExceptionpublic void addAttributeValue(String value) throws LdapException
value - The value to addLdapExceptionpublic org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml in interface DsmlDecorator<ModifyRequest>toDsml in class AbstractResultResponseRequestDsml<ModifyRequest,ModifyResponse>root - the root elementpublic MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequestpublic Dn getName()
getName in interface ModifyRequestpublic ModifyRequest setName(Dn name)
setName in interface ModifyRequestname - the Dn of the modified entry.public Collection<Modification> getModifications()
getModifications in interface ModifyRequestpublic ModifyRequest addModification(Modification mod)
addModification in interface ModifyRequestmod - a Modification to add.public ModifyRequest removeModification(Modification mod)
removeModification in interface ModifyRequestmod - a Modification to remove.public ModifyRequest remove(String attributeName, String... attributeValue)
remove in interface ModifyRequestattributeName - name of the attribute to be removedattributeValue - values of the attributepublic ModifyRequest remove(String attributeName, byte[]... attributeValue)
remove in interface ModifyRequestModifyRequest.remove(String, String...)public ModifyRequest remove(Attribute attr)
remove in interface ModifyRequestattr - the attribute to be removedpublic ModifyRequest remove(String attributeName)
remove in interface ModifyRequestattributeName - the attribute to be removedpublic ModifyRequest addModification(Attribute attr, ModificationOperation modOp)
addModification in interface ModifyRequestattr - The attribute to be modifiedmodOp - The operationpublic ModifyRequest add(String attributeName, String... attributeValue)
add in interface ModifyRequestattributeName - name of the attribute to be addedattributeValue - values of the attributepublic ModifyRequest add(String attributeName, byte[]... attributeValue)
add in interface ModifyRequestModifyRequest.add(String, String...)public ModifyRequest add(Attribute attr)
add in interface ModifyRequestattr - the attribute to be addedpublic ModifyRequest replace(String attributeName)
replace in interface ModifyRequestModifyRequest.replace(String, String...)public ModifyRequest replace(String attributeName, String... attributeValue)
replace in interface ModifyRequestattributeName - name of the attribute to be addedattributeValue - values of the attributepublic ModifyRequest replace(String attributeName, byte[]... attributeValue)
replace in interface ModifyRequestModifyRequest.replace(String, String...)public ModifyRequest replace(Attribute attr)
replace in interface ModifyRequestattr - the attribute to be addedpublic ModifyRequest setMessageId(int messageId)
setMessageId in interface MessagesetMessageId in interface ModifyRequestsetMessageId in class AbstractDsmlMessageDecorator<ModifyRequest>messageId - The message Idpublic ModifyRequest addControl(Control control)
addControl in interface MessageaddControl in interface ModifyRequestaddControl in class AbstractDsmlMessageDecorator<ModifyRequest>control - the control to add.public ModifyRequest addAllControls(Control[] controls)
addAllControls in interface MessageaddAllControls in interface ModifyRequestaddAllControls in class AbstractDsmlMessageDecorator<ModifyRequest>controls - the controls to add.public ModifyRequest removeControl(Control control)
removeControl in interface MessageremoveControl in interface ModifyRequestremoveControl in class AbstractDsmlMessageDecorator<ModifyRequest>control - the control to remove.Copyright © 2021. All rights reserved.