Package org.ametys.plugins.forms.data
Class Answer
java.lang.Object
org.ametys.plugins.forms.data.Answer
Object representing an answer with common attribute for each forms
-
Constructor Summary
ConstructorDescriptionAnswer
(String id, Long number, String formId, String formLabel, Date creationDate, String workflowName, Integer workflowId, Boolean inQueue, UserIdentity user) The constructorAnswer
(String id, Long number, String formId, String formLabel, Date creationDate, String workflowName, Integer workflowId, UserIdentity user) The constructor -
Method Summary
-
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 answernumber
- the number of the answerformId
- the form idformLabel
- the form labelcreationDate
- the creation dateworkflowName
- the workflow nameworkflowId
- the workflow iduser
- 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 answernumber
- the number of the answerformId
- the form idformLabel
- the form labelcreationDate
- the creation dateworkflowName
- the workflow nameworkflowId
- the workflow idinQueue
- is the answer is in queueuser
- the user
-
-
Method Details
-
getId
Get the id of the answer- Returns:
- the id
-
getNumber
Get the number of the answer- Returns:
- the number
-
getFormId
Get the form id- Returns:
- the form id
-
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
-