org.alfresco.repo.audit
Class AuditMode

java.lang.Object
  extended by java.lang.Enum
      extended by org.alfresco.repo.audit.AuditMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public final class AuditMode
extends java.lang.Enum

An enum to specify the audit mode:

  1. ALL - all calls are audited
  2. SUCCESS - only successful calls are audited (audited in the same TX)
  3. FAIL - only fail calls are audited (in a new transaction)
  4. NONE - noting is audited
  5. UNSET
The mode is inherited from containers if nothing is specified

See Also:
Serialized Form

Field Summary
static AuditMode ALL
          All
static AuditMode FAIL
          Only exceptions/failures
static AuditMode NONE
          Nothing
static AuditMode SUCCESS
          Only success
static AuditMode UNSET
          Don't know
 
Method Summary
static AuditMode getAuditMode(java.lang.String value)
          Parse the audit mode from a string
static AuditMode valueOf(java.lang.String name)
           
static AuditMode[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL

public static final AuditMode ALL
All


SUCCESS

public static final AuditMode SUCCESS
Only success


FAIL

public static final AuditMode FAIL
Only exceptions/failures


NONE

public static final AuditMode NONE
Nothing


UNSET

public static final AuditMode UNSET
Don't know

Method Detail

values

public static final AuditMode[] values()

valueOf

public static AuditMode valueOf(java.lang.String name)

getAuditMode

public static AuditMode getAuditMode(java.lang.String value)
Parse the audit mode from a string

Parameters:
value -
Returns:
- the audit mode.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.