Class AuditLogMessageDefinition


  • public class AuditLogMessageDefinition
    extends MessageDefinition
    AuditLogMessageDefinition extends MessageDefinition to provide a container that describes a single instance of a message for an audit log record.
    • Constructor Detail

      • AuditLogMessageDefinition

        public AuditLogMessageDefinition​(java.lang.String messageId,
                                         AuditLogRecordSeverity severity,
                                         java.lang.String messageTemplate,
                                         java.lang.String systemAction,
                                         java.lang.String userAction)
        Constructor to save all the fixed values of a message. This is typically populated from an Enum message set. The constructor passes most values to the super class and just retains the additional value for the audit log.
        Parameters:
        messageId - unique Id for the message
        severity - severity of the message
        messageTemplate - text for the message
        systemAction - description of the action taken by the system when the condition happened
        userAction - instructions for resolving the situation, if any
    • Method Detail

      • getSeverity

        public AuditLogRecordSeverity getSeverity()
        Return the severity of the audit log record.
        Returns:
        OMRSAuditLogRecordSeverity enum
      • toString

        public java.lang.String toString()
        JSON-style toString.
        Overrides:
        toString in class MessageDefinition
        Returns:
        list of properties and their values.