com.metamatrix.platform.security.audit.config
Class CurrentConfigAuditConfigurationFactory

java.lang.Object
  extended by com.metamatrix.platform.security.audit.config.CurrentConfigAuditConfigurationFactory
All Implemented Interfaces:
AuditConfigurationFactory

public class CurrentConfigAuditConfigurationFactory
extends java.lang.Object
implements AuditConfigurationFactory


Field Summary
static java.lang.String AUDIT_CONTEXT_PROPERTY_NAME
          The name of the property that contains the set of comma-separated context names for audit messages not to be recorded.
static java.lang.String CONTEXT_DELIMETER
           
 
Constructor Summary
CurrentConfigAuditConfigurationFactory()
           
 
Method Summary
 AuditConfiguration getConfiguration(java.util.Properties p)
          Obtain the set of contexts for messages that are to be discarded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUDIT_CONTEXT_PROPERTY_NAME

public static final java.lang.String AUDIT_CONTEXT_PROPERTY_NAME
The name of the property that contains the set of comma-separated context names for audit messages not to be recorded. A message context is simply some string that identifies something about the component that generates the message. The value for the contexts is application specific.

This is an optional property that defaults to no contexts (i.e., messages with any context are recorded).

See Also:
Constant Field Values

CONTEXT_DELIMETER

public static final java.lang.String CONTEXT_DELIMETER
See Also:
Constant Field Values
Constructor Detail

CurrentConfigAuditConfigurationFactory

public CurrentConfigAuditConfigurationFactory()
Method Detail

getConfiguration

public AuditConfiguration getConfiguration(java.util.Properties p)
                                    throws AuditConfigurationException
Obtain the set of contexts for messages that are to be discarded. If this method returns an empty set, then messages in all contexts are being recorded; if not empty, then messages with a context in the returned set are discarded and messages for all other contexts recorded.

Specified by:
getConfiguration in interface AuditConfigurationFactory
Returns:
the set of contexts for messages that are to be discarded
Throws:
AuditConfigurationException


Copyright © 2009. All Rights Reserved.