public class ModifyRequest extends AbstractRequest implements RequestWithResponse, AbandonableRequest
Constructor and Description |
---|
ModifyRequest(org.apache.directory.shared.ldap.name.DN dn)
Creates a new instance of ModifyRequest.
|
Modifier and Type | Method and Description |
---|---|
void |
add(org.apache.directory.shared.ldap.entry.EntryAttribute attr)
marks a given attribute for addition in the target entry.
|
void |
add(String attributeName,
byte[]... attributeValue) |
void |
add(String attributeName,
String... attributeValue)
marks a given attribute for addition in the target entry with the
given values.
|
void |
addModification(org.apache.directory.shared.ldap.entry.EntryAttribute attr,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp) |
void |
addModification(org.apache.directory.shared.ldap.entry.Modification... modifications) |
org.apache.directory.shared.ldap.name.DN |
getDn() |
List<org.apache.directory.shared.ldap.entry.Modification> |
getMods() |
void |
remove(org.apache.directory.shared.ldap.entry.EntryAttribute attr)
marks a given attribute for removal from the target entry.
|
void |
remove(String attributeName,
byte[]... attributeValue) |
void |
remove(String attributeName,
String... attributeValue)
marks a given attribute for removal with the given
values from the target entry.
|
void |
replace(org.apache.directory.shared.ldap.entry.EntryAttribute attr)
marks a given attribute for replacement in the target entry.
|
void |
replace(String attributeName,
byte[]... attributeValue) |
void |
replace(String attributeName,
String... attributeValue)
marks a given attribute for replacement with the given
values in the target entry.
|
getTimeout, setTimeout
add, getControl, getControls, getMessageId, hasControl, remove, setMessageId, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTimeout, setTimeout
add, getControl, getControls, getMessageId, hasControl, remove, setMessageId
public ModifyRequest(org.apache.directory.shared.ldap.name.DN dn)
dn
- DN of the Entry to be modifiedpublic void add(String attributeName, String... attributeValue)
attributeName
- name of the attribute to be addedattributeValue
- values of the attributepublic void add(String attributeName, byte[]... attributeValue)
add(String, String...)
public void add(org.apache.directory.shared.ldap.entry.EntryAttribute attr)
attr
- the attribute to be addedpublic void replace(String attributeName, String... attributeValue)
attributeName
- name of the attribute to be addedattributeValue
- values of the attributepublic void replace(String attributeName, byte[]... attributeValue)
remove(String, String...)
public void replace(org.apache.directory.shared.ldap.entry.EntryAttribute attr)
attr
- the attribute to be addedpublic void remove(String attributeName, String... attributeValue)
attributeName
- name of the attribute to be addedattributeValue
- values of the attributepublic void remove(String attributeName, byte[]... attributeValue)
remove(String, String...)
public void remove(org.apache.directory.shared.ldap.entry.EntryAttribute attr)
attr
- the attribute to be addedpublic void addModification(org.apache.directory.shared.ldap.entry.EntryAttribute attr, org.apache.directory.shared.ldap.entry.ModificationOperation modOp)
public void addModification(org.apache.directory.shared.ldap.entry.Modification... modifications)
public org.apache.directory.shared.ldap.name.DN getDn()
public List<org.apache.directory.shared.ldap.entry.Modification> getMods()
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.