Annotation Type MultiAttachmentSize


Constraint validation that may be applied to MultiAttachment. Checks that the given range of attachments are selected.
Since:
8.1.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Defines several MultiAttachmentSize constraints on the same element.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
    int
     
     
    int
     
    Class<? extends javax.validation.Payload>[]
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Message that should be used when you only set a maximum count.
    static final String
    Message that should be used when you only set a minimum count.
  • Field Details

    • MESSAGE_MAX_ONLY

      static final String MESSAGE_MAX_ONLY
      Message that should be used when you only set a maximum count.
      See Also:
    • MESSAGE_MIN_ONLY

      static final String MESSAGE_MIN_ONLY
      Message that should be used when you only set a minimum count.
      See Also:
  • Element Details

    • groups

      Class<?>[] groups
      Returns:
      Allows the specification of validation groups, to which this constraint belongs. When not specified, the constraint is placed in the Default group.
      Default:
      {}
    • max

      int max
      Returns:
      Maximum number of files that need to be selected.
      Default:
      2147483647
    • message

      String message
      Returns:
      The default key for creating error messages in case the constraint is violated.
      Default:
      "{de.xima.fc.workflow.validation.constraints.MultiAttachmentSize.message}"
    • min

      int min
      Returns:
      Minimum number of files that need to be selected.
      Default:
      0
    • payload

      Class<? extends javax.validation.Payload>[] payload
      Returns:
      The payload that can be used by clients of the Jakarta Bean Validation API to assign custom payload objects to a constraint.
      Default:
      {}