Class AddAuditLogMessage
- java.lang.Object
-
- com.unboundid.ldap.sdk.unboundidds.logs.AuditLogMessage
-
- com.unboundid.ldap.sdk.unboundidds.logs.AddAuditLogMessage
-
- All Implemented Interfaces:
java.io.Serializable
@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class AddAuditLogMessage extends AuditLogMessage
This class provides a data structure that holds information about an audit log message that represents an add operation.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundiddspackage 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddAuditLogMessage(java.lang.String... logMessageLines)Creates a new add audit log message from the provided set of lines.AddAuditLogMessage(java.util.List<java.lang.String> logMessageLines)Creates a new add audit log message from the provided set of lines.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LDIFAddChangeRecordgetChangeRecord()Retrieves an LDIF change record that encapsulates the change represented by this audit log message.ChangeTypegetChangeType()Retrieves the change type for this audit log message.java.lang.StringgetDN()Retrieves the DN of the entry targeted by the associated operation.ReadOnlyEntrygetEntry()Retrieves a read-only representation of the entry that was added.java.lang.BooleangetIsUndelete()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.ReadOnlyEntrygetUndeleteRequestEntry()Retrieves the entry that comprised the undelete request, available.booleanisRevertible()Indicates whether it is possible to use theAuditLogMessage.getRevertChangeRecords()method to obtain a list of LDIF change records that can be used to revert the changes described by this audit log message.voidtoString(java.lang.StringBuilder buffer)Appends a single-line string representation of this audit log message to the provided buffer.-
Methods inherited from class com.unboundid.ldap.sdk.unboundidds.logs.AuditLogMessage
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
-
-
-
-
Constructor Detail
-
AddAuditLogMessage
public AddAuditLogMessage(java.lang.String... logMessageLines) throws AuditLogException
Creates a new add audit log message from the provided set of lines.- Parameters:
logMessageLines- The lines that comprise the log message. It must not benullor 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.- Throws:
AuditLogException- If a problem is encountered while processing the provided list of log message lines.
-
AddAuditLogMessage
public AddAuditLogMessage(java.util.List<java.lang.String> logMessageLines) throws AuditLogException
Creates a new add audit log message from the provided set of lines.- Parameters:
logMessageLines- The lines that comprise the log message. It must not benullor 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.- Throws:
AuditLogException- If a problem is encountered while processing the provided list of log message lines.
-
-
Method Detail
-
getDN
public java.lang.String getDN()
Retrieves the DN of the entry targeted by the associated operation.- Specified by:
getDNin classAuditLogMessage- Returns:
- The DN of the entry targeted by the associated operation.
-
getEntry
public ReadOnlyEntry getEntry()
Retrieves a read-only representation of the entry that was added.- Returns:
- A read-only representation of the entry that was added.
-
getIsUndelete
public 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.- Returns:
- The value of the "isUndelete" flag from this log message, or
nullif it is not available.
-
getUndeleteRequestEntry
public ReadOnlyEntry getUndeleteRequestEntry()
Retrieves the entry that comprised the undelete request, available.- Returns:
- The entry that comprised the undelete request, or
nullif it is not available.
-
getChangeType
public ChangeType getChangeType()
Retrieves the change type for this audit log message.- Specified by:
getChangeTypein classAuditLogMessage- Returns:
- The change type for this audit log message.
-
getChangeRecord
public LDIFAddChangeRecord getChangeRecord()
Retrieves an LDIF change record that encapsulates the change represented by this audit log message.- Specified by:
getChangeRecordin classAuditLogMessage- Returns:
- An LDIF change record that encapsulates the change represented by this audit log message.
-
isRevertible
public boolean isRevertible()
Indicates whether it is possible to use theAuditLogMessage.getRevertChangeRecords()method to obtain a list of LDIF change records that can be used to revert the changes described by this audit log message.- Specified by:
isRevertiblein classAuditLogMessage- Returns:
trueif it is possible to use theAuditLogMessage.getRevertChangeRecords()method to obtain a list of LDIF change records that can be used to revert the changes described by this audit log message, orfalseif not.
-
getRevertChangeRecords
public 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.- Specified by:
getRevertChangeRecordsin classAuditLogMessage- Returns:
- A list of the change records that can be used to revert the changes described by this audit log message.
-
toString
public void toString(java.lang.StringBuilder buffer)
Appends a single-line string representation of this audit log message to the provided buffer. The message will start with the string returned byAuditLogMessage.getUncommentedHeaderLine(), but will also contain additional name-value pairs that are pertinent to the type of operation that the audit log message represents.- Specified by:
toStringin classAuditLogMessage- Parameters:
buffer- The buffer to which the information should be appended.
-
-