Class AuditLogRecord
java.lang.Object
org.odpi.openmetadata.frameworks.auditlog.AuditLogRecord
- Direct Known Subclasses:
OMRSAuditLogRecord
AuditLogRecord provides a carrier for details about a single log record in the audit log.
-
Constructor Summary
ConstructorDescriptionDefault constructorAuditLogRecord
(AuditLogRecord template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.Return the description of the activity that this log record relates.Return any additional information in the audit log record.Return the name of any exception linked to the audit log record.Return the name of the message associated with any exception linked to the audit log record.Return the stack trace associated with any exception linked to the audit log record.getGUID()
Return the unique Identifier of the audit log record.Return the identifier of the message within the log record.String[]
Return the array of values that were inserted in the message text.Return the text of the message within the log record.Return the name of the component that reported the situation recorded in the log record.Return details of the originator of the log record.Return the severity of the situation recorded in the log record.int
Return the severity of the situation recorded in the log record.Return the description of the actions taken by the local server as a result of the reported situation.long
Return the identifier of the thread where the situation occurred.Return the name of the thread where the situation occurred.Return the time stamp for when the audit log record was created.Return details of the actions (if any) that a user can take in response to the reported situation.int
hashCode()
Return a hash code based on the values of this object.void
setActionDescription
(String actionDescription) Set up the description of the activity that this log record relates.void
setAdditionalInformation
(List<String> additionalInformation) Set up any additional information in the audit log record.void
setExceptionClassName
(String exceptionClassName) Set up the name of any exception linked to the audit log record.void
setExceptionMessage
(String exceptionMessage) Set up the name of the message associated with any exception linked to the audit log record.void
setExceptionStackTrace
(String exceptionStackTrace) Set up the stack trace associated with any exception linked to the audit log record.void
Set up the unique Identifier of the audit log record.void
setMessageId
(String messageId) Set up the identifier of the message within the log record.void
setMessageParameters
(String[] messageParameters) Set up the array of values that were inserted in the message text.void
setMessageText
(String messageText) Set up the text of the message within the log record.void
setOriginatorComponent
(AuditLogReportingComponent originatorComponent) Set up the name of the component that reported the situation recorded in the log record.void
setOriginatorProperties
(Map<String, String> originatorProperties) Set up details of the originator of the log record.void
setSeverity
(String severity) Set up the severity of the situation recorded in the log record.void
setSeverityCode
(int severityCode) Set up the severity of the situation recorded in the log record.void
setSystemAction
(String systemAction) Set up the description of the actions taken by the local server as a result of the reported situation.void
setThreadId
(long threadId) Set up the identifier of the thread where the situation occurred.void
setThreadName
(String threadName) Set up he name of the thread where the situation occurred.void
setTimeStamp
(Date timeStamp) Set up the time stamp for when the audit log record was created.void
setUserAction
(String userAction) Set up details of the actions (if any) that a user can take in response to the reported situation.toString()
Standard toString method.
-
Constructor Details
-
AuditLogRecord
public AuditLogRecord()Default constructor -
AuditLogRecord
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getGUID
Return the unique Identifier of the audit log record.- Returns:
- String guid
-
setGUID
Set up the unique Identifier of the audit log record.- Parameters:
guid
- String guid
-
getTimeStamp
Return the time stamp for when the audit log record was created.- Returns:
- Date object
-
setTimeStamp
Set up the time stamp for when the audit log record was created.- Parameters:
timeStamp
- Date object
-
getOriginatorProperties
Return details of the originator of the log record.- Returns:
- map of name value pairs
-
setOriginatorProperties
Set up details of the originator of the log record.- Parameters:
originatorProperties
- map of name value pairs
-
getOriginatorComponent
Return the name of the component that reported the situation recorded in the log record.- Returns:
- ComponentDescription object
-
setOriginatorComponent
Set up the name of the component that reported the situation recorded in the log record.- Parameters:
originatorComponent
- ComponentDescription object
-
getActionDescription
Return the description of the activity that this log record relates.- Returns:
- string description
-
setActionDescription
Set up the description of the activity that this log record relates.- Parameters:
actionDescription
- string description
-
getThreadId
public long getThreadId()Return the identifier of the thread where the situation occurred. This is useful for correlating records in a multi-threaded environment.- Returns:
- long id
-
setThreadId
public void setThreadId(long threadId) Set up the identifier of the thread where the situation occurred.- Parameters:
threadId
- long id
-
getThreadName
Return the name of the thread where the situation occurred.- Returns:
- string name
-
setThreadName
Set up he name of the thread where the situation occurred.- Parameters:
threadName
- string name
-
getSeverityCode
public int getSeverityCode()Return the severity of the situation recorded in the log record.- Returns:
- int unique id for the severity
-
setSeverityCode
public void setSeverityCode(int severityCode) Set up the severity of the situation recorded in the log record.- Parameters:
severityCode
- unique id for the severity
-
getSeverity
Return the severity of the situation recorded in the log record.- Returns:
- String severity
-
setSeverity
Set up the severity of the situation recorded in the log record.- Parameters:
severity
- String severity
-
getMessageId
Return the identifier of the message within the log record.- Returns:
- String message id
-
setMessageId
Set up the identifier of the message within the log record.- Parameters:
messageId
- String message id
-
getMessageText
Return the text of the message within the log record.- Returns:
- String message text
-
setMessageText
Set up the text of the message within the log record.- Parameters:
messageText
- String message text
-
getMessageParameters
Return the array of values that were inserted in the message text.- Returns:
- array of strings
-
setMessageParameters
Set up the array of values that were inserted in the message text.- Parameters:
messageParameters
- array of strings
-
getAdditionalInformation
Return any additional information in the audit log record.- Returns:
- List of String additional information
-
setAdditionalInformation
Set up any additional information in the audit log record.- Parameters:
additionalInformation
- List of String additional information
-
getSystemAction
Return the description of the actions taken by the local server as a result of the reported situation.- Returns:
- string description
-
setSystemAction
Set up the description of the actions taken by the local server as a result of the reported situation.- Parameters:
systemAction
- a description of the actions taken by the system as a result of the error.
-
getUserAction
Return details of the actions (if any) that a user can take in response to the reported situation.- Returns:
- String instructions
-
setUserAction
Set up details of the actions (if any) that a user can take in response to the reported situation.- Parameters:
userAction
- String instructions
-
getExceptionClassName
Return the name of any exception linked to the audit log record.- Returns:
- the class name
-
setExceptionClassName
Set up the name of any exception linked to the audit log record.- Parameters:
exceptionClassName
- string name
-
getExceptionMessage
Return the name of the message associated with any exception linked to the audit log record.- Returns:
- string message
-
setExceptionMessage
Set up the name of the message associated with any exception linked to the audit log record.- Parameters:
exceptionMessage
- string message
-
getExceptionStackTrace
Return the stack trace associated with any exception linked to the audit log record.- Returns:
- string stack trace
-
setExceptionStackTrace
Set up the stack trace associated with any exception linked to the audit log record.- Parameters:
exceptionStackTrace
- string stack trace
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the values of this object.
-