Class AuditLogMessageDefinition
java.lang.Object
org.odpi.openmetadata.frameworks.auditlog.messagesets.MessageDefinition
org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageDefinition
AuditLogMessageDefinition extends MessageDefinition to provide a container that describes
a single instance of a message for an audit log record.
-
Constructor Summary
ConstructorDescriptionAuditLogMessageDefinition
(String messageId, AuditLogRecordSeverity severity, String messageTemplate, String systemAction, String userAction) Constructor to save all the fixed values of a message. -
Method Summary
Modifier and TypeMethodDescriptionReturn the severity of the audit log record.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.auditlog.messagesets.MessageDefinition
getMessageId, getMessageParams, getMessageTemplate, getSystemAction, getUserAction, setMessageParameters
-
Constructor Details
-
AuditLogMessageDefinition
public AuditLogMessageDefinition(String messageId, AuditLogRecordSeverity severity, String messageTemplate, String systemAction, 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 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 Details
-
getSeverity
Return the severity of the audit log record.- Returns:
- OMRSAuditLogRecordSeverity enum
-
toString
JSON-style toString.- Overrides:
toString
in classMessageDefinition
- Returns:
- list of properties and their values.
-