Annotation Interface TrackMessage


@Documented @Target({}) @Retention(RUNTIME) public @interface TrackMessage
This annotation can be used to specify custom change tracking messages.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The condition to check.
    The track message to generate if the given condition is true.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Only use the message if these fields are changed.
    Specify the event on which to use this message.
    Provide tag style if this message is a tag.
  • Element Details

    • message

      String message
      The track message to generate if the given condition is true.
      Returns:
      the message
    • condition

      String condition
      The condition to check.
      Returns:
      the condition
    • on

      Specify the event on which to use this message.
      Returns:
      the event
      Default:
      DEFAULT
    • tag

      String tag
      Provide tag style if this message is a tag.
      • success
      • warning
      • important
      • info
      Returns:
      the tag style name
      Default:
      ""
    • fields

      String[] fields
      Only use the message if these fields are changed.
      Returns:
      the field names
      Default:
      {""}