Package org.apereo.inspektr.audit.spi
Interface AuditResourceResolver
-
- All Known Implementing Classes:
AbstractAuditResourceResolver,FirstParameterAuditResourceResolver,MessageBundleAwareResourceResolver,NullableReturnValueAuditResourceResolver,ObjectToStringResourceResolver,ParametersAsStringResourceResolver,ReturnValueAsStringResourceResolver,ShortenedReturnValueAsStringAuditResourceResolver
public interface AuditResourceResolverAn SPI interface needed to be implemented by individual applications requiring an audit trail record keeping functionality, to provide a current resource on which an audit-able action is being performed.- Since:
- 1.0
- Author:
- Dmitriy Kopylenko
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String[]resolveFrom(org.aspectj.lang.JoinPoint target, java.lang.Exception exception)Resolve the auditable resource for an audit-able action that has incurred an exception.java.lang.String[]resolveFrom(org.aspectj.lang.JoinPoint target, java.lang.Object returnValue)Resolve the auditable resource.default voidsetAuditFormat(AuditTrailManager.AuditFormats auditFormat)
-
-
-
Method Detail
-
resolveFrom
java.lang.String[] resolveFrom(org.aspectj.lang.JoinPoint target, java.lang.Object returnValue)Resolve the auditable resource.- Parameters:
target- the join point that contains the arguments.returnValue- The returned value- Returns:
- The resource String.
-
resolveFrom
java.lang.String[] resolveFrom(org.aspectj.lang.JoinPoint target, java.lang.Exception exception)Resolve the auditable resource for an audit-able action that has incurred an exception.- Parameters:
target- the join point that contains the arguments.exception- The exception incurred when the join point proceeds.- Returns:
- The resource String.
-
setAuditFormat
default void setAuditFormat(AuditTrailManager.AuditFormats auditFormat)
-
-