com.unboundid.directory.sdk.common.operation
Interface AddRequest

All Superinterfaces:
ChangeRequest, Request
All Known Subinterfaces:
UpdatableAddRequest

@NotExtensible
@ThreadSafety(level=INTERFACE_NOT_THREADSAFE)
public interface AddRequest
extends ChangeRequest

This interface defines a set of methods which may be used to interact with an add request.


Method Summary
 Entry getEntry()
          Retrieves the entry to be added.
 boolean isUndelete()
          Indicates whether this AddRequest contains the UndeleteRequestControl.
 com.unboundid.ldap.sdk.ReadOnlyAddRequest toLDAPSDKRequest()
          Retrieves an LDAP SDK representation of this add request.
 com.unboundid.ldif.LDIFAddChangeRecord toLDIFChangeRecord()
          Retrieves an LDIF change record that corresponds to this add request.
 
Methods inherited from interface com.unboundid.directory.sdk.common.operation.Request
getOperationType, getRequestControls
 

Method Detail

getEntry

Entry getEntry()
Retrieves the entry to be added.

Returns:
The entry to be added.

toLDAPSDKRequest

com.unboundid.ldap.sdk.ReadOnlyAddRequest toLDAPSDKRequest()
Retrieves an LDAP SDK representation of this add request.

Returns:
An LDAP SDK representation of this add request.

toLDIFChangeRecord

com.unboundid.ldif.LDIFAddChangeRecord toLDIFChangeRecord()
Retrieves an LDIF change record that corresponds to this add request.

Specified by:
toLDIFChangeRecord in interface ChangeRequest
Returns:
An LDIF change record that corresponds to this add request.

isUndelete

boolean isUndelete()
Indicates whether this AddRequest contains the UndeleteRequestControl. If this method returns true, the undelete control can be obtained from the Request.getRequestControls() method.

Returns:
true if the UndeleteRequestControl is included in this request, false if not.