Class OMRSAuditLogReportSeverity

  • All Implemented Interfaces:
    java.io.Serializable, AuditLogRecordSeverity

    public class OMRSAuditLogReportSeverity
    extends java.lang.Object
    implements AuditLogRecordSeverity, java.io.Serializable
    AuditLogReportSeverity provides information about the different types of severities defined for the audit log.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      java.lang.String getDescription()
      Return the short description of the component.
      java.lang.String getName()
      Return the name of the component.
      int getOrdinal()
      Return the numerical code for this enum.
      int hashCode()
      Create a hash code for this element type.
      void setDescription​(java.lang.String description)
      Set up the short description of the component.
      void setName​(java.lang.String name)
      Set up the name of the component.
      void setOrdinal​(int ordinal)
      Set up the numerical code for this enum.
      java.lang.String toString()
      toString, JSON-style
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OMRSAuditLogReportSeverity

        public OMRSAuditLogReportSeverity()
        Default constructor
      • OMRSAuditLogReportSeverity

        public OMRSAuditLogReportSeverity​(AuditLogRecordSeverity template)
        Copy/clone constructor.
        Parameters:
        template - object to copy.
    • Method Detail

      • getOrdinal

        public int getOrdinal()
        Return the numerical code for this enum.
        Specified by:
        getOrdinal in interface AuditLogRecordSeverity
        Returns:
        int componentId
      • setOrdinal

        public void setOrdinal​(int ordinal)
        Set up the numerical code for this enum.
        Parameters:
        ordinal - identifier
      • getName

        public java.lang.String getName()
        Return the name of the component. This is the name used in the audit log records.
        Specified by:
        getName in interface AuditLogRecordSeverity
        Returns:
        String component name
      • setName

        public void setName​(java.lang.String name)
        Set up the name of the component. This is the name used in the audit log records.
        Parameters:
        name - String component name
      • getDescription

        public java.lang.String getDescription()
        Return the short description of the component. This is an English description. Natural language support for these values can be added to UIs using a resource bundle indexed with the component id. This value is provided as a default if the resource bundle is not available.
        Specified by:
        getDescription in interface AuditLogRecordSeverity
        Returns:
        String description
      • setDescription

        public void setDescription​(java.lang.String description)
        Set up the short description of the component. This is an English description. Natural language support for these values can be added to UIs using a resource bundle indexed with the component id. This value is provided as a default if the resource bundle is not available.
        Parameters:
        description - String description
      • toString

        public java.lang.String toString()
        toString, JSON-style
        Overrides:
        toString in class java.lang.Object
        Returns:
        string description
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int hash code