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_2
dataObj, 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, setUxVersion
add, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString, toString
public static final String EMBEDDED_CLIENT_ID
public EmbeddedRequest(String clientId, AbstractRequest request)
clientId
- String client IDrequest
- AbstractRequestpublic String getClientId()
getClientId
in class AbstractRequest
public void setClientId(String clientId)
setClientId
in class AbstractRequest
clientId
- String client IDpublic AbstractRequest getRequest()
public void setRequest(AbstractRequest request)
request
- AbstractRequestpublic Map<String,Serializable> getPostFields() throws HelloSignException
getPostFields
in class AbstractRequest
HelloSignException
public String getTitle()
getTitle
in class AbstractRequest
public void setTitle(String title)
setTitle
in class AbstractRequest
public boolean hasTitle()
hasTitle
in class AbstractRequest
public String getSubject()
getSubject
in class AbstractRequest
public void setSubject(String subject)
setSubject
in class AbstractRequest
public boolean hasSubject()
hasSubject
in class AbstractRequest
public String getMessage()
getMessage
in class AbstractRequest
public void setMessage(String message)
setMessage
in class AbstractRequest
public boolean hasMessage()
hasMessage
in class AbstractRequest
public void setTestMode(boolean testMode)
setTestMode
in class AbstractRequest
public boolean isTestMode()
isTestMode
in class AbstractRequest
public String getRedirectUrl()
getRedirectUrl
in class AbstractRequest
public void setRedirectUrl(String url)
setRedirectUrl
in class AbstractRequest
public boolean hasRedirectUrl()
hasRedirectUrl
in class AbstractRequest
public String getId()
getId
in class AbstractRequest
public void addCustomField(CustomField field)
AbstractRequest
addCustomField
in class AbstractRequest
field
- CustomFieldpublic void setCustomFieldValue(String fieldNameOrApiId, String value)
AbstractRequest
setCustomFieldValue
in class AbstractRequest
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 List<CustomField> getCustomFields()
AbstractRequest
getCustomFields
in class AbstractRequest
public Map<String,String> getCustomFieldsMap()
AbstractRequest
getCustomFieldsMap
in class AbstractRequest
public void setCustomFields(Map<String,String> fields)
AbstractRequest
setCustomFields
in class AbstractRequest
fields
- Mappublic void clearCustomFields()
AbstractRequest
clearCustomFields
in class AbstractRequest
Copyright © 2019 HelloSign. All rights reserved.