Class OMRSAuditLogRecord

  • All Implemented Interfaces:
    java.io.Serializable

    public class OMRSAuditLogRecord
    extends 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.
    See Also:
    Serialized Form
    • Constructor Detail

      • OMRSAuditLogRecord

        public OMRSAuditLogRecord()
        Default constructor
      • OMRSAuditLogRecord

        public OMRSAuditLogRecord​(OMRSAuditLogRecord template)
        Copy/clone constructor
        Parameters:
        template - object to copy
      • OMRSAuditLogRecord

        public OMRSAuditLogRecord​(AuditLogRecord template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getOriginator

        public OMRSAuditLogRecordOriginator getOriginator()
        Return details of the originator of the log record.
        Returns:
        OMRSAuditLogRecordOriginator object
      • setOriginator

        public void setOriginator​(OMRSAuditLogRecordOriginator originator)
        Set up details of the originator of the log record.
        Parameters:
        originator - calling component
      • getReportingComponent

        public OMRSAuditLogReportingComponent getReportingComponent()
        Return the name of the component that reported the situation recorded in the log record.
        Returns:
        OMRSAuditLogReportingComponent object
      • setReportingComponent

        public void setReportingComponent​(OMRSAuditLogReportingComponent reportingComponent)
        Set up the name of the component that reported the situation recorded in the log record.
        Parameters:
        reportingComponent - OMRSAuditLogReportingComponent object
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class AuditLogRecord
        Returns:
        JSON style description of variables.
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Validate that an object is equal depending on their stored values.
        Overrides:
        equals in class AuditLogRecord
        Parameters:
        objectToCompare - object
        Returns:
        boolean result
      • hashCode

        public int hashCode()
        Return a hash code based on the values of this object.
        Overrides:
        hashCode in class AuditLogRecord
        Returns:
        in hash code