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
Add
operation. - A
Delete
operation. - A
Modify
operation. - A
ModifyDN
operation.
-
-
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 ChangeRecord
addControl(Control control)
Adds the provided control to this protocol-op.ChangeRecord
addControls(Iterable<? extends Control> controls)
Adds the provided controls to this protocol-op.Dn
getName()
Returns the distinguished name of the entry being modified by thisChangeRecord
.ChangeRecord
setName(String dn)
Sets the distinguished name of the entry to be updated.ChangeRecord
setName(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
- Ifdn
wasnull
.
-
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
- Ifdn
could not be decoded using the default schema.UnsupportedOperationException
- If this change record does not permit the distinguished name to be set.NullPointerException
- Ifdn
wasnull
.
-
addControl
ChangeRecord addControl(Control control)
Description copied from interface:ProtocolOp
Adds the provided control to this protocol-op.- Specified by:
addControl
in interfaceProtocolOp
- Specified by:
addControl
in 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:ProtocolOp
Adds the provided controls to this protocol-op.- Specified by:
addControls
in interfaceProtocolOp
- Specified by:
addControls
in interfaceRequest
- Parameters:
controls
- The controls to be added to this protocol-op.- Returns:
- This protocol-op.
-
-