Class AuditLogMessageDefinition
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.auditlog.messagesets.MessageDefinition
-
- org.odpi.openmetadata.frameworks.auditlog.messagesets.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 Summary
Constructors Constructor Description AuditLogMessageDefinition(String messageId, AuditLogRecordSeverity severity, String messageTemplate, String systemAction, String userAction)Constructor to save all of the fixed values of a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditLogRecordSeveritygetSeverity()Return the severity of the audit log record.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.frameworks.auditlog.messagesets.MessageDefinition
getMessageId, getMessageParams, getMessageTemplate, getSystemAction, getUserAction, setMessageParameters
-
-
-
-
Constructor Detail
-
AuditLogMessageDefinition
public AuditLogMessageDefinition(String messageId, AuditLogRecordSeverity severity, String messageTemplate, String systemAction, String userAction)
Constructor to save all of 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 messageseverity- severity of the messagemessageTemplate- text for the messagesystemAction- description of the action taken by the system when the condition happeneduserAction- 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 String toString()
JSON-style toString.- Overrides:
toStringin classMessageDefinition- Returns:
- list of properties and their values.
-
-