Package com.unboundid.util
Class SubtreeDeleterResult
java.lang.Object
com.unboundid.util.SubtreeDeleterResult
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class SubtreeDeleterResult
extends Object
implements Serializable
This class provides a data structure with information about the results of
a subtree delete attempt.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether theSubtreeDeleterprocessing was completely successful.Retrieves an unmodifiable sorted map of the DNs of entries that could not be successfully deleted, each of which is associated with anLDAPResultindicating the reason for the delete failure.Retrieves an unmodifiable sorted map of the DNs of entries that could not be successfully deleted, each of which is associated with anLDAPResultindicating the reason for the delete failure.longRetrieves the number of entries that were successfully deleted.Retrieves a search result with information about an error that occurred during search processing that prevented identifying all of the entries in the target subtree.Retrieves anLDAPResultthat provides information about an error that occurred while trying to make the target subtree inaccessible before subtree delete processing, or if an error occurred while trying to remove the subtree accessibility restriction after all other processing had completed successfully.booleanIndicates whether the target subtree was left in an inaccessible state after some error occurred during subtree delete processing.toString()Retrieves a string representation of this subtree deleter result.voidtoString(StringBuilder buffer) Appends a string representation of this subtree deleter result to the provided buffer.
-
Method Details
-
completelySuccessful
Indicates whether theSubtreeDeleterprocessing was completely successful.- Returns:
trueif the subtree deleter processing was completely successful, orfalseif not.
-
getSetSubtreeAccessibilityError
Retrieves anLDAPResultthat provides information about an error that occurred while trying to make the target subtree inaccessible before subtree delete processing, or if an error occurred while trying to remove the subtree accessibility restriction after all other processing had completed successfully. This may benullif no attempts was made to alter the subtree accessibility, or if no error occurred during processing.
If the return value is non-nullandsubtreeInaccessiblereturnsfalse, then the error occurred while attempting to make the target subtree inaccessible. If the return value is non-nullandisSubtreeInaccessiblereturnstrue, then the error occurred while attempting to remove the subtree accessibility restriction.- Returns:
- An
LDAPResultthat provides information about an error that occurred while attempting to alter the accessibility of the target subtree, ornullif no such error occurred.
-
subtreeInaccessible
Indicates whether the target subtree was left in an inaccessible state after some error occurred during subtree delete processing.- Returns:
trueif the subtree was set inaccessible at the start of subtree delete processing and remains inaccessible after an error occurred during processing, orfalseif the subtree accessibility was not altered or if the accessibility restriction was removed after all processing completed successfully.
-
getSearchError
Retrieves a search result with information about an error that occurred during search processing that prevented identifying all of the entries in the target subtree.- Returns:
- A search result with information about an error that occurred
during search processing that prevented identifying all of the
entries in the target subtree, or
nullif no error occurred during search processing.
-
getEntriesDeleted
Retrieves the number of entries that were successfully deleted.- Returns:
- The number of entries that were successfully deleted.
-
getDeleteErrors
Retrieves an unmodifiable sorted map of the DNs of entries that could not be successfully deleted, each of which is associated with anLDAPResultindicating the reason for the delete failure. The map will be ordered in ascending order using the comparator provided by theDNclass (that is, with ancestor entries before their descendants).- Returns:
- An unmodifiable sorted map of the DNs of the entries that could
not be deleted, each of which is associated with an
LDAPResultindicating the reason for the delete failure.
-
getDeleteErrorsDescendingMap
Retrieves an unmodifiable sorted map of the DNs of entries that could not be successfully deleted, each of which is associated with anLDAPResultindicating the reason for the delete failure. The map will be ordered in descending order using the comparator provided by theDNclass (that is, with descendant entries before their ancestors).- Returns:
- An unmodifiable sorted map of the DNs of the entries that could
not be deleted, each of which is associated with an
LDAPResultindicating the reason for the delete failure.
-
toString
Retrieves a string representation of this subtree deleter result. -
toString
Appends a string representation of this subtree deleter result to the provided buffer.- Parameters:
buffer- The buffer to which the string representation should be appended.
-