Class FirstParameterAuditResourceResolver
java.lang.Object
org.apereo.inspektr.audit.spi.support.FirstParameterAuditResourceResolver
- All Implemented Interfaces:
AuditResourceResolver
Converts the first argument object into a String resource identifier.
If the resource string is set, it will return the argument values into a list,
prefixed by the string. otherwise simply returns the argument value as a string.
- Author:
- Scott Battaglia, Misagh Moayyed
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]resolveFrom(org.aspectj.lang.JoinPoint joinPoint, Exception exception) Resolve the auditable resource for an audit-able action that has incurred an exception.String[]resolveFrom(org.aspectj.lang.JoinPoint joinPoint, Object retval) Resolve the auditable resource.voidsetAuditFormat(AuditTrailManager.AuditFormats auditFormat) voidsetResourcePostProcessor(Function<String[], String[]> resourcePostProcessor) voidsetResourceString(String resourceString) toResourceString(Object arg)
-
Field Details
-
resourcePostProcessor
-
-
Constructor Details
-
FirstParameterAuditResourceResolver
public FirstParameterAuditResourceResolver()
-
-
Method Details
-
setResourceString
-
setResourcePostProcessor
-
setAuditFormat
- Specified by:
setAuditFormatin interfaceAuditResourceResolver
-
resolveFrom
Description copied from interface:AuditResourceResolverResolve the auditable resource.- Specified by:
resolveFromin interfaceAuditResourceResolver- Parameters:
joinPoint- 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:
joinPoint- the join point that contains the arguments.exception- The exception incurred when the join point proceeds.- Returns:
- The resource String.
-
toResourceString
-