public abstract class JoinPointArgumentAuditPrincipalIdProvider<T> extends java.lang.Object implements PrincipalResolver
ANONYMOUS_USER, UNKNOWN_USER| Constructor and Description |
|---|
JoinPointArgumentAuditPrincipalIdProvider(int argumentPosition,
java.lang.Class<T> argumentType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Exception exception)
Resolve the principal performing an audit-able action that has incurred
an exception.
|
java.lang.String |
resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Object returnValue)
Resolve the principal performing an audit-able action.
|
protected abstract java.lang.String |
resolveFrom(T argument,
org.aspectj.lang.JoinPoint auditTarget,
java.lang.Object returnValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolvepublic JoinPointArgumentAuditPrincipalIdProvider(int argumentPosition,
java.lang.Class<T> argumentType)
public java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Object returnValue)
PrincipalResolver
Note, this method should NEVER throw an exception *unless* the expectation is that a failed resolution causes
the entire transaction to fail. Otherwise use PrincipalResolver.UNKNOWN_USER.
resolveFrom in interface PrincipalResolverauditTarget - the join point where we're auditing.returnValue - the returned valuepublic java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditTarget,
java.lang.Exception exception)
PrincipalResolver
Note, this method should NEVER throw an exception *unless* the expectation is that a failed resolution causes
the entire transaction to fail. Otherwise use PrincipalResolver.UNKNOWN_USER.
resolveFrom in interface PrincipalResolverauditTarget - the join point where we're auditing.exception - The exception incurred when the join point proceeds.protected abstract java.lang.String resolveFrom(T argument, org.aspectj.lang.JoinPoint auditTarget, java.lang.Object returnValue)
Copyright © 2007-2021 Apereo. All Rights Reserved.