@BoxResourceType(value="sign_request") public class BoxSignRequest extends BoxResource
Unless otherwise noted, the methods in this class can throw an unchecked {@link BoxAPIException} (unchecked meaning that the compiler won't force you to handle it) if an error occurs. If you wish to implement custom error handling for errors related to the Box REST API, you should capture this exception explicitly.
Modifier and Type | Class and Description |
---|---|
static class |
BoxSignRequest.BoxSignRequestStatus
Represents a status of the sign request.
|
class |
BoxSignRequest.Info
Contains information about the Sign Request.
|
Modifier and Type | Field and Description |
---|---|
static URLTemplate |
SIGN_REQUEST_CANCEL_URL_TEMPLATE
The URL template used to cancel an existing Sign Request.
|
static URLTemplate |
SIGN_REQUEST_RESEND_URL_TEMPLATE
The URL template used to resend an existing Sign Request.
|
static URLTemplate |
SIGN_REQUEST_URL_TEMPLATE
The URL template used for Sign Request operations with a given ID.
|
static URLTemplate |
SIGN_REQUESTS_URL_TEMPLATE
The URL template used for operation Sign Request operations.
|
Constructor and Description |
---|
BoxSignRequest(BoxAPIConnection api,
String id)
Constructs a BoxResource for a resource with a given ID.
|
Modifier and Type | Method and Description |
---|---|
BoxSignRequest.Info |
cancel()
Cancels a sign request if it has not yet been signed or declined.
|
static BoxSignRequest.Info |
createSignRequest(BoxAPIConnection api,
List<BoxSignRequestFile> sourceFiles,
List<BoxSignRequestSigner> signers,
String parentFolderId)
Used to create a new sign request.
|
static BoxSignRequest.Info |
createSignRequest(BoxAPIConnection api,
List<BoxSignRequestFile> sourceFiles,
List<BoxSignRequestSigner> signers,
String parentFolderId,
BoxSignRequestCreateParams optionalParams)
Used to create a new sign request with optional parameters.
|
static BoxSignRequest.Info |
createSignRequestFromFiles(BoxAPIConnection api,
List<BoxFile.Info> sourceFiles,
List<BoxSignRequestSigner> signers,
String parentFolderId)
Used to create a new sign request using BoxFile.Info models.
|
static BoxSignRequest.Info |
createSignRequestFromFiles(BoxAPIConnection api,
List<BoxFile.Info> sourceFiles,
List<BoxSignRequestSigner> signers,
String parentFolderId,
BoxSignRequestCreateParams optionalParams)
Used to create a new sign request using existing BoxFile.Info models.
|
static Iterable<BoxSignRequest.Info> |
getAll(BoxAPIConnection api,
int limit,
String... fields)
Returns all the sign requests.
|
static Iterable<BoxSignRequest.Info> |
getAll(BoxAPIConnection api,
String... fields)
Returns all the sign requests.
|
BoxSignRequest.Info |
getInfo(String... fields)
Returns information about this sign request.
|
void |
resend()
Attempts to resend a Sign Request to all signers that have not signed yet.
|
equals, getAPI, getID, getResourceType, hashCode
public static final URLTemplate SIGN_REQUESTS_URL_TEMPLATE
public static final URLTemplate SIGN_REQUEST_URL_TEMPLATE
public static final URLTemplate SIGN_REQUEST_CANCEL_URL_TEMPLATE
public static final URLTemplate SIGN_REQUEST_RESEND_URL_TEMPLATE
public BoxSignRequest(BoxAPIConnection api, String id)
api
- the API connection to be used by the resource.id
- the ID of the resource.public static BoxSignRequest.Info createSignRequestFromFiles(BoxAPIConnection api, List<BoxFile.Info> sourceFiles, List<BoxSignRequestSigner> signers, String parentFolderId, BoxSignRequestCreateParams optionalParams)
api
- the API connection to be used by the created user.sourceFiles
- the list of BoxFile.Info files to create a signing document from.signers
- the list of signers for this sign request.parentFolderId
- the id of the destination folder to place sign request specific data in.optionalParams
- the optional parameters.public static BoxSignRequest.Info createSignRequestFromFiles(BoxAPIConnection api, List<BoxFile.Info> sourceFiles, List<BoxSignRequestSigner> signers, String parentFolderId)
api
- the API connection to be used by the created user.sourceFiles
- the list of BoxFile.Info files to create a signing document from.signers
- the list of signers for this sign request.parentFolderId
- the id of the destination folder to place sign request specific data in.public static BoxSignRequest.Info createSignRequest(BoxAPIConnection api, List<BoxSignRequestFile> sourceFiles, List<BoxSignRequestSigner> signers, String parentFolderId)
api
- the API connection to be used by the created user.sourceFiles
- the list of files to a signing document from.signers
- the list of signers for this sign request.parentFolderId
- the id of the destination folder to place sign request specific data in.public static BoxSignRequest.Info createSignRequest(BoxAPIConnection api, List<BoxSignRequestFile> sourceFiles, List<BoxSignRequestSigner> signers, String parentFolderId, BoxSignRequestCreateParams optionalParams)
api
- the API connection to be used by the created user.signers
- the list of signers for this sign request.sourceFiles
- the list of files to a signing document from.parentFolderId
- the id of the destination folder to place sign request specific data in.optionalParams
- the optional parameters.public static Iterable<BoxSignRequest.Info> getAll(BoxAPIConnection api, String... fields)
api
- the API connection to be used by the resource.fields
- the fields to retrieve.public static Iterable<BoxSignRequest.Info> getAll(BoxAPIConnection api, int limit, String... fields)
api
- the API connection to be used by the resource.limit
- the limit of items per single response. The default value is 100.fields
- the fields to retrieve.public BoxSignRequest.Info getInfo(String... fields)
fields
- the fields to retrieve.public BoxSignRequest.Info cancel()
public void resend()