public class DbxUserFileRequestsRequests
extends java.lang.Object
Constructor and Description |
---|
DbxUserFileRequestsRequests(DbxRawClientV2 client) |
Modifier and Type | Method and Description |
---|---|
CountFileRequestsResult |
count()
Returns the total number of file requests owned by this user.
|
FileRequest |
create(java.lang.String title,
java.lang.String destination)
Creates a file request for this user.
|
CreateBuilder |
createBuilder(java.lang.String title,
java.lang.String destination)
Creates a file request for this user.
|
DeleteFileRequestsResult |
delete(java.util.List<java.lang.String> ids)
Delete a batch of closed file requests.
|
DeleteAllClosedFileRequestsResult |
deleteAllClosed()
Delete all closed file requests owned by this user.
|
FileRequest |
get(java.lang.String id)
Returns the specified file request.
|
ListFileRequestsResult |
list()
Returns a list of file requests owned by this user.
|
ListFileRequestsV2Result |
listContinue(java.lang.String cursor)
Once a cursor has been retrieved from
listV2(long) , use this to paginate through
all file requests. |
ListFileRequestsV2Result |
listV2()
Returns a list of file requests owned by this user.
|
ListFileRequestsV2Result |
listV2(long limit)
Returns a list of file requests owned by this user.
|
FileRequest |
update(java.lang.String id)
Update a file request.
|
UpdateBuilder |
updateBuilder(java.lang.String id)
Update a file request.
|
public DbxUserFileRequestsRequests(DbxRawClientV2 client)
public CountFileRequestsResult count() throws CountFileRequestsErrorException, DbxException
count()
.CountFileRequestsErrorException
DbxException
public FileRequest create(java.lang.String title, java.lang.String destination) throws CreateFileRequestErrorException, DbxException
The default values for the optional request parameters will be used.
See CreateBuilder
for more details.
title
- The title of the file request. Must not be empty. Must have
length of at least 1 and not be null
.destination
- The path of the folder in the Dropbox where uploaded
files will be sent. For apps with the app folder permission, this
will be relative to the app folder. Must match pattern "/(.|[\\r\\n])*
" and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.CreateFileRequestErrorException
DbxException
public CreateBuilder createBuilder(java.lang.String title, java.lang.String destination)
title
- The title of the file request. Must not be empty. Must have
length of at least 1 and not be null
.destination
- The path of the folder in the Dropbox where uploaded
files will be sent. For apps with the app folder permission, this
will be relative to the app folder. Must match pattern "/(.|[\\r\\n])*
" and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public DeleteFileRequestsResult delete(java.util.List<java.lang.String> ids) throws DeleteFileRequestErrorException, DbxException
ids
- List IDs of the file requests to delete. Must not contain a
null
item and not be null
.delete(List)
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DeleteFileRequestErrorException
DbxException
public DeleteAllClosedFileRequestsResult deleteAllClosed() throws DeleteAllClosedFileRequestsErrorException, DbxException
deleteAllClosed()
.DeleteAllClosedFileRequestsErrorException
DbxException
public FileRequest get(java.lang.String id) throws GetFileRequestErrorException, DbxException
id
- The ID of the file request to retrieve. Must have length of at
least 1, match pattern "[-_0-9a-zA-Z]+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.GetFileRequestErrorException
DbxException
public ListFileRequestsV2Result listV2() throws ListFileRequestsErrorException, DbxException
The limit
request parameter will default to 1000L
(see listV2(long)
).
listV2(long)
and
listContinue(String)
.ListFileRequestsErrorException
DbxException
public ListFileRequestsV2Result listV2(long limit) throws ListFileRequestsErrorException, DbxException
limit
- The maximum number of file requests that should be returned
per request.listV2(long)
and
listContinue(String)
.ListFileRequestsErrorException
DbxException
public ListFileRequestsResult list() throws ListFileRequestsErrorException, DbxException
list()
.ListFileRequestsErrorException
DbxException
public ListFileRequestsV2Result listContinue(java.lang.String cursor) throws ListFileRequestsContinueErrorException, DbxException
listV2(long)
, use this to paginate through
all file requests. The cursor must come from a previous call to listV2(long)
or listContinue(String)
.cursor
- The cursor returned by the previous API call specified in
the endpoint description. Must not be null
.listV2(long)
and
listContinue(String)
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.ListFileRequestsContinueErrorException
DbxException
public FileRequest update(java.lang.String id) throws UpdateFileRequestErrorException, DbxException
The default values for the optional request parameters will be used.
See UpdateBuilder
for more details.
id
- The ID of the file request to update. Must have length of at
least 1, match pattern "[-_0-9a-zA-Z]+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.UpdateFileRequestErrorException
DbxException
public UpdateBuilder updateBuilder(java.lang.String id)
id
- The ID of the file request to update. Must have length of at
least 1, match pattern "[-_0-9a-zA-Z]+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.