Class NullableReturnValueAuditResourceResolver

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.function.Function<java.lang.String[],​java.lang.String[]> resourcePostProcessor  
    • 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.
      void setAuditFormat​(AuditTrailManager.AuditFormats auditFormat)  
      void setResourcePostProcessor​(java.util.function.Function<java.lang.String[],​java.lang.String[]> resourcePostProcessor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resourcePostProcessor

        protected 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)
      • resolveFrom

        public java.lang.String[] resolveFrom​(org.aspectj.lang.JoinPoint joinPoint,
                                              java.lang.Object o)
        Description copied from interface: AuditResourceResolver
        Resolve the auditable resource.
        Specified by:
        resolveFrom in interface AuditResourceResolver
        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: AuditResourceResolver
        Resolve the auditable resource for an audit-able action that has incurred an exception.
        Specified by:
        resolveFrom in interface AuditResourceResolver
        Parameters:
        joinPoint - the join point that contains the arguments.
        e - The exception incurred when the join point proceeds.
        Returns:
        The resource String.