Class Form

java.lang.Object
com.avoka.tm.vo.Form

public class Form extends Object
Provide a Form value object class.
Since:
5.0.0
  • Constructor Details

    • Form

      public Form()
    • 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(com.avoka.fc.core.entity.Form form, boolean withSpaces)
      Create a Form value object with the given form entity parameter and allow spaces based on withSpaces parameter.
      Parameters:
      form - the form entity parameter (required)
      withSpaces - value based on which the spaces entity is shown.
      Since:
      22.10.4
    • 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 Details

    • toString

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

      public Long getId()
      The form id (PK).
    • getFormCode

      public String getFormCode()
      The form code.
    • getFormName

      public String getFormName()
      The form name.
    • getOrgId

      public Long getOrgId()
      The organization client id (PK).
    • getFormVersionId

      public Long getFormVersionId()
      The current form version id (PK).
    • getDescription

      public String getDescription()
      The current form versions description property.
    • getGroupNames

      public Set<String> getGroupNames()
      The set of associated form group group names.
    • getSpaces

      public List<FormPortal> getSpaces()
      The current form spaces.
    • getSpaceNames

      public Set<String> getSpaceNames()
      The set of associated space names.
    • getSubmissionExpiryDate

      @Deprecated(since="19.11.3") public Date getSubmissionExpiryDate()
      Deprecated.
      use getTxnExpiryDate() instead
      The date after which all submissions for this form will expire.
      Since:
      19.5.0
    • getSubmissionExpiryDays

      @Deprecated(since="19.11.3") public Integer getSubmissionExpiryDays()
      Deprecated.
      use getTxnExpiryDays() instead
      The number of days after which a submission will expire.
      Since:
      19.5.0
    • getTxnExpiryDate

      public Date getTxnExpiryDate()
      The date after which all submissions for this form will expire.
      Since:
      19.11.3
    • getTxnExpiryDays

      public Integer getTxnExpiryDays()
      The number of days after which a submission will expire.
      Since:
      19.11.3
    • getVersions

      public Set<String> getVersions()
      The set of associated versions.
      Since:
      5.1.0