Class NullableReturnValueAuditResourceResolver
java.lang.Object
org.apereo.inspektr.audit.spi.support.NullableReturnValueAuditResourceResolver
- All Implemented Interfaces:
AuditResourceResolver
public class NullableReturnValueAuditResourceResolver
extends Object
implements AuditResourceResolver
- Author:
- Misagh Moayyed
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]resolveFrom(org.aspectj.lang.JoinPoint joinPoint, Exception e) Resolve the auditable resource for an audit-able action that has incurred an exception.String[]resolveFrom(org.aspectj.lang.JoinPoint joinPoint, Object o) Resolve the auditable resource.voidsetAuditFormat(AuditTrailManager.AuditFormats auditFormat) voidsetResourcePostProcessor(Function<String[], String[]> resourcePostProcessor)
-
Field Details
-
resourcePostProcessor
-
-
Constructor Details
-
NullableReturnValueAuditResourceResolver
-
-
Method Details
-
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.o- 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.e- The exception incurred when the join point proceeds.- Returns:
- The resource String.
-