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 Type
    Method
    Description
    resolveFrom(org.aspectj.lang.JoinPoint target, Exception exception)
    Resolve the auditable resource for an audit-able action that has incurred an exception.
    resolveFrom(org.aspectj.lang.JoinPoint target, Object returnValue)
    Resolve the auditable resource.
    default void
     
  • Method Details

    • resolveFrom

      String[] resolveFrom(org.aspectj.lang.JoinPoint target, Object returnValue)
      Resolve the auditable resource.
      Parameters:
      target - the join point that contains the arguments.
      returnValue - The returned value
      Returns:
      The resource String.
    • resolveFrom

      String[] resolveFrom(org.aspectj.lang.JoinPoint target, 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)