Class BooleanAuditActionResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String resolveFrom​(org.aspectj.lang.JoinPoint auditableTarget, java.lang.Exception exception, Audit audit)
      Resolve the action for the audit event that has incurred an exception.
      java.lang.String resolveFrom​(org.aspectj.lang.JoinPoint auditableTarget, java.lang.Object retval, Audit audit)
      Resolve the action for the audit event.
      • Methods inherited from class java.lang.Object

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

      • BooleanAuditActionResolver

        public BooleanAuditActionResolver​(java.lang.String successSuffix,
                                          java.lang.String failureSuffix)
        Constructs the BooleanAuditActionResolver with a success suffix and failure suffix. CANNOT be NULL.
        Parameters:
        successSuffix - the suffix to use in the event of a success.
        failureSuffix - the suffix to use in the event of a failure.
    • Method Detail

      • resolveFrom

        public java.lang.String resolveFrom​(org.aspectj.lang.JoinPoint auditableTarget,
                                            java.lang.Object retval,
                                            Audit audit)
        Description copied from interface: AuditActionResolver
        Resolve the action for the audit event.
        retval - The returned value
        audit - the Audit annotation that may contain additional information.
        Returns:
        The resource String
      • resolveFrom

        public java.lang.String resolveFrom​(org.aspectj.lang.JoinPoint auditableTarget,
                                            java.lang.Exception exception,
                                            Audit audit)
        Description copied from interface: AuditActionResolver
        Resolve the action for the audit event that has incurred an exception.
        exception - The exception incurred when the join point proceeds.
        audit - the Audit annotation that may contain additional information.
        Returns:
        The resource String