com.github.inspektr.audit
Class AuditTrailManagementAspect
java.lang.Object
com.github.inspektr.audit.AuditTrailManagementAspect
public final class AuditTrailManagementAspect
- extends Object
A POJO style aspect modularizing management of an audit trail data concern.
- Since:
- 1.0
- Version:
- $Revision$ $Date$
- Author:
- Dmitriy Kopylenko, Scott Battaglia
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuditTrailManagementAspect
public AuditTrailManagementAspect(String applicationCode,
PrincipalResolver auditablePrincipalResolver,
List<AuditTrailManager> auditTrailManagers,
Map<String,AuditActionResolver> auditActionResolverMap,
Map<String,AuditResourceResolver> auditResourceResolverMap)
- Constructs an AuditTrailManagementAspect with the following parameters. Also, registers some default AuditActionResolvers including the
DefaultAuditActionResolver, the BooleanAuditActionResolver and the ObjectCreationAuditActionResolver.
- Parameters:
applicationCode - the overall code that identifies this application.auditablePrincipalResolver - the resolver which will locate principals.auditTrailManagers - the list of managers to write the audit trail out to.auditActionResolverMap - the map of resolvers by name provided in the annotation on the method.auditResourceResolverMap - the map of resolvers by the name provided in the annotation on the method.
handleAuditTrail
public Object handleAuditTrail(org.aspectj.lang.ProceedingJoinPoint joinPoint,
Audits audits)
throws Throwable
- Throws:
Throwable
handleAuditTrail
public Object handleAuditTrail(org.aspectj.lang.ProceedingJoinPoint joinPoint,
Audit audit)
throws Throwable
- Throws:
Throwable
setClientInfoResolver
public void setClientInfoResolver(ClientInfoResolver factory)
Copyright © 2007-2012 Rutgers, the State University of New Jersey. All Rights Reserved.