Enum OMRSAuditCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<OMRSAuditCode>, AuditLogMessageSet

    public enum OMRSAuditCode
    extends java.lang.Enum<OMRSAuditCode>
    implements AuditLogMessageSet
    The OMRSAuditCode is used to define the message content for the OMRS Audit Log. The 5 fields in the enum are:
    • Log Message Id: to uniquely identify the message
    • Severity: is this an event, decision, action, error or exception
    • Log Message Text: includes placeholder to allow additional values to be captured
    • Additional Information: further parameters and data relating to the audit message (optional)
    • System Action: describes the result of the situation
    • User Action: describes how a user should correct the situation
    • Enum Constant Detail

      • OMRS_INITIALIZING

        public static final OMRSAuditCode OMRS_INITIALIZING
      • ENTERPRISE_ACCESS_INITIALIZING

        public static final OMRSAuditCode ENTERPRISE_ACCESS_INITIALIZING
      • LOCAL_REPOSITORY_INITIALIZING

        public static final OMRSAuditCode LOCAL_REPOSITORY_INITIALIZING
      • METADATA_HIGHWAY_INITIALIZING

        public static final OMRSAuditCode METADATA_HIGHWAY_INITIALIZING
      • COHORT_INITIALIZING

        public static final OMRSAuditCode COHORT_INITIALIZING
      • COHORT_CONFIG_ERROR

        public static final OMRSAuditCode COHORT_CONFIG_ERROR
      • OMRS_INITIALIZED

        public static final OMRSAuditCode OMRS_INITIALIZED
      • COHORT_DISCONNECTING

        public static final OMRSAuditCode COHORT_DISCONNECTING
      • COHORT_PERMANENTLY_DISCONNECTING

        public static final OMRSAuditCode COHORT_PERMANENTLY_DISCONNECTING
      • OMRS_DISCONNECTING

        public static final OMRSAuditCode OMRS_DISCONNECTING
      • OMRS_DISCONNECTED

        public static final OMRSAuditCode OMRS_DISCONNECTED
      • NO_LOCAL_REPOSITORY

        public static final OMRSAuditCode NO_LOCAL_REPOSITORY
      • LOCAL_REPOSITORY_FAILED_TO_START

        public static final OMRSAuditCode LOCAL_REPOSITORY_FAILED_TO_START
      • LOCAL_REPOSITORY_FAILED_TO_DISCONNECT

        public static final OMRSAuditCode LOCAL_REPOSITORY_FAILED_TO_DISCONNECT
      • OPEN_METADATA_TOPIC_LISTENER_START

        public static final OMRSAuditCode OPEN_METADATA_TOPIC_LISTENER_START
      • OPEN_METADATA_TOPIC_LISTENER_SHUTDOWN

        public static final OMRSAuditCode OPEN_METADATA_TOPIC_LISTENER_SHUTDOWN
      • NULL_TOPIC_CONNECTOR

        public static final OMRSAuditCode NULL_TOPIC_CONNECTOR
      • OMRS_TOPIC_LISTENER_DEAF

        public static final OMRSAuditCode OMRS_TOPIC_LISTENER_DEAF
      • OMRS_TOPIC_LISTENER_REGISTERED

        public static final OMRSAuditCode OMRS_TOPIC_LISTENER_REGISTERED
      • OMRS_TOPIC_LISTENER_STARTED

        public static final OMRSAuditCode OMRS_TOPIC_LISTENER_STARTED
      • OMRS_TOPIC_LISTENER_DISCONNECTED

        public static final OMRSAuditCode OMRS_TOPIC_LISTENER_DISCONNECTED
      • EVENT_MAPPER_LISTENER_DEAF

        public static final OMRSAuditCode EVENT_MAPPER_LISTENER_DEAF
      • EVENT_MAPPER_LISTENER_REGISTERED

        public static final OMRSAuditCode EVENT_MAPPER_LISTENER_REGISTERED
      • EVENT_MAPPER_LISTENER_STARTED

        public static final OMRSAuditCode EVENT_MAPPER_LISTENER_STARTED
      • EVENT_MAPPER_LISTENER_DISCONNECTED

        public static final OMRSAuditCode EVENT_MAPPER_LISTENER_DISCONNECTED
      • OMRS_LISTENER_INITIALIZING

        public static final OMRSAuditCode OMRS_LISTENER_INITIALIZING
      • COHORT_STARTUP_ERROR

        public static final OMRSAuditCode COHORT_STARTUP_ERROR
      • INITIALIZING_EVENT_MANAGER

        public static final OMRSAuditCode INITIALIZING_EVENT_MANAGER
      • REGISTERING_EVENT_PROCESSOR

        public static final OMRSAuditCode REGISTERING_EVENT_PROCESSOR
      • STARTING_EVENT_MANAGER

        public static final OMRSAuditCode STARTING_EVENT_MANAGER
      • DRAINING_TYPEDEF_EVENT_BUFFER

        public static final OMRSAuditCode DRAINING_TYPEDEF_EVENT_BUFFER
      • DRAINING_INSTANCE_EVENT_BUFFER

        public static final OMRSAuditCode DRAINING_INSTANCE_EVENT_BUFFER
      • BAD_REAL_LOCAL_REPOSITORY_CONNECTOR

        public static final OMRSAuditCode BAD_REAL_LOCAL_REPOSITORY_CONNECTOR
      • BAD_REAL_LOCAL_EVENT_MAPPER

        public static final OMRSAuditCode BAD_REAL_LOCAL_EVENT_MAPPER
      • BAD_ARCHIVE_STORE

        public static final OMRSAuditCode BAD_ARCHIVE_STORE
      • BAD_AUDIT_LOG_DESTINATION

        public static final OMRSAuditCode BAD_AUDIT_LOG_DESTINATION
      • BAD_TOPIC_CONNECTION

        public static final OMRSAuditCode BAD_TOPIC_CONNECTION
      • NEW_ENTERPRISE_CONNECTOR

        public static final OMRSAuditCode NEW_ENTERPRISE_CONNECTOR
      • STARTING_ENTERPRISE_CONNECTOR

        public static final OMRSAuditCode STARTING_ENTERPRISE_CONNECTOR
      • DISCONNECTING_ENTERPRISE_CONNECTOR

        public static final OMRSAuditCode DISCONNECTING_ENTERPRISE_CONNECTOR
      • ENTERPRISE_CONNECTOR_FAILED

        public static final OMRSAuditCode ENTERPRISE_CONNECTOR_FAILED
      • PROCESSING_ARCHIVE

        public static final OMRSAuditCode PROCESSING_ARCHIVE
      • NULL_PROPERTIES_IN_ARCHIVE

        public static final OMRSAuditCode NULL_PROPERTIES_IN_ARCHIVE
      • COMPLETED_ARCHIVE

        public static final OMRSAuditCode COMPLETED_ARCHIVE
      • NO_TYPE_DEF_PROCESSOR

        public static final OMRSAuditCode NO_TYPE_DEF_PROCESSOR
      • NO_INSTANCE_PROCESSOR

        public static final OMRSAuditCode NO_INSTANCE_PROCESSOR
      • REGISTERED_WITH_COHORT

        public static final OMRSAuditCode REGISTERED_WITH_COHORT
      • RE_REGISTERED_WITH_COHORT

        public static final OMRSAuditCode RE_REGISTERED_WITH_COHORT
      • REFRESH_REGISTRATION_REQUEST_WITH_COHORT

        public static final OMRSAuditCode REFRESH_REGISTRATION_REQUEST_WITH_COHORT
      • UNREGISTERING_FROM_COHORT

        public static final OMRSAuditCode UNREGISTERING_FROM_COHORT
      • OMRS_AUDIT_LOG_READY

        public static final OMRSAuditCode OMRS_AUDIT_LOG_READY
      • EVENT_PARSING_ERROR

        public static final OMRSAuditCode EVENT_PARSING_ERROR
      • EVENT_PROCESSING_ERROR

        public static final OMRSAuditCode EVENT_PROCESSING_ERROR
      • NULL_EVENT_TO_PROCESS

        public static final OMRSAuditCode NULL_EVENT_TO_PROCESS
      • SEND_REGISTRY_EVENT_ERROR

        public static final OMRSAuditCode SEND_REGISTRY_EVENT_ERROR
      • REFRESHING_REGISTRATION_WITH_COHORT

        public static final OMRSAuditCode REFRESHING_REGISTRATION_WITH_COHORT
      • INCOMING_CONFLICTING_LOCAL_METADATA_COLLECTION_ID

        public static final OMRSAuditCode INCOMING_CONFLICTING_LOCAL_METADATA_COLLECTION_ID
      • INCOMING_CONFLICTING_METADATA_COLLECTION_ID

        public static final OMRSAuditCode INCOMING_CONFLICTING_METADATA_COLLECTION_ID
      • INCOMING_BAD_CONNECTION

        public static final OMRSAuditCode INCOMING_BAD_CONNECTION
      • NEW_MEMBER_IN_COHORT

        public static final OMRSAuditCode NEW_MEMBER_IN_COHORT
      • MEMBER_LEFT_COHORT

        public static final OMRSAuditCode MEMBER_LEFT_COHORT
      • REFRESHED_MEMBER_IN_COHORT

        public static final OMRSAuditCode REFRESHED_MEMBER_IN_COHORT
      • OUTGOING_CONFLICTING_METADATA_COLLECTION_ID

        public static final OMRSAuditCode OUTGOING_CONFLICTING_METADATA_COLLECTION_ID
      • OUTGOING_BAD_CONNECTION

        public static final OMRSAuditCode OUTGOING_BAD_CONNECTION
      • MISSING_MEMBER_REGISTRATION

        public static final OMRSAuditCode MISSING_MEMBER_REGISTRATION
      • NULL_REGISTERED_MEMBER

        public static final OMRSAuditCode NULL_REGISTERED_MEMBER
      • NEW_REMOTE_MEMBER

        public static final OMRSAuditCode NEW_REMOTE_MEMBER
      • REMOTE_MEMBER_REFRESHED

        public static final OMRSAuditCode REMOTE_MEMBER_REFRESHED
      • NEW_REMOTE_MEMBER_FAILURE

        public static final OMRSAuditCode NEW_REMOTE_MEMBER_FAILURE
      • FEDERATION_LIST

        public static final OMRSAuditCode FEDERATION_LIST
      • REMOVE_REMOTE_MEMBER

        public static final OMRSAuditCode REMOVE_REMOTE_MEMBER
      • NEW_REMOTE_MEMBER_DEPLOYED

        public static final OMRSAuditCode NEW_REMOTE_MEMBER_DEPLOYED
      • REMOTE_MEMBER_DEPLOY_REFRESH

        public static final OMRSAuditCode REMOTE_MEMBER_DEPLOY_REFRESH
      • REMOTE_MEMBER_UNDEPLOYED

        public static final OMRSAuditCode REMOTE_MEMBER_UNDEPLOYED
      • REMOTE_MEMBER_UPDATED

        public static final OMRSAuditCode REMOTE_MEMBER_UPDATED
      • UNEXPECTED_EXCEPTION_FROM_REPOSITORY

        public static final OMRSAuditCode UNEXPECTED_EXCEPTION_FROM_REPOSITORY
      • INCOMING_CONFLICTING_TYPEDEFS

        public static final OMRSAuditCode INCOMING_CONFLICTING_TYPEDEFS
      • INCOMING_TYPEDEF_PATCH_MISMATCH

        public static final OMRSAuditCode INCOMING_TYPEDEF_PATCH_MISMATCH
      • OUTGOING_CONFLICTING_TYPEDEFS

        public static final OMRSAuditCode OUTGOING_CONFLICTING_TYPEDEFS
      • OUTGOING_TYPEDEF_PATCH_MISMATCH

        public static final OMRSAuditCode OUTGOING_TYPEDEF_PATCH_MISMATCH
      • OUTGOING_TYPE_MISMATCH

        public static final OMRSAuditCode OUTGOING_TYPE_MISMATCH
      • DUPLICATE_INSTANCES_FOR_GUID

        public static final OMRSAuditCode DUPLICATE_INSTANCES_FOR_GUID
      • INSTANCE_SUCCESSFULLY_REIDENTIFIED

        public static final OMRSAuditCode INSTANCE_SUCCESSFULLY_REIDENTIFIED
      • UNABLE_TO_RE_IDENTIFY_INSTANCE

        public static final OMRSAuditCode UNABLE_TO_RE_IDENTIFY_INSTANCE
      • INSTANCES_WITH_CONFLICTING_TYPES

        public static final OMRSAuditCode INSTANCES_WITH_CONFLICTING_TYPES
      • LOCAL_INSTANCE_WITH_CONFLICTING_TYPES

        public static final OMRSAuditCode LOCAL_INSTANCE_WITH_CONFLICTING_TYPES
      • UNABLE_TO_REMOVE_REFERENCE_COPY

        public static final OMRSAuditCode UNABLE_TO_REMOVE_REFERENCE_COPY
      • NEW_TYPE_ADDED

        public static final OMRSAuditCode NEW_TYPE_ADDED
      • NEW_TYPE_NOT_SUPPORTED

        public static final OMRSAuditCode NEW_TYPE_NOT_SUPPORTED
      • TYPE_IDENTIFIER_MISMATCH

        public static final OMRSAuditCode TYPE_IDENTIFIER_MISMATCH
      • AD_HOC_TYPE_DEFINITION

        public static final OMRSAuditCode AD_HOC_TYPE_DEFINITION
      • REMOTE_TYPE_CONFLICT

        public static final OMRSAuditCode REMOTE_TYPE_CONFLICT
      • NULL_TYPE_IDENTIFIER

        public static final OMRSAuditCode NULL_TYPE_IDENTIFIER
      • NULL_TYPE_NAME

        public static final OMRSAuditCode NULL_TYPE_NAME
      • NULL_TYPE_CATEGORY

        public static final OMRSAuditCode NULL_TYPE_CATEGORY
      • UNKNOWN_TYPE_CATEGORY

        public static final OMRSAuditCode UNKNOWN_TYPE_CATEGORY
      • TYPE_VERSION_MISMATCH

        public static final OMRSAuditCode TYPE_VERSION_MISMATCH
      • NULL_INSTANCE_ID

        public static final OMRSAuditCode NULL_INSTANCE_ID
      • NULL_METADATA_COLLECTION_ID

        public static final OMRSAuditCode NULL_METADATA_COLLECTION_ID
      • TYPE_ALREADY_KNOWN

        public static final OMRSAuditCode TYPE_ALREADY_KNOWN
      • NEW_TYPE_CACHED_FOR_ENTERPRISE

        public static final OMRSAuditCode NEW_TYPE_CACHED_FOR_ENTERPRISE
      • TYPE_UPDATE_SKIPPED

        public static final OMRSAuditCode TYPE_UPDATE_SKIPPED
      • UNKNOWN_TYPE_UPDATE_SKIPPED

        public static final OMRSAuditCode UNKNOWN_TYPE_UPDATE_SKIPPED
      • UPDATED_TYPE_CACHED_FOR_ENTERPRISE

        public static final OMRSAuditCode UPDATED_TYPE_CACHED_FOR_ENTERPRISE
      • SKIPPING_METADATA_COLLECTION

        public static final OMRSAuditCode SKIPPING_METADATA_COLLECTION
      • PROCESS_UNKNOWN_EVENT

        public static final OMRSAuditCode PROCESS_UNKNOWN_EVENT
      • PROCESS_INSTANCE_TYPE_CONFLICT

        public static final OMRSAuditCode PROCESS_INSTANCE_TYPE_CONFLICT
      • NEW_HOME_INFORMATION

        public static final OMRSAuditCode NEW_HOME_INFORMATION
      • NEW_TYPE_INFORMATION

        public static final OMRSAuditCode NEW_TYPE_INFORMATION
      • PROCESS_INSTANCE_GUID_CONFLICT

        public static final OMRSAuditCode PROCESS_INSTANCE_GUID_CONFLICT
      • PROCESS_INCOMING_EVENT

        public static final OMRSAuditCode PROCESS_INCOMING_EVENT
      • INVALID_INSTANCES

        public static final OMRSAuditCode INVALID_INSTANCES
      • RETRY_FOR_PROXY

        public static final OMRSAuditCode RETRY_FOR_PROXY
      • OUTBOUND_TOPIC_EVENT

        public static final OMRSAuditCode OUTBOUND_TOPIC_EVENT
      • NULL_OMRS_EVENT_RECEIVED

        public static final OMRSAuditCode NULL_OMRS_EVENT_RECEIVED
      • SEND_TYPEDEF_EVENT_ERROR

        public static final OMRSAuditCode SEND_TYPEDEF_EVENT_ERROR
      • SEND_INSTANCE_EVENT_ERROR

        public static final OMRSAuditCode SEND_INSTANCE_EVENT_ERROR
      • NULL_REGISTRY_PROCESSOR

        public static final OMRSAuditCode NULL_REGISTRY_PROCESSOR
      • NULL_TYPEDEF_PROCESSOR

        public static final OMRSAuditCode NULL_TYPEDEF_PROCESSOR
      • NULL_INSTANCE_PROCESSOR

        public static final OMRSAuditCode NULL_INSTANCE_PROCESSOR
      • NULL_OMRS_CONFIG

        public static final OMRSAuditCode NULL_OMRS_CONFIG
      • SENT_UNKNOWN_EVENT

        public static final OMRSAuditCode SENT_UNKNOWN_EVENT
      • UNEXPECTED_EXCEPTION_FROM_EVENT

        public static final OMRSAuditCode UNEXPECTED_EXCEPTION_FROM_EVENT
      • ENTERPRISE_TOPIC_DISCONNECT_ERROR

        public static final OMRSAuditCode ENTERPRISE_TOPIC_DISCONNECT_ERROR
      • ENTERPRISE_CONNECTOR_DISCONNECT_ERROR

        public static final OMRSAuditCode ENTERPRISE_CONNECTOR_DISCONNECT_ERROR
      • UNEXPECTED_EXCEPTION

        public static final OMRSAuditCode UNEXPECTED_EXCEPTION
      • BAD_EVENT_INSTANCE

        public static final OMRSAuditCode BAD_EVENT_INSTANCE
      • UNEXPECTED_EXCEPTION_FROM_SERVICE_LISTENER

        public static final OMRSAuditCode UNEXPECTED_EXCEPTION_FROM_SERVICE_LISTENER
      • UNHANDLED_EXCEPTION_FROM_SERVICE_LISTENER

        public static final OMRSAuditCode UNHANDLED_EXCEPTION_FROM_SERVICE_LISTENER
      • UNEXPECTED_EXCEPTION_FROM_TYPE_PROCESSING

        public static final OMRSAuditCode UNEXPECTED_EXCEPTION_FROM_TYPE_PROCESSING
      • UNHANDLED_EXCEPTION_FROM_TYPE_PROCESSING

        public static final OMRSAuditCode UNHANDLED_EXCEPTION_FROM_TYPE_PROCESSING
    • Method Detail

      • values

        public static OMRSAuditCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OMRSAuditCode c : OMRSAuditCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OMRSAuditCode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMessageDefinition

        public AuditLogMessageDefinition getMessageDefinition​(java.lang.String... params)
        Retrieve a message definition object for logging. This method is used when there are values to be inserted into the message.
        Specified by:
        getMessageDefinition in interface AuditLogMessageSet
        Parameters:
        params - array of parameters (all strings). They are inserted into the message according to the numbering in the message text.
        Returns:
        message definition object.
      • toString

        public java.lang.String toString()
        toString() JSON-style
        Overrides:
        toString in class java.lang.Enum<OMRSAuditCode>
        Returns:
        string description