Enum Class 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


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

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

      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

      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

      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}

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

      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}

      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

      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}

      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

      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.
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      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
      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
      params - array of parameters (all strings). They are inserted into the message according to the numbering in the message text.
      message definition object.
    • toString

      public String toString()
      JSON-style toString
      toString in class Enum<FileBasedRegistryStoreConnectorAuditCode>
      string of property names and values for this enum