mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-4106 AuditService enhancements and fixes
- Enabling DEBUG logging for 'org.alfresco.repo.audit.inbound' will dump all auditable data - Fixed values output so that Serializable map entries are converted to Strings - Made plain the pre-audit client check (i.e. it doesn't need a path for checking) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22203 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -126,14 +126,14 @@ public class AuditMethodInterceptor implements MethodInterceptor
|
||||
|
||||
public Object invoke(MethodInvocation mi) throws Throwable
|
||||
{
|
||||
if(!auditComponent.isAuditEnabled())
|
||||
if(!auditComponent.areAuditValuesRequired())
|
||||
{
|
||||
// No auditing
|
||||
return mi.proceed();
|
||||
}
|
||||
else
|
||||
{
|
||||
// New configuration will be used and optionally old configuration if useNewConfig=false
|
||||
// New configuration will be used
|
||||
return proceed(mi);
|
||||
}
|
||||
}
|
||||
@@ -160,14 +160,6 @@ public class AuditMethodInterceptor implements MethodInterceptor
|
||||
return mi.proceed();
|
||||
}
|
||||
|
||||
// If there are no mapped paths, there is nothing to do
|
||||
if (!this.auditComponent.isSourcePathMapped(AUDIT_PATH_API_ROOT))
|
||||
{
|
||||
// We can ignore the rest of the stack too
|
||||
inAudit.set(Boolean.TRUE);
|
||||
return mi.proceed();
|
||||
}
|
||||
|
||||
Auditable auditableDef = mi.getMethod().getAnnotation(Auditable.class);
|
||||
if (auditableDef == null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user