Class Form


  • public class Form
    extends Object
    Provide a Form value object class.
    Since:
    5.0.0
    • Field Detail

      • id

        public final Long id
        The form id (PK).
      • formCode

        public final String formCode
        The form code.
      • formName

        public final String formName
        The form name.
      • orgId

        public final Long orgId
        The organization client id (PK).
      • formVersionId

        public final Long formVersionId
        The current form version id (PK).
      • description

        public final String description
        The current form versions description property.
      • groupNames

        public final Set<String> groupNames
        The set of associated form group group names.
      • spaceNames

        public final Set<String> spaceNames
        The set of associated space names.
      • submissionExpiryDate

        public final Date submissionExpiryDate
        The date after which all submissions for this form will expire.
        Since:
        19.5.0
      • submissionExpiryDays

        public final Integer submissionExpiryDays
        The number of days after which a submission will expire.
        Since:
        19.5.0
      • versions

        public final Set<String> versions
        The set of associated versions.
        Since:
        5.1.0
    • Constructor Detail

      • Form

        public Form​(com.avoka.fc.core.entity.Form form)
        Create a Form value object with the given form entity parameter.
        Parameters:
        form - the form entity parameter (required)
      • Form

        public Form​(Map fields)
        Create a unit testing Form value object with the given fields.
        Parameters:
        fields - the form entity fields (required)
        Since:
        5.1.4
    • Method Detail

      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.