@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class AddAuditLogMessage extends AuditLogMessage
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 |
---|
AddAuditLogMessage(java.util.List<java.lang.String> logMessageLines)
Creates a new add audit log message from the provided set of lines.
|
AddAuditLogMessage(java.lang.String... logMessageLines)
Creates a new add audit log message from the provided set of lines.
|
Modifier and Type | Method and Description |
---|---|
LDIFAddChangeRecord |
getChangeRecord()
Retrieves an LDIF change record that encapsulates the change represented by
this audit log message.
|
ChangeType |
getChangeType()
Retrieves the change type for this audit log message.
|
java.lang.String |
getDN()
Retrieves the DN of the entry targeted by the associated operation.
|
ReadOnlyEntry |
getEntry()
Retrieves a read-only representation of the entry that was added.
|
java.lang.Boolean |
getIsUndelete()
Retrieves the value of the "isUndelete" flag from this log message, which
indicates whether the add operation attempted to undelete a previously
soft-deleted entry, if available.
|
java.util.List<LDIFChangeRecord> |
getRevertChangeRecords()
Retrieves a list of the change records that can be used to revert the
changes described by this audit log message.
|
ReadOnlyEntry |
getUndeleteRequestEntry()
Retrieves the entry that comprised the undelete request, available.
|
boolean |
isRevertible()
Indicates whether it is possible to use the
AuditLogMessage.getRevertChangeRecords() method to obtain a list of LDIF change
records that can be used to revert the changes described by this audit log
message. |
void |
toString(java.lang.StringBuilder buffer)
Appends a single-line string representation of this audit log message to
the provided buffer.
|
decodeCommentedEntry, getAlternateAuthorizationDN, getCommentedHeaderLine, getConnectionID, getHeaderNamedValues, getInstanceName, getIntermediateClientRequestControl, getLogMessageLines, getNamedValueAsBoolean, getNamedValueAsLong, getOperationID, getOperationPurposeRequestControl, getOrigin, getProductName, getReplicationChangeID, getRequestControlOIDs, getRequesterDN, getRequesterIPAddress, getStartupID, getThreadID, getTimestamp, getTransactionID, getTriggeredByConnectionID, getTriggeredByOperationID, getUncommentedHeaderLine, getUsingAdminSessionWorkerThread, toMultiLineString, toString
public AddAuditLogMessage(@NotNull java.lang.String... logMessageLines) throws AuditLogException
logMessageLines
- The lines that comprise the log message. It must
not be null
or empty, and it must not
contain any blank lines, although it may contain
comments. In fact, it must contain at least one
comment line that appears before any non-comment
lines (but possibly after other comment lines)
that serves as the message header.AuditLogException
- If a problem is encountered while processing
the provided list of log message lines.public AddAuditLogMessage(@NotNull java.util.List<java.lang.String> logMessageLines) throws AuditLogException
logMessageLines
- The lines that comprise the log message. It must
not be null
or empty, and it must not
contain any blank lines, although it may contain
comments. In fact, it must contain at least one
comment line that appears before any non-comment
lines (but possibly after other comment lines)
that serves as the message header.AuditLogException
- If a problem is encountered while processing
the provided list of log message lines.@NotNull public java.lang.String getDN()
getDN
in class AuditLogMessage
@NotNull public ReadOnlyEntry getEntry()
@Nullable public java.lang.Boolean getIsUndelete()
null
if it is not available.@Nullable public ReadOnlyEntry getUndeleteRequestEntry()
null
if
it is not available.@NotNull public ChangeType getChangeType()
getChangeType
in class AuditLogMessage
@NotNull public LDIFAddChangeRecord getChangeRecord()
getChangeRecord
in class AuditLogMessage
public boolean isRevertible()
AuditLogMessage.getRevertChangeRecords()
method to obtain a list of LDIF change
records that can be used to revert the changes described by this audit log
message.isRevertible
in class AuditLogMessage
true
if it is possible to use the
AuditLogMessage.getRevertChangeRecords()
method to obtain a list of LDIF
change records that can be used to revert the changes described
by this audit log message, or false
if not.@NotNull public java.util.List<LDIFChangeRecord> getRevertChangeRecords()
getRevertChangeRecords
in class AuditLogMessage
public void toString(@NotNull java.lang.StringBuilder buffer)
AuditLogMessage.getUncommentedHeaderLine()
, but will also contain additional
name-value pairs that are pertinent to the type of operation that the audit
log message represents.toString
in class AuditLogMessage
buffer
- The buffer to which the information should be appended.