Class OMRSAuditLogRecord
java.lang.Object
org.odpi.openmetadata.frameworks.auditlog.AuditLogRecord
org.odpi.openmetadata.repositoryservices.connectors.stores.auditlogstore.OMRSAuditLogRecord
public class OMRSAuditLogRecord
extends org.odpi.openmetadata.frameworks.auditlog.AuditLogRecord
OMRSAuditLogRecord provides a carrier for details about a single log record in the OMRS audit log.
It extends the AuditLogRecord class from the Audit Log Framework (ALF) with deprecated fields from
the original OMRS implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorOMRSAuditLogRecord(org.odpi.openmetadata.frameworks.auditlog.AuditLogRecord template) Copy/clone constructorOMRSAuditLogRecord(OMRSAuditLogRecord template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanValidate that an object is equal depending on their stored values.Return details of the originator of the log record.Return the name of the component that reported the situation recorded in the log record.inthashCode()Return a hash code based on the values of this object.voidsetOriginator(OMRSAuditLogRecordOriginator originator) Set up details of the originator of the log record.voidsetReportingComponent(OMRSAuditLogReportingComponent reportingComponent) Set up the name of the component that reported the situation recorded in the log record.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.auditlog.AuditLogRecord
getActionDescription, getAdditionalInformation, getExceptionClassName, getExceptionMessage, getExceptionStackTrace, getGUID, getMessageId, getMessageParameters, getMessageText, getOriginatorComponent, getOriginatorProperties, getSeverity, getSeverityCode, getSystemAction, getThreadId, getThreadName, getTimeStamp, getUserAction, setActionDescription, setAdditionalInformation, setExceptionClassName, setExceptionMessage, setExceptionStackTrace, setGUID, setMessageId, setMessageParameters, setMessageText, setOriginatorComponent, setOriginatorProperties, setSeverity, setSeverityCode, setSystemAction, setThreadId, setThreadName, setTimeStamp, setUserAction
-
Constructor Details
-
OMRSAuditLogRecord
public OMRSAuditLogRecord()Default constructor -
OMRSAuditLogRecord
Copy/clone constructor- Parameters:
template- object to copy
-
OMRSAuditLogRecord
public OMRSAuditLogRecord(org.odpi.openmetadata.frameworks.auditlog.AuditLogRecord template) Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getOriginator
Return details of the originator of the log record.- Returns:
- OMRSAuditLogRecordOriginator object
-
setOriginator
Set up details of the originator of the log record.- Parameters:
originator- calling component
-
getReportingComponent
Return the name of the component that reported the situation recorded in the log record.- Returns:
- OMRSAuditLogReportingComponent object
-
setReportingComponent
Set up the name of the component that reported the situation recorded in the log record.- Parameters:
reportingComponent- OMRSAuditLogReportingComponent object
-
toString
Standard toString method.- Overrides:
toStringin classorg.odpi.openmetadata.frameworks.auditlog.AuditLogRecord- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equalsin classorg.odpi.openmetadata.frameworks.auditlog.AuditLogRecord- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCodein classorg.odpi.openmetadata.frameworks.auditlog.AuditLogRecord- Returns:
- in hash code
-