public class OMRSAuditLogRecord extends Object implements Serializable
| Constructor and Description |
|---|
OMRSAuditLogRecord()
Default constructor
|
OMRSAuditLogRecord(OMRSAuditLogRecord template)
Copy/clone constructor
|
OMRSAuditLogRecord(OMRSAuditLogRecordOriginator originator,
OMRSAuditLogReportingComponent reportingComponent,
String severity,
String messageId,
String messageText,
List<String> additionalInformation,
String systemAction,
String userAction)
Audit log records are immutable so the only way to update the values is through the constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
|
List<String> |
getAdditionalInformation()
Return any additional information in the audit log record.
|
String |
getExceptionClassName()
Return the name of any exception linked to the audit log record.
|
String |
getExceptionMessage()
Return the name of the message associated with any exception linked to the audit log record.
|
String |
getExceptionStackTrace()
Return the stack trace associated with any exception linked to the audit log record.
|
String |
getGUID()
Return the unique Id of the audit log record.
|
String |
getMessageId()
Return the identifier of the message within the log record.
|
String |
getMessageText()
Return the text of the message within the log record.
|
OMRSAuditLogRecordOriginator |
getOriginator()
Return details of the originator of the log record.
|
OMRSAuditLogReportingComponent |
getReportingComponent()
Return the name of the component that reported the situation recorded in the log record.
|
String |
getSeverity()
Return the severity of the situation recorded in the log record.
|
String |
getSystemAction()
Return the description of the actions taken by the local server as a result of the reported situation.
|
Date |
getTimeStamp()
Return the time stamp for when the audit log record was created.
|
String |
getUserAction()
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 |
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 |
setGUID(String guid)
Set up the unique Id of the audit log record.
|
void |
setMessageId(String messageId)
Set up the identifier of the message within the log record.
|
void |
setMessageText(String messageText)
Set up the text of the message within the log record.
|
void |
setOriginator(OMRSAuditLogRecordOriginator originator)
Set up details of the originator of the log record.
|
void |
setReportingComponent(OMRSAuditLogReportingComponent reportingComponent)
Set up the name of the component that reported the situation recorded in the log record.
|
void |
setSeverity(String severity)
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 |
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.
|
String |
toString()
Standard toString method.
|
public OMRSAuditLogRecord()
public OMRSAuditLogRecord(OMRSAuditLogRecord template)
template - object to copypublic OMRSAuditLogRecord(OMRSAuditLogRecordOriginator originator, OMRSAuditLogReportingComponent reportingComponent, String severity, String messageId, String messageText, List<String> additionalInformation, String systemAction, String userAction)
originator - details of the originating serverreportingComponent - details of the component making the audit log entry.severity - OMRSAuditLogRecordSeverity enum that indicates the severity of log record.messageId - id of the message in the audit log record.messageText - description of the message for the audit log record.additionalInformation - additional properties that help to describe the situation.systemAction - action taken by the system.userAction - followup action that should be taken by the target end user (typically the server
administrator).public String getGUID()
public void setGUID(String guid)
guid - String guidpublic Date getTimeStamp()
public void setTimeStamp(Date timeStamp)
timeStamp - Date objectpublic OMRSAuditLogRecordOriginator getOriginator()
public void setOriginator(OMRSAuditLogRecordOriginator originator)
originator - calling componentpublic String getSeverity()
public void setSeverity(String severity)
severity - String severitypublic OMRSAuditLogReportingComponent getReportingComponent()
public void setReportingComponent(OMRSAuditLogReportingComponent reportingComponent)
reportingComponent - OMRSAuditLogReportingComponent objectpublic String getMessageId()
public void setMessageId(String messageId)
messageId - String message idpublic String getMessageText()
public void setMessageText(String messageText)
messageText - String message textpublic List<String> getAdditionalInformation()
public void setAdditionalInformation(List<String> additionalInformation)
additionalInformation - List of String additional informationpublic String getSystemAction()
public void setSystemAction(String systemAction)
systemAction - a description of the actions taken by the system as a result of the error.public String getUserAction()
public void setUserAction(String userAction)
userAction - String instructionspublic String getExceptionClassName()
public void setExceptionClassName(String exceptionClassName)
exceptionClassName - string namepublic String getExceptionMessage()
public void setExceptionMessage(String exceptionMessage)
exceptionMessage - string messagepublic String getExceptionStackTrace()
public void setExceptionStackTrace(String exceptionStackTrace)
exceptionStackTrace - string stack tracepublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2020 ODPi. All rights reserved.