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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOCF-FILE-REGISTRY-STORE-CONNECTOR-0115 - Creating new cohort registry store {0}OCF-FILE-REGISTRY-STORE-CONNECTOR-0119 - Metadata collection id {0} is being used by server {1} and server {2}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}OCF-FILE-REGISTRY-STORE-CONNECTOR-0121 - Server name {0} is being used by metadata collection {1} and metadata collection {2}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 storeOCF-FILE-REGISTRY-STORE-CONNECTOR-0117 - Unable to read or write to cohort registry store {0} because registration information is nullOCF-FILE-REGISTRY-STORE-CONNECTOR-0120 - Server {0} has registered with a null metadata collection idOCF-FILE-REGISTRY-STORE-CONNECTOR-0124 - The server name {0} using metadata collection id {1} has registered with a null server addressOCF-FILE-REGISTRY-STORE-CONNECTOR-0125 - The server name {0} using metadata collection id {1} has registered with a null server connectionOCF-FILE-REGISTRY-STORE-CONNECTOR-0122 - The server using metadata collection id {0} has registered with a null server nameOCF-FILE-REGISTRY-STORE-CONNECTOR-0116 - Unable to write to cohort registry store {0} -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a message definition object for logging.getMessageDefinition
(String... params) Retrieve a message definition object for logging.toString()
JSON-style toStringReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE_REGISTRY_FILE
OCF-FILE-REGISTRY-STORE-CONNECTOR-0115 - Creating new cohort registry store {0} -
UNUSABLE_REGISTRY_FILE
OCF-FILE-REGISTRY-STORE-CONNECTOR-0116 - Unable to write to cohort registry store {0} -
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
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
OCF-FILE-REGISTRY-STORE-CONNECTOR-0119 - Metadata collection id {0} is being used by server {1} and server {2} -
NULL_REGISTERED_MC_ID
OCF-FILE-REGISTRY-STORE-CONNECTOR-0120 - Server {0} has registered with a null metadata collection id -
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
OCF-FILE-REGISTRY-STORE-CONNECTOR-0122 - The server using metadata collection id {0} has registered with a null server name -
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
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
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
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
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 nameNullPointerException
- if the argument is null
-
getMessageDefinition
Retrieve a message definition object for logging. This method is used when there are no message inserts.- Specified by:
getMessageDefinition
in interfaceAuditLogMessageSet
- Returns:
- message definition object.
-
getMessageDefinition
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 interfaceAuditLogMessageSet
- 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
JSON-style toString- Overrides:
toString
in classEnum<FileBasedRegistryStoreConnectorAuditCode>
- Returns:
- string of property names and values for this enum
-