Enum OMRSAuditLogRecordSeverity
- java.lang.Object
-
- java.lang.Enum<OMRSAuditLogRecordSeverity>
-
- org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditLogRecordSeverity
-
- All Implemented Interfaces:
Serializable,Comparable<OMRSAuditLogRecordSeverity>,AuditLogRecordSeverity
public enum OMRSAuditLogRecordSeverity extends Enum<OMRSAuditLogRecordSeverity> implements AuditLogRecordSeverity
OMRSAuditLogRecordSeverity defines the different levels of severity for log records stored in the OMRSAuditLogRecord.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return the default description of this enum.StringgetName()Return the name of this enum.intgetOrdinal()Return the code for this enum.static List<OMRSAuditLogReportSeverity>getSeverityList()Return the list of severities defined for the audit log records in this server.StringtoString()toString() JSON-stylestatic OMRSAuditLogRecordSeverityvalueOf(String name)Returns the enum constant of this type with the specified name.static OMRSAuditLogRecordSeverity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final OMRSAuditLogRecordSeverity UNKNOWN
-
INFO
public static final OMRSAuditLogRecordSeverity INFO
-
EVENT
public static final OMRSAuditLogRecordSeverity EVENT
-
DECISION
public static final OMRSAuditLogRecordSeverity DECISION
-
ACTION
public static final OMRSAuditLogRecordSeverity ACTION
-
ERROR
public static final OMRSAuditLogRecordSeverity ERROR
-
EXCEPTION
public static final OMRSAuditLogRecordSeverity EXCEPTION
-
SECURITY
public static final OMRSAuditLogRecordSeverity SECURITY
-
STARTUP
public static final OMRSAuditLogRecordSeverity STARTUP
-
SHUTDOWN
public static final OMRSAuditLogRecordSeverity SHUTDOWN
-
ASSET
public static final OMRSAuditLogRecordSeverity ASSET
-
TYPES
public static final OMRSAuditLogRecordSeverity TYPES
-
COHORT
public static final OMRSAuditLogRecordSeverity COHORT
-
TRACE
public static final OMRSAuditLogRecordSeverity TRACE
-
PERFMON
public static final OMRSAuditLogRecordSeverity PERFMON
-
-
Method Detail
-
values
public static OMRSAuditLogRecordSeverity[] 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 (OMRSAuditLogRecordSeverity c : OMRSAuditLogRecordSeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OMRSAuditLogRecordSeverity valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getOrdinal
public int getOrdinal()
Return the code for this enum.- Specified by:
getOrdinalin interfaceAuditLogRecordSeverity- Returns:
- int numeric for this enum
-
getName
public String getName()
Return the name of this enum.- Specified by:
getNamein interfaceAuditLogRecordSeverity- Returns:
- String name
-
getDescription
public String getDescription()
Return the default description of this enum. This description is in English. Natural language translations can be created using a Resource Bundle indexed by the severity code. This description is a fall back when the resource bundle is not available.- Specified by:
getDescriptionin interfaceAuditLogRecordSeverity- Returns:
- String default description
-
toString
public String toString()
toString() JSON-style- Overrides:
toStringin classEnum<OMRSAuditLogRecordSeverity>- Returns:
- string description
-
getSeverityList
public static List<OMRSAuditLogReportSeverity> getSeverityList()
Return the list of severities defined for the audit log records in this server. The Enum needs to be turned into a bean.- Returns:
- list of severity values
-
-