Class RequiredAttachment

  • All Implemented Interfaces:
    IEntity, Serializable, org.apache.cayenne.DataObject, org.apache.cayenne.Persistent, org.apache.cayenne.Validating

    public class RequiredAttachment
    extends _RequiredAttachment
    Provides an entity representing a SmartForm Manager managed attachment that is presented to the user after submission. It does not store the actual uploads but is only a marker of an attachment that is requested of the user.
    See Also:
    Serialized Form
    • Field Detail

      • MAX_SIZE_FORMATTED_PROPERTY

        public static final String MAX_SIZE_FORMATTED_PROPERTY
        An auxiliary property to get a formatted string describing the maximum attachment size
        See Also:
        Constant Field Values
      • SUBMIT_METHOD_Electronic

        public static final String SUBMIT_METHOD_Electronic
        Indicates that the user will have to attach files electronically
        See Also:
        Constant Field Values
      • SUBMIT_METHOD_Manual

        public static final String SUBMIT_METHOD_Manual
        Indicates that the user will have to send in attachments via a manual process (e.g. fax)
        See Also:
        Constant Field Values
    • Constructor Detail

      • RequiredAttachment

        public RequiredAttachment()
    • Method Detail

      • isSubmitElectronic

        public boolean isSubmitElectronic()
        Return whether the user will have to attach a file for this attachment electronically
        Returns:
        true if the submit method is SUBMIT_METHOD_Electronic
      • isSubmitManual

        public boolean isSubmitManual()
        Return whether the user will have send in attachments manually (e.g. using fax)
        Returns:
        true if the submit method is SUBMIT_METHOD_Manual
      • getMaxSizeFormatted

        public String getMaxSizeFormatted()
        Return the maximum size as a formatted string
        Returns:
        the formatted maximum size
        Since:
        4.1.0