Class NullableReturnValueAuditResourceResolver
- java.lang.Object
-
- org.apereo.inspektr.audit.spi.support.NullableReturnValueAuditResourceResolver
-
- All Implemented Interfaces:
AuditResourceResolver
public class NullableReturnValueAuditResourceResolver extends java.lang.Object implements AuditResourceResolver
- Author:
- Misagh Moayyed
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Function<java.lang.String[],java.lang.String[]>resourcePostProcessor
-
Constructor Summary
Constructors Constructor Description NullableReturnValueAuditResourceResolver(AuditResourceResolver delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]resolveFrom(org.aspectj.lang.JoinPoint joinPoint, java.lang.Exception e)Resolve the auditable resource for an audit-able action that has incurred an exception.java.lang.String[]resolveFrom(org.aspectj.lang.JoinPoint joinPoint, java.lang.Object o)Resolve the auditable resource.voidsetAuditFormat(AuditTrailManager.AuditFormats auditFormat)voidsetResourcePostProcessor(java.util.function.Function<java.lang.String[],java.lang.String[]> resourcePostProcessor)
-
-
-
Constructor Detail
-
NullableReturnValueAuditResourceResolver
public NullableReturnValueAuditResourceResolver(AuditResourceResolver delegate)
-
-
Method Detail
-
setResourcePostProcessor
public void setResourcePostProcessor(java.util.function.Function<java.lang.String[],java.lang.String[]> resourcePostProcessor)
-
setAuditFormat
public void setAuditFormat(AuditTrailManager.AuditFormats auditFormat)
- Specified by:
setAuditFormatin interfaceAuditResourceResolver
-
resolveFrom
public java.lang.String[] resolveFrom(org.aspectj.lang.JoinPoint joinPoint, java.lang.Object o)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
public java.lang.String[] resolveFrom(org.aspectj.lang.JoinPoint joinPoint, java.lang.Exception e)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.
-
-