public class AuditMethodInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor
/alfresco-api
/pre
/<service>
/<method>
/args
/<arg-name>=<value>
/<arg-name>=<value>
...
/service
/post
/<service>
/<method>
/args
/<arg-name>=<value>
/<arg-name>=<value>
...
/result=<value>
/error=<value>
/no-error=<null>
Applications can remap the paths onto their configurations as appropriate.
TODO: Audit configuration mapping needs to support conditionals| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUDIT_PATH_API_POST |
static java.lang.String |
AUDIT_PATH_API_PRE |
static java.lang.String |
AUDIT_PATH_API_ROOT |
static java.lang.String |
AUDIT_SNIPPET_ARGS |
static java.lang.String |
AUDIT_SNIPPET_ERROR |
static java.lang.String |
AUDIT_SNIPPET_NO_ERROR |
static java.lang.String |
AUDIT_SNIPPET_PRE_CALL_DATA |
static java.lang.String |
AUDIT_SNIPPET_RESULT |
| Constructor and Description |
|---|
AuditMethodInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation mi) |
void |
setAuditComponent(AuditComponent auditComponent) |
void |
setBeanIdentifier(BeanIdentifier beanIdentifier) |
void |
setThreadPoolExecutor(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor) |
void |
setTransactionService(TransactionService transactionService) |
void |
setUseNewConfig(boolean useNewConfig)
Use the new audit configuration (default: false)
|
public static final java.lang.String AUDIT_PATH_API_ROOT
public static final java.lang.String AUDIT_PATH_API_PRE
public static final java.lang.String AUDIT_PATH_API_POST
public static final java.lang.String AUDIT_SNIPPET_ARGS
public static final java.lang.String AUDIT_SNIPPET_PRE_CALL_DATA
public static final java.lang.String AUDIT_SNIPPET_RESULT
public static final java.lang.String AUDIT_SNIPPET_ERROR
public static final java.lang.String AUDIT_SNIPPET_NO_ERROR
public void setUseNewConfig(boolean useNewConfig)
useNewConfig - true to use the new audit configurationpublic void setBeanIdentifier(BeanIdentifier beanIdentifier)
public void setAuditComponent(AuditComponent auditComponent)
public void setTransactionService(TransactionService transactionService)
public void setThreadPoolExecutor(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
throws java.lang.Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorjava.lang.ThrowableCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.