Class OMRSAuditLogRecordOriginator

  • All Implemented Interfaces:
    java.io.Serializable

    public class OMRSAuditLogRecordOriginator
    extends java.lang.Object
    implements java.io.Serializable
    OMRSAuditLogRecordOriginator describes the server that originated an audit log record. This is useful if an organization is aggregating messages from different servers together.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OMRSAuditLogRecordOriginator()
      Default constructor used by parsing engines and other consumers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Validate that an object is equal depending on their stored values.
      java.lang.String getMetadataCollectionId()
      Returns the unique identifier (guid) of the originating repository's metadata collection.
      java.lang.String getOrganizationName()
      Return the name of the organization that runs/owns the server.
      java.lang.String getServerName()
      Return the display name for the server that is used in events, messages and UIs to make it easier for people to understand the origin of metadata.
      java.lang.String getServerType()
      Return the descriptive string describing the type of the server.
      int hashCode()
      Return a hash code based on the values of this object.
      void setMetadataCollectionId​(java.lang.String metadataCollectionId)
      Sets up the unique identifier (guid) of the originating repository.
      void setOrganizationName​(java.lang.String organizationName)
      Set up the name of the organization that runs/owns the server.
      void setServerName​(java.lang.String serverName)
      Set up the display name for the server that is used in events, messages and UIs to make it easier for people to understand the origin of metadata.
      void setServerType​(java.lang.String serverType)
      Set up the descriptive string describing the type of the server.
      java.lang.String toString()
      Standard toString method.
      • Methods inherited from class java.lang.Object

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

      • SERVER_NAME_PROPERTY

        public static java.lang.String SERVER_NAME_PROPERTY
      • SERVER_TYPE_PROPERTY

        public static java.lang.String SERVER_TYPE_PROPERTY
      • ORGANIZATION_NAME_PROPERTY

        public static java.lang.String ORGANIZATION_NAME_PROPERTY
      • METADATA_COLLECTION_ID_PROPERTY

        public static java.lang.String METADATA_COLLECTION_ID_PROPERTY
    • Constructor Detail

      • OMRSAuditLogRecordOriginator

        public OMRSAuditLogRecordOriginator()
        Default constructor used by parsing engines and other consumers.
    • Method Detail

      • getServerName

        public java.lang.String getServerName()
        Return the display name for the server that is used in events, messages and UIs to make it easier for people to understand the origin of metadata.
        Returns:
        String server name
      • setServerName

        public void setServerName​(java.lang.String serverName)
        Set up the display name for the server that is used in events, messages and UIs to make it easier for people to understand the origin of metadata.
        Parameters:
        serverName - String server name
      • getServerType

        public java.lang.String getServerType()
        Return the descriptive string describing the type of the server. This might be the name of the product, or similar identifier.
        Returns:
        String server type
      • setServerType

        public void setServerType​(java.lang.String serverType)
        Set up the descriptive string describing the type of the server. This might be the name of the product, or similar identifier.
        Parameters:
        serverType - String server type
      • getOrganizationName

        public java.lang.String getOrganizationName()
        Return the name of the organization that runs/owns the server.
        Returns:
        String organization name
      • setOrganizationName

        public void setOrganizationName​(java.lang.String organizationName)
        Set up the name of the organization that runs/owns the server.
        Parameters:
        organizationName - String organization name
      • getMetadataCollectionId

        public java.lang.String getMetadataCollectionId()
        Returns the unique identifier (guid) of the originating repository's metadata collection.
        Returns:
        String guid
      • setMetadataCollectionId

        public void setMetadataCollectionId​(java.lang.String metadataCollectionId)
        Sets up the unique identifier (guid) of the originating repository.
        Parameters:
        metadataCollectionId - String guid
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Object
        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 java.lang.Object
        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 java.lang.Object
        Returns:
        in hash code