Class SoftDeletedEntry
java.lang.Object
com.unboundid.ldap.sdk.Entry
com.unboundid.ldap.sdk.ReadOnlyEntry
com.unboundid.ldap.sdk.unboundidds.SoftDeletedEntry
- All Implemented Interfaces:
LDIFRecord,Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class SoftDeletedEntry
extends ReadOnlyEntry
This class provides a data structure for representing information about a
soft-deleted entry, which results from a soft delete operation that has
caused the entry to be hidden so that it is not accessible to clients under
normal circumstances, rather than causing the entry to be completely removed
from the server.
A soft-deleted entry will have its RDN altered to include the entryUUID for the original entry, will be updated to include the "ds-soft-delete-entry" auxiliary object class, and will have additional metadata attributes added to it which may include:
Soft-deleted entries may only be retrieved by users who have the soft-delete-read privilege, and then only by clients who issue a search request with one or more of the following characteristics:
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.
A soft-deleted entry will have its RDN altered to include the entryUUID for the original entry, will be updated to include the "ds-soft-delete-entry" auxiliary object class, and will have additional metadata attributes added to it which may include:
- ds-soft-delete-from-dn -- This specifies the DN assigned to the entry before it was converted to a soft-deleted entry.
- ds-soft-delete-timestamp -- This specifies the time that the entry was converted to a soft-deleted entry.
- ds-soft-delete-requester-dn -- This specifies the DN of the user who requested the soft delete operation.
- ds-soft-delete-requester-ip-address -- This specifies the IP address of the client that requested the soft delete operation.
Soft-deleted entries may only be retrieved by users who have the soft-delete-read privilege, and then only by clients who issue a search request with one or more of the following characteristics:
- The search operation has a scope of baseObject and a base DN which specifically targets a soft-deleted entry.
- The search operation includes a filter with a component that will specifically match entries that have the ds-soft-delete-entry object class (e.g., "(objectClass=ds-soft-delete-entry)").
-
The search operation includes a
SoftDeletedEntryAccessRequestControl.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the attribute that will be included in a soft-deleted entry to indicate the original DN the entry held before it was converted to a soft-deleted entry.static final StringThe name of the attribute that will be included in a soft-deleted entry to indicate the DN of the user that requested the soft delete operation.static final StringThe name of the attribute that will be included in a soft-deleted entry to indicate the IP address of the client that requested the soft delete operation.static final StringThe name of the attribute that will be included in a soft-deleted entry to indicate the time it was converted to a soft-deleted entry.static final StringThe name of the auxiliary object class that will be used to mark soft-deleted entries. -
Constructor Summary
ConstructorsConstructorDescriptionSoftDeletedEntry(Entry entry) Creates a soft-deleted entry from the provided entry. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the DN held by the entry at the time it was converted to a soft-deleted entry.Retrieves the DN of the user that requested the soft delete operation, if available.Retrieves the IP address of the client that requested the soft delete operation, if available.Retrieves the time that the entry was converted to a soft-deleted entry, if available.Retrieves a copy of the original entry as it appeared before the soft delete operation was processed.static booleanisSoftDeletedEntry(Entry entry) Indicates whether the provided entry may be parsed as a valid soft-deleted entry.Methods inherited from class com.unboundid.ldap.sdk.ReadOnlyEntry
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeAttributeValues, removeAttributeValues, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setDN, setDNMethods inherited from class com.unboundid.ldap.sdk.Entry
addAttribute, applyModifications, applyModifications, applyModifyDN, applyModifyDN, diff, diff, diff, duplicate, equals, getAttribute, getAttribute, getAttributes, getAttributesWithOptions, getAttributeValue, getAttributeValueAsBoolean, getAttributeValueAsDate, getAttributeValueAsDN, getAttributeValueAsInteger, getAttributeValueAsLong, getAttributeValueByteArrays, getAttributeValueBytes, getAttributeValues, getDN, getObjectClassAttribute, getObjectClassValues, getParentDN, getParentDNString, getParsedDN, getRDN, getSchema, hasAttribute, hasAttribute, hasAttribute, hasAttributeValue, hasAttributeValue, hasAttributeValue, hasAttributeValue, hashCode, hasObjectClass, intersectEntries, matchesBaseAndScope, matchesBaseAndScope, mergeEntries, removeAttributeValue, removeAttributeValue, setAttribute, toLDIF, toLDIF, toLDIF, toLDIF, toLDIFString, toLDIFString, toLDIFString, toLDIFString, toString, toString
-
Field Details
-
ATTR_SOFT_DELETE_FROM_DN
The name of the attribute that will be included in a soft-deleted entry to indicate the original DN the entry held before it was converted to a soft-deleted entry.- See Also:
-
ATTR_SOFT_DELETE_REQUESTER_DN
The name of the attribute that will be included in a soft-deleted entry to indicate the DN of the user that requested the soft delete operation.- See Also:
-
ATTR_SOFT_DELETE_REQUESTER_IP_ADDRESS
The name of the attribute that will be included in a soft-deleted entry to indicate the IP address of the client that requested the soft delete operation.- See Also:
-
ATTR_SOFT_DELETE_TIMESTAMP
The name of the attribute that will be included in a soft-deleted entry to indicate the time it was converted to a soft-deleted entry.- See Also:
-
OC_SOFT_DELETED_ENTRY
The name of the auxiliary object class that will be used to mark soft-deleted entries.- See Also:
-
-
Constructor Details
-
SoftDeletedEntry
Creates a soft-deleted entry from the provided entry.- Parameters:
entry- The entry to be processed as a soft-deleted entry. It must not benull.- Throws:
LDAPException- If the provided entry does not represent a valid soft-deleted entry.
-
-
Method Details
-
getSoftDeleteFromDN
Retrieves the DN held by the entry at the time it was converted to a soft-deleted entry.- Returns:
- The DN held by the entry at the time it was converted to a soft-deleted entry.
-
getSoftDeleteTimestamp
Retrieves the time that the entry was converted to a soft-deleted entry, if available.- Returns:
- The time that the entry was converted to a soft-deleted entry, or
nullif this is not available in the entry.
-
getSoftDeleteRequesterDN
Retrieves the DN of the user that requested the soft delete operation, if available.- Returns:
- The DN of the user that requested the soft delete operation, or
nullif this is not available in the entry.
-
getSoftDeleteRequesterIPAddress
Retrieves the IP address of the client that requested the soft delete operation, if available.- Returns:
- The IP address of the client that requested the soft delete
operation, or
nullif this is not available in the entry.
-
getUndeletedEntry
Retrieves a copy of the original entry as it appeared before the soft delete operation was processed. It will have its original DN and all soft delete metadata attributes and auxiliary object class removed.- Returns:
- A copy of the original entry as it appeared before the soft delete operation was processed.
-
isSoftDeletedEntry
Indicates whether the provided entry may be parsed as a valid soft-deleted entry.- Parameters:
entry- The entry to be examined. It must not benull.- Returns:
trueif the provided entry contains at least a ds-soft-delete-entry object class and a ds-soft-delete-from-dn attribute.
-