Modifier and Type | Field and Description |
---|---|
protected List<Field> |
_fields
The form fields.
|
protected List<Fieldset> |
_fieldsets
The form fieldsets.
|
protected String |
_id
The form id.
|
protected String |
_label
The form label.
|
protected Set<String> |
_notificationEmails
The form emails.
|
protected String |
_receiptFieldBody
The body of the email.
|
protected String |
_receiptFieldFromAddress
The email address of the sender.
|
protected String |
_receiptFieldId
The field which indicates the email to send an acknowledgement of receipt.
|
protected String |
_receiptFieldSubject
The subject og the email.
|
protected String |
_redirectTo
The id of the page where to redirect to.
|
protected String |
_workflowName
The name of the form's workflow
|
Constructor and Description |
---|
Form()
Default constructor.
|
Form(String id,
String label,
String receiptFieldId,
String receiptFieldFromAddress,
String receiptFieldSubject,
String receiptFieldBody,
Set<String> emails,
String contentId,
Collection<Field> fields,
Collection<Fieldset> fieldsets,
String redirectTo,
String workflowName)
Constructor with parameters.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Field> |
getFieldMap()
Get a copy of the form's fields, indexed by its ID.
|
List<Field> |
getFields()
Get the fields.
|
List<Fieldset> |
getFieldsets()
Get the fieldsets.
|
String |
getId()
Get the id.
|
String |
getLabel()
Get the label.
|
Set<String> |
getNotificationEmails()
Get the emails.
|
String |
getReceiptFieldBody()
Get the receiptFieldBody
|
String |
getReceiptFieldFromAddress()
Get the receiptFieldFromAddress
|
String |
getReceiptFieldId()
Get the acknowledgement of receipt field ID.
|
String |
getReceiptFieldSubject()
Get the receiptFieldSubject
|
String |
getRedirectTo()
the redirectTo
|
String |
getWorkflowName()
Retrieve the name of the workflow of this form's entries
|
void |
setFields(Collection<Field> fields)
Set the fields.
|
void |
setFieldsets(Collection<Fieldset> fieldsets)
Set the fieldsets.
|
void |
setId(String id)
Set the id.
|
void |
setLabel(String label)
Set the label.
|
void |
setNotificationEmails(Set<String> emails)
Set the emails.
|
void |
setReceiptFieldBody(String receiptFieldBody)
Set the receiptFieldBody
|
void |
setReceiptFieldFromAddress(String receiptFieldFromAddress)
Set the receiptFieldFromAddress
|
void |
setReceiptFieldId(String receiptFieldId)
Set the acknowledgement of receipt field ID.
|
void |
setReceiptFieldSubject(String receiptFieldSubject)
Set the receiptFieldSubject
|
void |
setRedirectTo(String redirectTo)
the redirectTo
|
void |
setWorkflowName(String workflowName)
Set the name of the workflow of this form's entries
|
protected String _receiptFieldId
protected String _receiptFieldFromAddress
protected String _receiptFieldSubject
protected String _receiptFieldBody
protected String _redirectTo
protected Set<String> _notificationEmails
protected List<Fieldset> _fieldsets
protected String _workflowName
public Form()
public Form(String id, String label, String receiptFieldId, String receiptFieldFromAddress, String receiptFieldSubject, String receiptFieldBody, Set<String> emails, String contentId, Collection<Field> fields, Collection<Fieldset> fieldsets, String redirectTo, String workflowName)
id
- the form ID.label
- the form label.receiptFieldId
- the acknowledgement of receipt field ID.receiptFieldFromAddress
- The sender address for the receipt mail. Can be emptyreceiptFieldSubject
- The receipt mail subjectreceiptFieldBody
- The receipt mail bodyemails
- the form emails.contentId
- the form content ID.fields
- the form fields.fieldsets
- the form fieldsets.redirectTo
- the id of the page where to redirect toworkflowName
- the name of the workflowpublic String getReceiptFieldId()
public void setReceiptFieldId(String receiptFieldId)
receiptFieldId
- the acknowledgement of receipt field ID.public String getReceiptFieldFromAddress()
public void setReceiptFieldFromAddress(String receiptFieldFromAddress)
receiptFieldFromAddress
- the receiptFieldFromAddress to setpublic String getReceiptFieldBody()
public void setReceiptFieldBody(String receiptFieldBody)
receiptFieldBody
- the receiptFieldBody to setpublic String getReceiptFieldSubject()
public void setReceiptFieldSubject(String receiptFieldSubject)
receiptFieldSubject
- the receiptFieldSubject to setpublic Set<String> getNotificationEmails()
public void setNotificationEmails(Set<String> emails)
emails
- the emails to setpublic void setFields(Collection<Field> fields)
fields
- the fields to setpublic Map<String,Field> getFieldMap()
public List<Fieldset> getFieldsets()
public void setFieldsets(Collection<Fieldset> fieldsets)
fieldsets
- the fieldsets to setpublic String getRedirectTo()
public void setRedirectTo(String redirectTo)
redirectTo
- the redirectTo to setpublic String getWorkflowName()
public void setWorkflowName(String workflowName)
workflowName
- the name of the workflow to use