Package org.apereo.inspektr.audit.spi
Interface AuditResourceResolver
- All Known Implementing Classes:
AbstractAuditResourceResolver,FirstParameterAuditResourceResolver,MessageBundleAwareResourceResolver,NullableReturnValueAuditResourceResolver,ObjectToStringResourceResolver,ParametersAsStringResourceResolver,ReturnValueAsStringResourceResolver,ShortenedReturnValueAsStringAuditResourceResolver
public interface AuditResourceResolver
An 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
Modifier and TypeMethodDescriptionString[]resolveFrom(org.aspectj.lang.JoinPoint target, Exception exception) Resolve the auditable resource for an audit-able action that has incurred an exception.String[]resolveFrom(org.aspectj.lang.JoinPoint target, Object returnValue) Resolve the auditable resource.default voidsetAuditFormat(AuditTrailManager.AuditFormats auditFormat)
-
Method Details
-
resolveFrom
Resolve the auditable resource.- Parameters:
target- the join point that contains the arguments.returnValue- The returned value- Returns:
- The resource String.
-
resolveFrom
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
-