com.metamatrix.platform.security.audit
Class AuditLevel

java.lang.Object
  extended by com.metamatrix.platform.security.audit.AuditLevel

public final class AuditLevel
extends java.lang.Object

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

NONE

public static final int NONE
Message level value that specifies that no messages are to be recorded.

See Also:
Constant Field Values

FULL

public static final int FULL
Message level value that specifies that critical messages are to be recorded.

See Also:
Constant Field Values

DEFAULT_AUDIT_LEVEL

public static final int DEFAULT_AUDIT_LEVEL
The default message level is NONE.

See Also:
Constant Field Values
Constructor Detail

AuditLevel

public AuditLevel()
Method Detail

isAuditLevelValid

public static boolean isAuditLevelValid(int newAuditLevel)
Utility method to set the level of messages that are recorded for this VM.

Parameters:
newAuditLevel - the new level; must be either AuditLevel.NONE, AuditLevel.FULL
Throws:
java.lang.IllegalArgumentException - if the level is out of range.

getLabels

public 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.

Returns:
an ordered list of String labels

getDisplayNames

public 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.

Returns:
an ordered list of String display names

getLabelForLevel

public static java.lang.String getLabelForLevel(int level)

getDisplayNameForLevel

public static java.lang.String getDisplayNameForLevel(int level)

getLevelForLabel

public static int getLevelForLabel(java.lang.String messageLabel)

getLevelForDisplayName

public static int getLevelForDisplayName(java.lang.String messageDisplayName)

getMinimumLevel

public static int getMinimumLevel()

getMaximumLevel

public static int getMaximumLevel()


Copyright © 2009. All Rights Reserved.