Class RequiredAttachment

java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
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:
  • Field Details

    • 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:
    • SUBMIT_METHOD_Electronic

      public static final String SUBMIT_METHOD_Electronic
      Indicates that the user will have to attach files electronically
      See Also:
    • 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:
  • Constructor Details

    • RequiredAttachment

      public RequiredAttachment()
  • Method Details

    • 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