Annotation Interface Audit


@Retention(RUNTIME) @Target(METHOD) public @interface Audit
Annotation that enables an audit trail for the annotated method and collects some data for it. The actual storing of the audit information happens in the AuditAnnotationAspect.
Author:
Armin Müller
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The type of users for which the audit information should be recorded.
    The type of the audit event (e.g.
    The message to log in the audit trail.
  • Element Details

    • eventType

      AuditEventType eventType
      The type of the audit event (e.g. CREATE or DELETE).
      Returns:
      the audit event type
      Default:
      UNKNOWN
    • auditFor

      AuditUserType auditFor
      The type of users for which the audit information should be recorded.
      Returns:
      the audit user type
      Default:
      ALL
    • message

      String message
      The message to log in the audit trail.
      Returns:
      the message
      Default:
      ""