com.github.inspektr.audit
Class AuditTrailManagementAspect
java.lang.Object
com.github.inspektr.audit.AuditTrailManagementAspect
public final class AuditTrailManagementAspect
- extends java.lang.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(java.lang.String applicationCode,
PrincipalResolver auditablePrincipalResolver,
java.util.List<AuditTrailManager> auditTrailManagers,
java.util.Map<java.lang.String,AuditActionResolver> auditActionResolverMap,
java.util.Map<java.lang.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 java.lang.Object handleAuditTrail(org.aspectj.lang.ProceedingJoinPoint joinPoint,
Audits audits)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
handleAuditTrail
public java.lang.Object handleAuditTrail(org.aspectj.lang.ProceedingJoinPoint joinPoint,
Audit audit)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
setClientInfoResolver
public void setClientInfoResolver(ClientInfoResolver factory)
Copyright © 2007-2011 Rutgers, the State University of New Jersey. All Rights Reserved.