Class ModifyAuditLogMessage

  • All Implemented Interfaces:
    java.io.Serializable

    @ThreadSafety(level=COMPLETELY_THREADSAFE)
    public final class ModifyAuditLogMessage
    extends AuditLogMessage
    This class provides a data structure that holds information about an audit log message that represents a modify operation.
    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • ModifyAuditLogMessage

        public ModifyAuditLogMessage​(java.lang.String... logMessageLines)
                              throws AuditLogException
        Creates a new modify audit log message from the provided set of lines.
        Parameters:
        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 line) that serves as the message header.
        Throws:
        AuditLogException - If a problem is encountered while processing the provided list of log message lines.
      • ModifyAuditLogMessage

        public ModifyAuditLogMessage​(java.util.List<java.lang.String> logMessageLines)
                              throws AuditLogException
        Creates a new modify audit log message from the provided set of lines.
        Parameters:
        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 line) 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:
        getDN in class AuditLogMessage
        Returns:
        The DN of the entry targeted by the associated operation.
      • getModifications

        public java.util.List<ModificationgetModifications()
        Retrieves a list of the modifications included in the associated modify operation.
        Returns:
        A list of the modifications included in the associated modify operation.
      • getIsSoftDeletedEntry

        public java.lang.Boolean getIsSoftDeletedEntry()
        Retrieves the value of the flag that indicates whether this modify operation targeted an entry that had previously been soft deleted, if available.
        Returns:
        Boolean.TRUE if it is known that the operation targeted a soft-deleted entry, Boolean.FALSE if it is known that the operation did not target a soft-deleted entry, or null if this is not available.
      • 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 by AuditLogMessage.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:
        toString in class AuditLogMessage
        Parameters:
        buffer - The buffer to which the information should be appended.