Package org.forgerock.opendj.ldif
Interface ChangeRecord
- All Superinterfaces:
ProtocolOp,Request
- All Known Implementing Classes:
AddRequest,DeleteRequest,ModifyDnRequest,ModifyRequest
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
Modifier and TypeMethodDescriptionaddControl(Control control) Adds the provided control to this protocol-op.addControls(Iterable<? extends Control> controls) Adds the provided controls to this protocol-op.getName()Returns the distinguished name of the entry being modified by thisChangeRecord.Sets the distinguished name of the entry to be updated.Sets the distinguished name of the entry to be updated.Methods inherited from interface org.forgerock.opendj.ldap.messages.ProtocolOp
containsControl, getControl, getControl, getControlsMethods inherited from interface org.forgerock.opendj.ldap.messages.Request
accept, getType, removeControls
-
Method Details
-
getName
Dn getName()Returns the distinguished name of the entry being modified by thisChangeRecord.- Returns:
- The distinguished name of the entry being modified.
-
setName
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 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
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 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
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
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.
-