public class BooleanAuditActionResolver extends AbstractSuffixAwareAuditActionResolver
AuditActionResolver that can process boolean return values.
Return values are basically action + either the success or failure suffix based on the boolean value.
| Constructor and Description |
|---|
BooleanAuditActionResolver(String successSuffix,
String failureSuffix)
Constructs the
BooleanAuditActionResolver with a success suffix and failure
suffix. |
| Modifier and Type | Method and Description |
|---|---|
String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Exception exception,
Audit audit)
Resolve the action for the audit event that has incurred
an exception.
|
String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
Object retval,
Audit audit)
Resolve the action for the audit event.
|
getFailureSuffix, getSuccessSuffixpublic BooleanAuditActionResolver(String successSuffix, String failureSuffix)
BooleanAuditActionResolver with a success suffix and failure
suffix. CANNOT be NULL.successSuffix - the suffix to use in the event of a success.failureSuffix - the suffix to use in the event of a failure.public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Object retval, Audit audit)
AuditActionResolverretval - The returned valueaudit - the Audit annotation that may contain additional information.public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Exception exception, Audit audit)
AuditActionResolverexception - The exception incurred when the join point proceeds.audit - the Audit annotation that may contain additional information.Copyright © 2007-2017 Apereo. All Rights Reserved.