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
ConstructorsConstructorDescriptionAuditLogMessageDefinition(String messageId, AuditLogRecordSeverity severity, String messageTemplate, String systemAction, String userAction) Constructor to save all the fixed values of a message.AuditLogMessageDefinition(String messageId, AuditLogRecordSeverity severity, String messageTemplate, String systemAction, String userAction, String url) Constructor to save all the fixed values of a message, including a link to further reading. -
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, getURL, 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
-
AuditLogMessageDefinition
public AuditLogMessageDefinition(String messageId, AuditLogRecordSeverity severity, String messageTemplate, String systemAction, String userAction, String url) Constructor to save all the fixed values of a message, including a link to further reading. 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 anyurl- link to a page that describes the component or concept behind this message - null if there is no suitable page.
-
-
Method Details
-
getSeverity
Return the severity of the audit log record.- Returns:
- OMRSAuditLogRecordSeverity enum
-
toString
JSON-style toString.- Overrides:
toStringin classMessageDefinition- Returns:
- list of properties and their values.
-