|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest
org.apache.directory.api.ldap.model.message.ModifyRequestImpl
public class ModifyRequestImpl
Lockable ModifyRequest implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
controls |
| Fields inherited from interface org.apache.directory.api.ldap.model.message.ModifyRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
ModifyRequestImpl()
Creates a ModifyRequest implementing object used to modify the attributes of an entry. |
|
| Method Summary | |
|---|---|
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. |
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. |
boolean |
equals(Object obj)
Checks to see if ModifyRequest stub equals another by factoring in checks for the name and modification items of the request. |
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. |
ModifyResponse |
getResultResponse()
The result containing response for this request. |
int |
hashCode()
|
ModifyRequest |
remove(Attribute attr)
marks a given attribute 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. |
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. |
String |
toString()
Get a String representation of a ModifyRequest |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Message |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public ModifyRequestImpl()
| Method Detail |
|---|
public Collection<Modification> getModifications()
getModifications in interface ModifyRequestpublic Dn getName()
getName in interface ModifyRequestpublic ModifyRequest setName(Dn name)
setName in interface ModifyRequestname - the Dn of the modified entry.
public ModifyRequest addModification(Modification mod)
addModification in interface ModifyRequestmod - a Modification to add.
public ModifyRequest addModification(Attribute attr,
ModificationOperation modOp)
addModification in interface ModifyRequestattr - The attribute to be modifiedmodOp - The operation
public ModifyRequest add(String attributeName,
String... attributeValue)
add in interface ModifyRequestattributeName - name of the attribute to be addedattributeValue - values of the attribute
public ModifyRequest add(String attributeName,
byte[]... attributeValue)
add in interface ModifyRequestadd(String, String...)public ModifyRequest add(Attribute attr)
add in interface ModifyRequestattr - the attribute to be added
public ModifyRequest replace(String attributeName)
replace in interface ModifyRequestreplace(String, String...)
public ModifyRequest replace(String attributeName,
String... attributeValue)
replace in interface ModifyRequestattributeName - name of the attribute to be addedattributeValue - values of the attribute
public ModifyRequest replace(String attributeName,
byte[]... attributeValue)
replace in interface ModifyRequestreplace(String, String...)public ModifyRequest replace(Attribute attr)
replace in interface ModifyRequestattr - the attribute to be added
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 addedattributeValue - values of the attribute
public 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 added
public ModifyRequest setMessageId(int messageId)
setMessageId in interface MessagesetMessageId in interface ModifyRequestsetMessageId in class AbstractMessagemessageId - The message Id
public ModifyRequest addControl(Control control)
throws MessageException
addControl in interface MessageaddControl in interface ModifyRequestaddControl in class AbstractMessagecontrol - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
public ModifyRequest addAllControls(Control[] controls)
throws MessageException
addAllControls in interface MessageaddAllControls in interface ModifyRequestaddAllControls in class AbstractMessagecontrols - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
public ModifyRequest removeControl(Control control)
throws MessageException
removeControl in interface MessageremoveControl in interface ModifyRequestremoveControl in class AbstractMessagecontrol - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequest<ModifyResponse>public ModifyResponse getResultResponse()
getResultResponse in interface ResultResponseRequest<ModifyResponse>public int hashCode()
hashCode in class AbstractRequestObject.hashCode()public boolean equals(Object obj)
equals in class AbstractRequestobj - the object to compare this ModifyRequest to
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||