@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class MoveSubtreeProperties extends java.lang.Object
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Constructor and Description |
---|
MoveSubtreeProperties(DN baseDN)
Creates a new set of properties that can be used when moving the specified
subtree from one server to another.
|
MoveSubtreeProperties(MoveSubtreeProperties properties)
Creates a new set of properties that is a copy of the provided properties
object.
|
MoveSubtreeProperties(java.lang.String baseDN)
Creates a new set of properties that can be used when moving the specified
subtree from one server to another.
|
Modifier and Type | Method and Description |
---|---|
DN |
getBaseDN()
Retrieves the base DN of the subtree to move.
|
int |
getMaximumAllowedSubtreeSize()
Retrieves the maximum number of entries that the target subtree may contain
for it to be moved from one server to another.
|
MoveSubtreeListener |
getMoveSubtreeListener()
Retrieves the listener that may be invoked during the course of moving
entries from the source server to the target server, if any.
|
OperationPurposeRequestControl |
getOperationPurposeRequestControl()
Retrieves an operation purpose request control that should be included in
all requests sent to the source and target servers, if any.
|
void |
setBaseDN(DN baseDN)
Specifies the base DN of the subtree to move.
|
void |
setBaseDN(java.lang.String baseDN)
Specifies the base DN of the subtree to move.
|
void |
setMaximumAllowedSubtreeSize(int sizeLimit)
Specifies the maximum number of entries that the target subtree may contain
for it to be moved from one server to another.
|
void |
setMoveSubtreeListener(MoveSubtreeListener listener)
Specifies a listener that may be invoked during the course of moving
entries from the source server to the target server.
|
void |
setOperationPurposeRequestControl(OperationPurposeRequestControl control)
Specifies an operation purpose request control that should be included in
all requests sent to the source and target servers.
|
void |
setSuppressReferentialIntegrityUpdates(boolean suppressUpdates)
Specifies whether to suppress referential integrity updates when removing
entries from the source server.
|
void |
setUseToBeDeletedAccessibilityState(boolean useToBeDeletedState)
Specifies whether to use the
SubtreeAccessibilityState.TO_BE_DELETED subtree accessibility state
(as opposed to the HIDDEN state) for the target subtree on the
source server before beginning to remove entries from it. |
boolean |
suppressReferentialIntegrityUpdates()
Indicates whether to suppress referential integrity updates when removing
entries from the source server.
|
java.lang.String |
toString()
Retrieves a string representation of the properties.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of the properties to the provided buffer.
|
boolean |
useToBeDeletedAccessibilityState()
Indicates whether to use the
SubtreeAccessibilityState.TO_BE_DELETED subtree accessibility state
(as opposed to the HIDDEN state) for the target subtree on the
source server before beginning to remove entries from it. |
public MoveSubtreeProperties(@NotNull java.lang.String baseDN) throws LDAPException
baseDN
- The base DN for the subtree to be moved. It must not be
null
, and it must represent a valid DN with one or
more RDN components.LDAPException
- If the provided string cannot be parsed as a valid
DN.public MoveSubtreeProperties(@NotNull DN baseDN)
baseDN
- The base DN for the subtree to be moved. It must not be
null
, and it must have one or more RDN components.public MoveSubtreeProperties(@NotNull MoveSubtreeProperties properties)
properties
- The properties object to use to create the new
properties.@NotNull public DN getBaseDN()
public void setBaseDN(@NotNull java.lang.String baseDN) throws LDAPException
baseDN
- The base DN for the subtree to be moved. It must not be
null
, and it must represent a valid DN with one or
more RDN components.LDAPException
- If the provided string cannot be parsed as a valid
DN.public void setBaseDN(@NotNull DN baseDN)
baseDN
- The base DN for the subtree to be moved. It must not be
null
, and it must have one or more RDN components.public int getMaximumAllowedSubtreeSize()
public void setMaximumAllowedSubtreeSize(int sizeLimit)
sizeLimit
- The maximum number of entries tht the target subtree may
contain for it to be moved from one server to another.
A value that is less than or equal to zero indicates
that no client-side size limit should be imposed. Note
that the server may also impose a size limit, and the
smaller of the client-side and server-side limits will
be in effect.public boolean useToBeDeletedAccessibilityState()
SubtreeAccessibilityState.TO_BE_DELETED
subtree accessibility state
(as opposed to the HIDDEN
state) for the target subtree on the
source server before beginning to remove entries from it.true
if the TO_BE_DELETED
subtree accessibility
state should be used, or false
if the HIDDEN
state
should be used.public void setUseToBeDeletedAccessibilityState(boolean useToBeDeletedState)
SubtreeAccessibilityState.TO_BE_DELETED
subtree accessibility state
(as opposed to the HIDDEN
state) for the target subtree on the
source server before beginning to remove entries from it. Both the
TO_BE_DELETED
and HIDDEN
subtree accessibility states will
completely hide the target subtree from all clients expect those
authenticated as a designated bypass-user account, but the key differences
between these states include:
TO_BE_DELETED
subtrees than for entries in subtrees
with other accessibility states, including the HIDDEN
state.
TO_BE_DELETED
subtree accessibility state was
added to the Directory Server more recently than support for the
HIDDEN
state. Older Directory Server instances may not support
the TO_BE_DELETED
state.
HIDDEN
subtree can be updated to give it a different
accessibility state, but once a subtree has been placed in a
TO_BE_DELETED
accessibility state, its state cannot be manually
updated.
TO_BE_DELETED
accessibility state will automatically be
removed from a subtree once all entries have been removed from that
subtree, while the HIDDEN
state needs to be manually removed
if it is no longer desired.
useToBeDeletedState
- Indicates whether to use the
TO_BE_DELETED
subtree accessibility
state instead of the HIDDEN
state for
the target subtree on the source server before
beginning to remove entries from it.public boolean suppressReferentialIntegrityUpdates()
true
if referential integrity updates should be suppressed
when removing entries from the source server, or false
if
not.public void setSuppressReferentialIntegrityUpdates(boolean suppressUpdates)
suppressUpdates
- Indicates whether to suppress referential
integrity updates when removing entries from the
source server.@Nullable public OperationPurposeRequestControl getOperationPurposeRequestControl()
null
if no operation purpose request control should be
used.public void setOperationPurposeRequestControl(@Nullable OperationPurposeRequestControl control)
control
- An operation purpose request control that should be
included in all requests sent to the source and target
servers. It may be null
if no operation purpose
request control should be used.@Nullable public MoveSubtreeListener getMoveSubtreeListener()
null
if no move subtree listener has been configured.public void setMoveSubtreeListener(@Nullable MoveSubtreeListener listener)
listener
- A listener that may be invoked during the course of
moving entries from the source server to the target
server. It may be null
if no listener is needed.@NotNull public java.lang.String toString()
toString
in class java.lang.Object