Enum Class FileBasedRegistryStoreConnectorAuditCode

java.lang.Object
java.lang.Enum<FileBasedRegistryStoreConnectorAuditCode>
org.odpi.openmetadata.adapters.repositoryservices.cohortregistrystore.file.ffdc.FileBasedRegistryStoreConnectorAuditCode
All Implemented Interfaces:
Serializable, Comparable<FileBasedRegistryStoreConnectorAuditCode>, Constable, AuditLogMessageSet

public enum FileBasedRegistryStoreConnectorAuditCode extends Enum<FileBasedRegistryStoreConnectorAuditCode> implements AuditLogMessageSet
The FileBasedRegistryStoreConnectorAuditCode is used to define the message content for the 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
  • SystemAction - describes the result of the situation
  • UserAction - describes how a user should correct the situation
  • Enum Constant Details

    • CREATE_REGISTRY_FILE

      public static final FileBasedRegistryStoreConnectorAuditCode CREATE_REGISTRY_FILE
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0115 - Creating new cohort registry store {0}
    • UNUSABLE_REGISTRY_FILE

      public static final FileBasedRegistryStoreConnectorAuditCode UNUSABLE_REGISTRY_FILE
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0116 - Unable to write to cohort registry store {0}
    • NULL_MEMBER_REGISTRATION

      public static final FileBasedRegistryStoreConnectorAuditCode NULL_MEMBER_REGISTRATION
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0117 - Unable to read or write to cohort registry store {0} because registration information is null
    • MISSING_MEMBER_REGISTRATION

      public static final FileBasedRegistryStoreConnectorAuditCode MISSING_MEMBER_REGISTRATION
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0118 - Unable to process the {0} request for cohort {1} from cohort member {2} because there is no cohort registry store
    • DUPLICATE_REGISTERED_MC_ID

      public static final FileBasedRegistryStoreConnectorAuditCode DUPLICATE_REGISTERED_MC_ID
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0119 - Metadata collection id {0} is being used by server {1} and server {2}
    • NULL_REGISTERED_MC_ID

      public static final FileBasedRegistryStoreConnectorAuditCode NULL_REGISTERED_MC_ID
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0120 - Server {0} has registered with a null metadata collection id
    • DUPLICATE_REGISTERED_SERVER_NAME

      public static final FileBasedRegistryStoreConnectorAuditCode DUPLICATE_REGISTERED_SERVER_NAME
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0121 - Server name {0} is being used by metadata collection {1} and metadata collection {2}
    • NULL_REGISTERED_SERVER_NAME

      public static final FileBasedRegistryStoreConnectorAuditCode NULL_REGISTERED_SERVER_NAME
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0122 - The server using metadata collection id {0} has registered with a null server name
    • DUPLICATE_REGISTERED_SERVER_ADDR

      public static final FileBasedRegistryStoreConnectorAuditCode DUPLICATE_REGISTERED_SERVER_ADDR
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0123 - Server name {0} with metadata collection id {1} is using the same server address of {2} as server name {3} with metadata collection id {4}
    • NULL_REGISTERED_SERVER_ADDR

      public static final FileBasedRegistryStoreConnectorAuditCode NULL_REGISTERED_SERVER_ADDR
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0124 - The server name {0} using metadata collection id {1} has registered with a null server address
    • NULL_REGISTERED_SERVER_CONNECTION

      public static final FileBasedRegistryStoreConnectorAuditCode NULL_REGISTERED_SERVER_CONNECTION
      OCF-FILE-REGISTRY-STORE-CONNECTOR-0125 - The server name {0} using metadata collection id {1} has registered with a null server connection
  • Method Details

    • values

      public static FileBasedRegistryStoreConnectorAuditCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FileBasedRegistryStoreConnectorAuditCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMessageDefinition

      public AuditLogMessageDefinition getMessageDefinition()
      Retrieve a message definition object for logging. This method is used when there are no message inserts.
      Specified by:
      getMessageDefinition in interface AuditLogMessageSet
      Returns:
      message definition object.
    • getMessageDefinition

      public AuditLogMessageDefinition getMessageDefinition(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 String toString()
      JSON-style toString
      Overrides:
      toString in class Enum<FileBasedRegistryStoreConnectorAuditCode>
      Returns:
      string of property names and values for this enum