public class EmbeddedRequest extends AbstractRequest
| Modifier and Type | Field and Description |
|---|---|
static String |
EMBEDDED_CLIENT_ID |
REQUEST_ALLOW_DECLINE, REQUEST_ALLOW_REASSIGN, REQUEST_CLIENT_ID, REQUEST_CUSTOM_FIELDS, 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 |
|---|
EmbeddedRequest(String clientId,
AbstractRequest request)
Creates an Embedded signature request using the client ID and the AbstractRequest object
provided.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomField(CustomField field)
Add the custom field to this request.
|
void |
clearCustomFields()
Clears the current custom fields for this request.
|
String |
getClientId()
Set the client ID of the web app you're using to create this embedded signature request.
|
List<CustomField> |
getCustomFields()
Gets the custom fields associated with this request, set when sending the
request.
|
Map<String,String> |
getCustomFieldsMap()
Returns the map of custom fields for the request.
|
String |
getId() |
String |
getMessage() |
Map<String,Serializable> |
getPostFields() |
String |
getRedirectUrl() |
AbstractRequest |
getRequest()
Get the AbstractRequest associated with this Embedded signature request.
|
String |
getSubject() |
String |
getTitle() |
boolean |
hasMessage() |
boolean |
hasRedirectUrl() |
boolean |
hasSubject() |
boolean |
hasTitle() |
boolean |
isTestMode() |
void |
setClientId(String clientId)
Set the client ID of the web app you're using to create this embedded signature request.
|
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 |
setMessage(String message) |
void |
setRedirectUrl(String url) |
void |
setRequest(AbstractRequest request)
Set the AbstractRequest associated with this Embedded signature request.
|
void |
setSubject(String subject) |
void |
setTestMode(boolean testMode) |
void |
setTitle(String title) |
addDocument, addDocument, addFile, addFile, addFileUrl, addMetadata, clearDocuments, getCustomFieldsList, getDocuments, getFileUrls, getIsDeclinable, getMetadata, getMetadata, getOrderMatters, getUxVersion, hasAllowReassign, hasHideTextTags, hasUsePreexistingFields, hasUseTextTags, isAllowReassign, isHidingTextTags, isUsingPreexistingFields, isUsingTextTags, setAllowReassign, setDocuments, setFileUrls, setHideTextTags, setIsDeclinable, setOrderMatters, setUsePreexistingFields, setUseTextTags, setUxVersionadd, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString, toStringpublic static final String EMBEDDED_CLIENT_ID
public EmbeddedRequest(String clientId, AbstractRequest request)
clientId - String client IDrequest - AbstractRequestpublic String getClientId()
getClientId in class AbstractRequestpublic void setClientId(String clientId)
setClientId in class AbstractRequestclientId - String client IDpublic AbstractRequest getRequest()
public void setRequest(AbstractRequest request)
request - AbstractRequestpublic Map<String,Serializable> getPostFields() throws HelloSignException
getPostFields in class AbstractRequestHelloSignExceptionpublic String getTitle()
getTitle in class AbstractRequestpublic void setTitle(String title)
setTitle in class AbstractRequestpublic boolean hasTitle()
hasTitle in class AbstractRequestpublic String getSubject()
getSubject in class AbstractRequestpublic void setSubject(String subject)
setSubject in class AbstractRequestpublic boolean hasSubject()
hasSubject in class AbstractRequestpublic String getMessage()
getMessage in class AbstractRequestpublic void setMessage(String message)
setMessage in class AbstractRequestpublic boolean hasMessage()
hasMessage in class AbstractRequestpublic void setTestMode(boolean testMode)
setTestMode in class AbstractRequestpublic boolean isTestMode()
isTestMode in class AbstractRequestpublic String getRedirectUrl()
getRedirectUrl in class AbstractRequestpublic void setRedirectUrl(String url)
setRedirectUrl in class AbstractRequestpublic boolean hasRedirectUrl()
hasRedirectUrl in class AbstractRequestpublic String getId()
getId in class AbstractRequestpublic void addCustomField(CustomField field)
AbstractRequestaddCustomField in class AbstractRequestfield - CustomFieldpublic void setCustomFieldValue(String fieldNameOrApiId, String value)
AbstractRequestsetCustomFieldValue in class AbstractRequestfieldNameOrApiId - 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 List<CustomField> getCustomFields()
AbstractRequestgetCustomFields in class AbstractRequestpublic Map<String,String> getCustomFieldsMap()
AbstractRequestgetCustomFieldsMap in class AbstractRequestpublic void setCustomFields(Map<String,String> fields)
AbstractRequestsetCustomFields in class AbstractRequestfields - Mappublic void clearCustomFields()
AbstractRequestclearCustomFields in class AbstractRequestCopyright © 2019 HelloSign. All rights reserved.