Class BooleanAuditActionResolver
java.lang.Object
org.apereo.inspektr.audit.spi.support.AbstractSuffixAwareAuditActionResolver
org.apereo.inspektr.audit.spi.support.BooleanAuditActionResolver
- All Implemented Interfaces:
AuditActionResolver
Implementation of
AuditActionResolver that can process boolean return values.
Return values are basically action + either the success or failure suffix based on the boolean value.
- Since:
- 1.0
- Author:
- Scott Battaglia
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanAuditActionResolver(String successSuffix, String failureSuffix) Constructs theBooleanAuditActionResolverwith a success suffix and failure suffix. -
Method Summary
Modifier and TypeMethodDescriptionresolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Exception exception, Audit audit) Resolve the action for the audit event that has incurred an exception.resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Object retval, Audit audit) Resolve the action for the audit event.Methods inherited from class org.apereo.inspektr.audit.spi.support.AbstractSuffixAwareAuditActionResolver
getFailureSuffix, getSuccessSuffix
-
Constructor Details
-
BooleanAuditActionResolver
Constructs theBooleanAuditActionResolverwith a success suffix and failure suffix. CANNOT be NULL.- Parameters:
successSuffix- the suffix to use in the event of a success.failureSuffix- the suffix to use in the event of a failure.
-
-
Method Details
-
resolveFrom
Description copied from interface:AuditActionResolverResolve the action for the audit event.retval- The returned valueaudit- the Audit annotation that may contain additional information.- Returns:
- The resource String
-
resolveFrom
public String resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Exception exception, Audit audit) Description copied from interface:AuditActionResolverResolve the action for the audit event that has incurred an exception.exception- The exception incurred when the join point proceeds.audit- the Audit annotation that may contain additional information.- Returns:
- The resource String
-