Class ModifyRequestImpl
java.lang.Object
org.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
- All Implemented Interfaces:
AbandonableRequest, Message, ModifyRequest, Request, ResultResponseRequest, SingleReplyRequest
Lockable ModifyRequest implementation.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionCreates a ModifyRequest implementing object used to modify the attributes of an entry. -
Method Summary
Modifier and TypeMethodDescriptionmarks a given attribute for addition in the target entry with the given values.marks a given attribute for addition in the target entry.addAllControls(Control[] controls) Adds an array of controls to this Message.addControl(Control control) Adds a control to this Message.addModification(Attribute attr, ModificationOperation modOp) Add a modificationAdds a ModificationItem to the set of modifications composing this modify request.booleanChecks to see if ModifyRequest stub equals another by factoring in checks for the name and modification items of the request.Gets an immutable Collection of modification items representing the atomic changes to perform on the candidate entry to modify.getName()Gets the distinguished name of the entry to be modified by this request.Gets the protocol response message type for this request which produces at least one response.The result containing response for this request.inthashCode()marks a given attribute for increment by 1 in the target entry.marks a given attribute for increment in the target entry.marks a given attribute for increment by 1 in the target entry.marks a given attribute for increment in the target entry.marks a given attribute name for removal from the target entry.marks a given attribute for removal with the given values from the target entry.marks a given attribute for removal from the target entry.removeControl(Control control) Deletes a control removing it from this Message.Removes a ModificationItem to the set of modifications composing this modify request.marks a given attribute for replacement with the given values in the target entry.marks a given attribute for replacement in the target entry.setMessageId(int messageId) Sets the Message ID for this requestSets the distinguished name of the entry to be modified by this request.toString()Get a String representation of a ModifyRequestMethods inherited from class AbstractAbandonableRequest
abandon, addAbandonListener, isAbandonedMethods inherited from class AbstractRequest
hasResponseMethods inherited from class AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toStringMethods inherited from interface AbandonableRequest
abandon, addAbandonListener, isAbandonedMethods inherited from interface Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface Request
hasResponse
-
Constructor Details
-
ModifyRequestImpl
public ModifyRequestImpl()Creates a ModifyRequest implementing object used to modify the attributes of an entry.
-
-
Method Details
-
getModifications
Gets an immutable Collection of modification items representing the atomic changes to perform on the candidate entry to modify.- Specified by:
getModificationsin interfaceModifyRequest- Returns:
- an immutable Collection of Modification instances.
-
getName
Gets the distinguished name of the entry to be modified by this request. This property represents the PDU's object field.- Specified by:
getNamein interfaceModifyRequest- Returns:
- the Dn of the modified entry.
-
setName
Sets the distinguished name of the entry to be modified by this request. This property represents the PDU's object field.- Specified by:
setNamein interfaceModifyRequest- Parameters:
name- the Dn of the modified entry.- Returns:
- The ModifyRequest instance
-
addModification
Adds a ModificationItem to the set of modifications composing this modify request.- Specified by:
addModificationin interfaceModifyRequest- Parameters:
mod- a Modification to add.- Returns:
- The ModifyRequest instance
-
addModification
Add a modification- Specified by:
addModificationin interfaceModifyRequest- Parameters:
attr- The attribute to be modifiedmodOp- The operation- Returns:
- The ModifyRequest instance
-
add
marks a given attribute for addition in the target entry with the given values.- Specified by:
addin interfaceModifyRequest- Parameters:
attributeName- name of the attribute to be addedattributeValue- values of the attribute- Returns:
- The ModifyRequest instance
-
add
- Specified by:
addin interfaceModifyRequest- Parameters:
attributeName- name of the attribute to be addedattributeValue- values of the attribute- Returns:
- The ModifyRequest instance
- See Also:
-
add
marks a given attribute for addition in the target entry.- Specified by:
addin interfaceModifyRequest- Parameters:
attr- the attribute to be added- Returns:
- The ModifyRequest instance
-
replace
- Specified by:
replacein interfaceModifyRequest- Parameters:
attributeName- name of the attribute to be added- Returns:
- The ModifyRequest instance
- See Also:
-
replace
marks a given attribute for replacement with the given values in the target entry.- Specified by:
replacein interfaceModifyRequest- Parameters:
attributeName- name of the attribute to be addedattributeValue- values of the attribute- Returns:
- The ModifyRequest instance
-
replace
- Specified by:
replacein interfaceModifyRequest- Parameters:
attributeName- name of the attribute to be addedattributeValue- values of the attribute- Returns:
- The ModifyRequest instance
- See Also:
-
replace
marks a given attribute for replacement in the target entry.- Specified by:
replacein interfaceModifyRequest- Parameters:
attr- the attribute to be added- Returns:
- The ModifyRequest instance
-
removeModification
Removes a ModificationItem to the set of modifications composing this modify request.- Specified by:
removeModificationin interfaceModifyRequest- Parameters:
mod- a Modification to remove.- Returns:
- The ModifyRequest instance
-
remove
marks a given attribute for removal with the given values from the target entry.- Specified by:
removein interfaceModifyRequest- Parameters:
attributeName- name of the attribute to be removedattributeValue- values of the attribute- Returns:
- The ModifyRequest instance
-
remove
- Specified by:
removein interfaceModifyRequest- Parameters:
attributeName- name of the attribute to be addedattributeValue- values of the attribute- Returns:
- The ModifyRequest instance
- See Also:
-
remove
marks a given attribute for removal from the target entry.- Specified by:
removein interfaceModifyRequest- Parameters:
attr- the attribute to be removed- Returns:
- The ModifyRequest instance
-
remove
marks a given attribute name for removal from the target entry.- Specified by:
removein interfaceModifyRequest- Parameters:
attributeName- the attribute to be removed- Returns:
- The ModifyRequest instance
-
increment
marks a given attribute for increment by 1 in the target entry.- Specified by:
incrementin interfaceModifyRequest- Parameters:
attributeName- the attribute to be incremented- Returns:
- The ModifyRequest instance
-
increment
marks a given attribute for increment in the target entry.- Specified by:
incrementin interfaceModifyRequest- Parameters:
attributeName- the attribute to be incrementedincrement- The increment value (>=1)- Returns:
- The ModifyRequest instance
-
increment
marks a given attribute for increment by 1 in the target entry.- Specified by:
incrementin interfaceModifyRequest- Parameters:
attr- the attribute to be incremented- Returns:
- The ModifyRequest instance
-
increment
marks a given attribute for increment in the target entry.- Specified by:
incrementin interfaceModifyRequest- Parameters:
attr- the attribute to be incrementedincrement- The increment value (>=1)- Returns:
- The ModifyRequest instance
-
setMessageId
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceMessage- Specified by:
setMessageIdin interfaceModifyRequest- Overrides:
setMessageIdin classAbstractMessage- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
Adds a control to this Message.- Specified by:
addControlin interfaceMessage- Specified by:
addControlin interfaceModifyRequest- Overrides:
addControlin classAbstractMessage- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
Adds an array of controls to this Message.- Specified by:
addAllControlsin interfaceMessage- Specified by:
addAllControlsin interfaceModifyRequest- Overrides:
addAllControlsin classAbstractMessage- Parameters:
controls- the controls to add.- Returns:
- A Message reference
-
removeControl
Deletes a control removing it from this Message.- Specified by:
removeControlin interfaceMessage- Specified by:
removeControlin interfaceModifyRequest- Overrides:
removeControlin classAbstractMessage- Parameters:
control- the control to remove.- Returns:
- A Message reference
-
getResponseType
Gets the protocol response message type for this request which produces at least one response.- Specified by:
getResponseTypein interfaceSingleReplyRequest- Returns:
- the message type of the response.
-
getResultResponse
The result containing response for this request.- Specified by:
getResultResponsein interfaceResultResponseRequest- Returns:
- the result containing response for this request
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractRequest- Returns:
- the instance's hash code
- See Also:
-
equals
Checks to see if ModifyRequest stub equals another by factoring in checks for the name and modification items of the request.- Overrides:
equalsin classAbstractRequest- Parameters:
obj- the object to compare this ModifyRequest to- Returns:
- true if obj equals this ModifyRequest, false otherwise
-
toString
-