Annotation Interface NotUser


@Target(PARAMETER) @Retention(RUNTIME) public @interface NotUser
The annotated element must not be the specified user or member. This constraint will use the TypeAdapters to determine the user or member.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the user or member the element must not be equals to.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the error message that will be displayed if the constraint fails.
  • Element Details

    • value

      String value
      Returns the user or member the element must not be equals to.
      Returns:
      the user or member the element must not be equals to
    • message

      String message
      Returns the error message that will be displayed if the constraint fails.
      Returns:
      the error message
      Default:
      "The given Member or User is invalid as a parameter"