Class ReturnValueAsStringResourceResolver
java.lang.Object
org.apereo.inspektr.audit.spi.support.ReturnValueAsStringResourceResolver
- All Implemented Interfaces:
AuditResourceResolver
- Direct Known Subclasses:
MessageBundleAwareResourceResolver,ShortenedReturnValueAsStringAuditResourceResolver
Implementation of
AuditResourceResolver that uses the toString version of the return value
as the resource.- Since:
- 1.0
- Author:
- Scott Battaglia
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringpostProcess(String value) String[]resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Exception exception) Resolve the auditable resource for an audit-able action that has incurred an exception.String[]resolveFrom(org.aspectj.lang.JoinPoint auditableTarget, Object retval) Resolve the auditable resource.voidsetAuditFormat(AuditTrailManager.AuditFormats auditFormat) voidsetResourcePostProcessor(Function<String[], String[]> resourcePostProcessor) toResourceString(Object arg)
-
Field Details
-
auditFormat
-
resourcePostProcessor
-
-
Constructor Details
-
ReturnValueAsStringResourceResolver
public ReturnValueAsStringResourceResolver()
-
-
Method Details
-
setAuditFormat
- Specified by:
setAuditFormatin interfaceAuditResourceResolver
-
setResourcePostProcessor
-
resolveFrom
Description copied from interface:AuditResourceResolverResolve the auditable resource.- Specified by:
resolveFromin interfaceAuditResourceResolver- Parameters:
auditableTarget- the join point that contains the arguments.retval- The returned value- Returns:
- The resource String.
-
resolveFrom
Description copied from interface:AuditResourceResolverResolve the auditable resource for an audit-able action that has incurred an exception.- Specified by:
resolveFromin interfaceAuditResourceResolver- Parameters:
auditableTarget- the join point that contains the arguments.exception- The exception incurred when the join point proceeds.- Returns:
- The resource String.
-
toResourceString
-
postProcess
-