Package org.forgerock.opendj.ldif
Interface ChangeRecord
-
- All Superinterfaces:
ProtocolOp,Request
- All Known Subinterfaces:
AddRequest,DeleteRequest,ModifyDnRequest,ModifyRequest
public interface ChangeRecord extends Request
A request to modify the content of the Directory in some way. A change record represents one of the following operations:- An
Addoperation. - A
Deleteoperation. - A
Modifyoperation. - A
ModifyDNoperation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.forgerock.opendj.ldap.messages.Request
Request.RequestType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangeRecordaddControl(Control control)Adds the provided control to this protocol-op.ChangeRecordaddControls(Iterable<? extends Control> controls)Adds the provided controls to this protocol-op.DngetName()Returns the distinguished name of the entry being modified by thisChangeRecord.ChangeRecordsetName(String dn)Sets the distinguished name of the entry to be updated.ChangeRecordsetName(Dn dn)Sets the distinguished name of the entry to be updated.-
Methods inherited from interface org.forgerock.opendj.ldap.messages.ProtocolOp
containsControl, getControl, getControl, getControls
-
-
-
-
Method Detail
-
getName
Dn getName()
Returns the distinguished name of the entry being modified by thisChangeRecord.- Returns:
- The distinguished name of the entry being modified.
-
setName
ChangeRecord setName(Dn dn)
Sets the distinguished name of the entry to be updated. The server shall not perform any alias dereferencing in determining the object to be updated.- Parameters:
dn- The the distinguished name of the entry to be updated.- Returns:
- This change record.
- Throws:
UnsupportedOperationException- If this change record does not permit the distinguished name to be set.NullPointerException- Ifdnwasnull.
-
setName
ChangeRecord setName(String dn)
Sets the distinguished name of the entry to be updated. The server shall not perform any alias dereferencing in determining the object to be updated.- Parameters:
dn- The the distinguished name of the entry to be updated.- Returns:
- This change record.
- Throws:
LocalizedIllegalArgumentException- Ifdncould not be decoded using the default schema.UnsupportedOperationException- If this change record does not permit the distinguished name to be set.NullPointerException- Ifdnwasnull.
-
addControl
ChangeRecord addControl(Control control)
Description copied from interface:ProtocolOpAdds the provided control to this protocol-op.- Specified by:
addControlin interfaceProtocolOp- Specified by:
addControlin interfaceRequest- Parameters:
control- The control to be added to this protocol-op.- Returns:
- This protocol-op.
-
addControls
ChangeRecord addControls(Iterable<? extends Control> controls)
Description copied from interface:ProtocolOpAdds the provided controls to this protocol-op.- Specified by:
addControlsin interfaceProtocolOp- Specified by:
addControlsin interfaceRequest- Parameters:
controls- The controls to be added to this protocol-op.- Returns:
- This protocol-op.
-
-