Class OMRSAuditLogReportingComponent

  • All Implemented Interfaces:, ComponentDescription

    public class OMRSAuditLogReportingComponent
    extends java.lang.Object
    implements, ComponentDescription
    OMRSAuditLogReportingComponent describes the component issuing the audit log record.
    See Also:
    Serialized Form
    • Constructor Detail

      • OMRSAuditLogReportingComponent

        public OMRSAuditLogReportingComponent​(int componentId,
                                              ComponentDevelopmentStatus componentDevelopmentStatus,
                                              java.lang.String componentName,
                                              java.lang.String componentDescription,
                                              java.lang.String componentWikiURL)
        Construct the description of the reporting component.
        componentId - numerical identifier for the component.
        componentDevelopmentStatus - status of the component's implementation
        componentName - display name for the component.
        componentDescription - description of the component.
        componentWikiURL - link to more information.
      • OMRSAuditLogReportingComponent

        public OMRSAuditLogReportingComponent​(ComponentDescription template)
        Construct the description of the reporting component.
        template - object to copy.
    • Method Detail

      • getComponentId

        public int getComponentId()
        Return the numerical code for this component.
        Specified by:
        getComponentId in interface ComponentDescription
        int componentId
      • getComponentName

        public java.lang.String getComponentName()
        Return the name of the component. This is the name used in the audit log records.
        Specified by:
        getComponentName in interface ComponentDescription
        String component name
      • getComponentType

        public java.lang.String getComponentType()
        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:
        getComponentType in interface ComponentDescription
        String description
      • getComponentWikiURL

        public java.lang.String getComponentWikiURL()
        URL to the wiki page that describes this component. This provides more information to the log reader on the operation of the component.
        Specified by:
        getComponentWikiURL in interface ComponentDescription
        String URL
      • toString

        public java.lang.String toString()
        Standard toString method.
        toString in class java.lang.Object
        JSON style description of variables.
      • equals

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

        public int hashCode()
        Return a hash code based on the values of this object.
        hashCode in class java.lang.Object
        in hash code