public class AuditMethodInterceptor extends 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 String |
AUDIT_PATH_API_POST |
static String |
AUDIT_PATH_API_PRE |
static String |
AUDIT_PATH_API_ROOT |
static String |
AUDIT_SNIPPET_ARGS |
static String |
AUDIT_SNIPPET_ERROR |
static String |
AUDIT_SNIPPET_NO_ERROR |
static String |
AUDIT_SNIPPET_PRE_CALL_DATA |
static String |
AUDIT_SNIPPET_RESULT |
Constructor and Description |
---|
AuditMethodInterceptor() |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(org.aopalliance.intercept.MethodInvocation mi) |
void |
setAuditComponent(AuditComponent auditComponent) |
void |
setBeanIdentifier(BeanIdentifier beanIdentifier) |
void |
setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) |
void |
setTransactionService(TransactionService transactionService) |
void |
setUseNewConfig(boolean useNewConfig)
Use the new audit configuration (default: false)
|
public static final String AUDIT_PATH_API_ROOT
public static final String AUDIT_PATH_API_PRE
public static final String AUDIT_PATH_API_POST
public static final String AUDIT_SNIPPET_ARGS
public static final String AUDIT_SNIPPET_PRE_CALL_DATA
public static final String AUDIT_SNIPPET_RESULT
public static final String AUDIT_SNIPPET_ERROR
public static final 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(ThreadPoolExecutor threadPoolExecutor)
Copyright © 2005–2017 Alfresco Software. All rights reserved.