public class TemplateSignatureRequest extends AbstractRequest
REQUEST_ALLOW_DECLINE, REQUEST_CLIENT_ID, REQUEST_HIDE_TEXT_TAGS, REQUEST_MESSAGE, REQUEST_METADATA, REQUEST_REDIRECT_URL, REQUEST_SUBJECT, REQUEST_TEST_MODE, REQUEST_TITLE, REQUEST_USE_PREEXISTING_FIELDS, REQUEST_USE_TEXT_TAGS, REQUEST_UX_VERSION, UX_VERSION_1, UX_VERSION_2dataObj, warnings| Constructor and Description |
|---|
TemplateSignatureRequest() |
TemplateSignatureRequest(List<Template> templates)
Convenience constructor that accepts a list of Templates.
|
TemplateSignatureRequest(Template template)
Convenience constructor that accepts a single Template.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomField(CustomField field)
Add the custom field to this request.
|
void |
addTemplateId(String id)
Adds the template ID to be used in this request.
|
void |
addTemplateId(String id,
Integer index)
Add the template ID to be used at the specified index.
|
void |
clearCCs()
Clears the list of current CC email addresses.
|
void |
clearCustomFields()
Clears the current custom fields for this request.
|
Map<String,String> |
getCCs()
Returns a reference to the map of current roles to CC email addresses.
|
Map<String,String> |
getCustomFields()
Returns the map of custom fields for the template.
|
List<CustomField> |
getCustomFieldsList()
Returns a list of CustomField objects for this template.
|
String |
getId() |
Map<String,Serializable> |
getPostFields()
Internal method used to retrieve the necessary POST fields to submit the
signature request.
|
Map<String,Signer> |
getSigners()
Returns a reference to the signers list.
|
String |
getTemplateId()
Get the template ID that will be used with this request.
|
List<String> |
getTemplateIds()
Get the list of template IDs that are used for this request.
|
boolean |
hasHideTextTags()
Not implemented for templates.
|
boolean |
hasUseTextTags()
Not implemented for templates.
|
Boolean |
isHidingTextTags()
Not implemented for templates.
|
Boolean |
isUsingTextTags()
Not implemented for templates.
|
void |
removeSignerByEmail(String email)
Removes signer(s) from this request by email address.
|
void |
setCC(String role,
String email)
Sets the CC email address for the provided role.
|
void |
setCCs(Map<String,String> newCCs)
Overwrites the map of roles to CC email addresses.
|
void |
setCustomFields(Map<String,String> fields)
Overwrites the current map of custom fields to the provided map.
|
void |
setCustomFieldValue(String fieldNameOrApiId,
String value)
Adds the value to fill in for a custom field with the given field name.
|
void |
setHideTextTags(boolean hideTextTags)
Not implemented for templates.
|
void |
setSigner(String role,
String email,
String name)
Adds the signer to the list of signers for this request.
|
void |
setSigners(Map<String,Signer> signers)
Overwrites the current list of signers for this request with the given
list.
|
void |
setTemplateId(String id)
Set the template ID of the template that should be used with this
request.
|
void |
setUseTextTags(boolean useTextTags)
Not implemented for templates.
|
addDocument, addDocument, addFile, addFile, addFileUrl, addMetadata, clearDocuments, getClientId, getDocuments, getFileUrls, getIsDeclinable, getMessage, getMetadata, getMetadata, getOrderMatters, getRedirectUrl, getSubject, getTitle, getUxVersion, hasMessage, hasRedirectUrl, hasSubject, hasTitle, hasUsePreexistingFields, isTestMode, isUsingPreexistingFields, setClientId, setDocuments, setFileUrls, setIsDeclinable, setMessage, setOrderMatters, setRedirectUrl, setSubject, setTestMode, setTitle, setUsePreexistingFields, setUxVersionadd, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString, toStringpublic TemplateSignatureRequest()
public TemplateSignatureRequest(Template template) throws HelloSignException
template - TemplateHelloSignException - thrown if there is a problem adding the
template ID.public TemplateSignatureRequest(List<Template> templates) throws HelloSignException
templates - ListHelloSignException - thrown if there is a problem adding the
template ID.public Map<String,String> getCCs()
public void setCCs(Map<String,String> newCCs)
newCCs - Mappublic void setCC(String role, String email)
role - Stringemail - Stringpublic void clearCCs()
public void setSigner(String role, String email, String name) throws HelloSignException
role - Stringemail - Stringname - StringHelloSignException - thrown if there is a problem setting the
signer.public Map<String,Signer> getSigners()
public void setSigners(Map<String,Signer> signers)
signers - Listpublic void removeSignerByEmail(String email) throws HelloSignException
email - StringHelloSignException - if there is a problem removing the signer by
email.public void addCustomField(CustomField field)
field - CustomFieldpublic void setCustomFieldValue(String fieldNameOrApiId, String value)
fieldNameOrApiId - String name (or "Field Label") of the custom field
to be filled in. The "api_id" can also be used instead of the name.value - String valuepublic Map<String,String> getCustomFields()
public List<CustomField> getCustomFieldsList()
public void setCustomFields(Map<String,String> fields)
fields - Mappublic void clearCustomFields()
public void setTemplateId(String id) throws HelloSignException
id - StringHelloSignException - thrown if the template ID cannot be added.public String getTemplateId() throws HelloSignException
HelloSignException - thrown if there is a problem parsing the
backing JSON object.public void addTemplateId(String id) throws HelloSignException
id - StringHelloSignException - thrown if there is a problem parsing the
backing JSON object.public void addTemplateId(String id, Integer index) throws HelloSignException
id - Stringindex - IntegerHelloSignException - thrown if therer is a problem adding the given
template ID.public List<String> getTemplateIds()
public Map<String,Serializable> getPostFields() throws HelloSignException
getPostFields in class AbstractRequestHelloSignException - thrown if there is a problem parsing the POST
fields.public String getId()
getId in class AbstractRequestpublic boolean hasUseTextTags()
hasUseTextTags in class AbstractRequestpublic Boolean isUsingTextTags()
isUsingTextTags in class AbstractRequestpublic void setUseTextTags(boolean useTextTags)
setUseTextTags in class AbstractRequestpublic boolean hasHideTextTags()
hasHideTextTags in class AbstractRequestpublic Boolean isHidingTextTags()
isHidingTextTags in class AbstractRequestpublic void setHideTextTags(boolean hideTextTags)
setHideTextTags in class AbstractRequestCopyright © 2019 HelloSign. All rights reserved.