@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class SoftDeletedEntry extends ReadOnlyEntry
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.
SoftDeletedEntryAccessRequestControl
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
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.
|
static java.lang.String |
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.
|
static java.lang.String |
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.
|
static java.lang.String |
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.
|
static java.lang.String |
OC_SOFT_DELETED_ENTRY
The name of the auxiliary object class that will be used to mark
soft-deleted entries.
|
Constructor and Description |
---|
SoftDeletedEntry(Entry entry)
Creates a soft-deleted entry from the provided entry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSoftDeleteFromDN()
Retrieves the DN held by the entry at the time it was converted to a
soft-deleted entry.
|
java.lang.String |
getSoftDeleteRequesterDN()
Retrieves the DN of the user that requested the soft delete operation,
if available.
|
java.lang.String |
getSoftDeleteRequesterIPAddress()
Retrieves the IP address of the client that requested the soft delete
operation, if available.
|
java.util.Date |
getSoftDeleteTimestamp()
Retrieves the time that the entry was converted to a soft-deleted entry,
if available.
|
ReadOnlyEntry |
getUndeletedEntry()
Retrieves a copy of the original entry as it appeared before the soft
delete operation was processed.
|
static boolean |
isSoftDeletedEntry(Entry entry)
Indicates whether the provided entry may be parsed as a valid soft-deleted
entry.
|
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeAttributeValues, removeAttributeValues, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setDN, setDN
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
@NotNull public static final java.lang.String ATTR_SOFT_DELETE_FROM_DN
@NotNull public static final java.lang.String ATTR_SOFT_DELETE_REQUESTER_DN
@NotNull public static final java.lang.String ATTR_SOFT_DELETE_REQUESTER_IP_ADDRESS
@NotNull public static final java.lang.String ATTR_SOFT_DELETE_TIMESTAMP
@NotNull public static final java.lang.String OC_SOFT_DELETED_ENTRY
public SoftDeletedEntry(@NotNull Entry entry) throws LDAPException
entry
- The entry to be processed as a soft-deleted entry. It must
not be null
.LDAPException
- If the provided entry does not represent a valid
soft-deleted entry.@NotNull public java.lang.String getSoftDeleteFromDN()
@Nullable public java.util.Date getSoftDeleteTimestamp()
null
if this is not available in the entry.@Nullable public java.lang.String getSoftDeleteRequesterDN()
null
if this is not available in the entry.@Nullable public java.lang.String getSoftDeleteRequesterIPAddress()
null
if this is not available in the entry.@NotNull public ReadOnlyEntry getUndeletedEntry()
public static boolean isSoftDeletedEntry(@NotNull Entry entry)
entry
- The entry to be examined. It must not be null
.true
if the provided entry contains at least a
ds-soft-delete-entry object class and a ds-soft-delete-from-dn
attribute.