public class UnclaimedDraft extends AbstractRequest
addFile(File)
and addFile(File, int)
methods to add files to be claimed.Modifier and Type | Field and Description |
---|---|
static String |
UNCLAIMED_DRAFT_CLAIM_URL |
static String |
UNCLAIMED_DRAFT_IS_FOR_EMBEDDED_SIGNING |
static String |
UNCLAIMED_DRAFT_KEY |
static String |
UNCLAIMED_DRAFT_REQUESTER_EMAIL |
static String |
UNCLAIMED_DRAFT_SIGNATURE_REQUEST_ID |
static String |
UNCLAIMED_DRAFT_TYPE |
REQUEST_HIDE_TEXT_TAGS, REQUEST_MESSAGE, REQUEST_METADATA, REQUEST_REDIRECT_URL, REQUEST_SUBJECT, REQUEST_TEST_MODE, REQUEST_TITLE, REQUEST_USE_TEXT_TAGS
dataObj
Constructor and Description |
---|
UnclaimedDraft()
Default constructor.
|
UnclaimedDraft(AbstractRequest request)
Creates an unclaimed draft with the provided AbstractRequest, and defaults
the type to
UnclaimedDraftType.send_document . |
UnclaimedDraft(AbstractRequest request,
UnclaimedDraftType type)
Creates an unclaimed draft with the provided AbstractRequest and
UnclaimedDraftType.
|
UnclaimedDraft(org.json.JSONObject json)
Constructor to provide a way to store the API response JSON information.
|
Modifier and Type | Method and Description |
---|---|
void |
addFile(File file)
Adds a file to the unclaimed draft.
|
void |
addFile(File file,
int order)
Adds a file to the unclaimed draft at the given document order.
|
void |
clearFiles()
Removes all files from this request.
|
String |
getClaimUrl()
Gets the claim URL if the draft has been created.
|
String |
getId() |
String |
getMessage() |
Map<String,Serializable> |
getPostFields() |
String |
getRedirectUrl() |
AbstractRequest |
getRequest()
Gets the associated request object.
|
String |
getRequesterEmail() |
String |
getSignatureRequestId() |
String |
getSubject() |
String |
getTitle() |
UnclaimedDraftType |
getType()
Gets the unclaimed draft type.
|
String |
getTypeString()
Gets the string value of the unclaimed draft type.
|
boolean |
hasClaimUrl()
Returns true if the draft has been created and a claim URL exists.
|
boolean |
hasMessage() |
boolean |
hasRedirectUrl() |
boolean |
hasRequesterEmail() |
boolean |
hasSignatureRequestId() |
boolean |
hasSubject() |
boolean |
hasTitle() |
boolean |
isForEmbeddedSigning()
Returns true if this Unclaimed Draft is to be embedded.
|
boolean |
isTestMode() |
void |
setIsForEmbeddedSigning(boolean b)
Sets whether this Unclaimed Draft is to be embedded.
|
void |
setMessage(String message) |
void |
setRedirectUrl(String url) |
void |
setRequest(AbstractRequest request)
Sets the associated request object from which this unclaimed draft will
be created.
|
void |
setRequesterEmail(String email) |
void |
setSubject(String subject) |
void |
setTestMode(boolean testMode) |
void |
setTitle(String title) |
void |
setType(UnclaimedDraftType type)
Sets the unclaimed draft type.
|
addDocument, addDocument, addFile, addFileUrl, addMetadata, clearDocuments, getDocuments, getFileUrls, getMetadata, getMetadata, getOrderMatters, hasHideTextTags, hasUseTextTags, isHidingTextTags, isUsingTextTags, setDocuments, setFileUrls, setHideTextTags, setOrderMatters, setUseTextTags
add, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, has, hasString, set, toString
public static final String UNCLAIMED_DRAFT_KEY
public static final String UNCLAIMED_DRAFT_CLAIM_URL
public static final String UNCLAIMED_DRAFT_TYPE
public static final String UNCLAIMED_DRAFT_REQUESTER_EMAIL
public static final String UNCLAIMED_DRAFT_IS_FOR_EMBEDDED_SIGNING
public static final String UNCLAIMED_DRAFT_SIGNATURE_REQUEST_ID
public UnclaimedDraft()
public UnclaimedDraft(AbstractRequest request)
UnclaimedDraftType.send_document
.request
- AbstractRequestpublic UnclaimedDraft(AbstractRequest request, UnclaimedDraftType type)
request
- AbstractRequesttype
- UnclaimedDraftTypepublic UnclaimedDraft(org.json.JSONObject json) throws HelloSignException
json
- JSONObject API response objectHelloSignException
public void setType(UnclaimedDraftType type)
type
- UnclaimedDraft.UNCLAIMED_DRAFT_TYPEpublic String getTypeString()
public UnclaimedDraftType getType()
public void setRequest(AbstractRequest request)
request
- AbstractRequestpublic AbstractRequest getRequest()
public String getClaimUrl()
public boolean hasClaimUrl()
public void addFile(File file) throws HelloSignException
addFile
in class AbstractRequest
file
- FileHelloSignException
public void addFile(File file, int order) throws HelloSignException
file
- Fileorder
- intHelloSignException
public void clearFiles() throws HelloSignException
HelloSignException
public boolean isForEmbeddedSigning()
public void setIsForEmbeddedSigning(boolean b)
b
- booleanpublic boolean hasSignatureRequestId()
public String getSignatureRequestId()
public Map<String,Serializable> getPostFields() throws HelloSignException
getPostFields
in class AbstractRequest
HelloSignException
public String getRequesterEmail()
public boolean hasRequesterEmail()
public void setRequesterEmail(String email)
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
Copyright © 2015 HelloSign. All rights reserved.