|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.platform.security.audit.AuditLevel
public final class AuditLevel
Constants that define the level of the messages that are to be recorded by the LogManager.
Nested Class Summary | |
---|---|
static class |
AuditLevel.DisplayNames
Constants that define the types of the messages that are to be recorded by the LogManager. |
static class |
AuditLevel.Labels
Constants that define the types of the messages that are to be recorded by the LogManager. |
Field Summary | |
---|---|
static int |
DEFAULT_AUDIT_LEVEL
The default message level is NONE. |
static int |
FULL
Message level value that specifies that critical messages are to be recorded. |
static int |
NONE
Message level value that specifies that no messages are to be recorded. |
Constructor Summary | |
---|---|
AuditLevel()
|
Method Summary | |
---|---|
static java.lang.String |
getDisplayNameForLevel(int level)
|
static java.util.List |
getDisplayNames()
Utility method to get the display names for the levels, starting with the lowest level and ending with the highest level. |
static java.lang.String |
getLabelForLevel(int level)
|
static java.util.List |
getLabels()
Utility method to get the labels for the levels, starting with the lowest level and ending with the highest level. |
static int |
getLevelForDisplayName(java.lang.String messageDisplayName)
|
static int |
getLevelForLabel(java.lang.String messageLabel)
|
static int |
getMaximumLevel()
|
static int |
getMinimumLevel()
|
static boolean |
isAuditLevelValid(int newAuditLevel)
Utility method to set the level of messages that are recorded for this VM. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NONE
public static final int FULL
public static final int DEFAULT_AUDIT_LEVEL
Constructor Detail |
---|
public AuditLevel()
Method Detail |
---|
public static boolean isAuditLevelValid(int newAuditLevel)
newAuditLevel
- the new level; must be either
AuditLevel.NONE
,
AuditLevel.FULL
java.lang.IllegalArgumentException
- if the level is out of range.public static java.util.List getLabels()
public static java.util.List getDisplayNames()
public static java.lang.String getLabelForLevel(int level)
public static java.lang.String getDisplayNameForLevel(int level)
public static int getLevelForLabel(java.lang.String messageLabel)
public static int getLevelForDisplayName(java.lang.String messageDisplayName)
public static int getMinimumLevel()
public static int getMaximumLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |