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(java.lang.String successSuffix,
java.lang.String failureSuffix)
Constructs the
BooleanAuditActionResolver with a success suffix and failure
suffix. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
java.lang.Exception exception,
Audit audit)
Resolve the action for the audit event that has incurred
an exception.
|
java.lang.String |
resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
java.lang.Object retval,
Audit audit)
Resolve the action for the audit event.
|
getFailureSuffix, getSuccessSuffixpublic BooleanAuditActionResolver(java.lang.String successSuffix,
java.lang.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 java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
java.lang.Object retval,
Audit audit)
AuditActionResolverretval - The returned valueaudit - the Audit annotation that may contain additional information.public java.lang.String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget,
java.lang.Exception exception,
Audit audit)
AuditActionResolverexception - The exception incurred when the join point proceeds.audit - the Audit annotation that may contain additional information.Copyright © 2007-2021 Apereo. All Rights Reserved.