Class Answer

java.lang.Object
org.ametys.plugins.forms.data.Answer

public class Answer extends Object
Object representing an answer with common attribute for each forms
  • Constructor Details

    • Answer

      public Answer(String id, Long number, String formId, String formLabel, Date creationDate, String workflowName, Integer workflowId, UserIdentity user)
      The constructor
      Parameters:
      id - the id of the answer
      number - the number of the answer
      formId - the form id
      formLabel - the form label
      creationDate - the creation date
      workflowName - the workflow name
      workflowId - the workflow id
      user - the user
    • Answer

      public Answer(String id, Long number, String formId, String formLabel, Date creationDate, String workflowName, Integer workflowId, Boolean inQueue, UserIdentity user)
      The constructor
      Parameters:
      id - the id of the answer
      number - the number of the answer
      formId - the form id
      formLabel - the form label
      creationDate - the creation date
      workflowName - the workflow name
      workflowId - the workflow id
      inQueue - is the answer is in queue
      user - the user
  • Method Details

    • getId

      public String getId()
      Get the id of the answer
      Returns:
      the id
    • getNumber

      public Long getNumber()
      Get the number of the answer
      Returns:
      the number
    • getFormId

      public String getFormId()
      Get the form id
      Returns:
      the form id
    • getFormLabel

      public String getFormLabel()
      Get the form label
      Returns:
      the form label
    • getCreationDate

      Get the creation date
      Returns:
      the creation date
    • getWorkflowName

      Get the workflow name
      Returns:
      the workflow workflow
    • getWorkflowId

      Get the workflow id. Can be null.
      Returns:
      the workflow id. Can be null.
    • isInQueue

      true is the answer is in queue
      Returns:
      true is the answer is in queue. Return empty is the answer belong to a form with no queue
    • getUser

      Get the user of the answer
      Returns:
      the user