Package com.dropbox.core.v2.filerequests
Class DbxUserFileRequestsRequests
- java.lang.Object
- 
- com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests
 
- 
 public class DbxUserFileRequestsRequests extends java.lang.ObjectRoutes in namespace "file_requests".
- 
- 
Constructor SummaryConstructors Constructor Description DbxUserFileRequestsRequests(DbxRawClientV2 client)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CountFileRequestsResultcount()Returns the total number of file requests owned by this user.FileRequestcreate(java.lang.String title, java.lang.String destination)Creates a file request for this user.CreateBuildercreateBuilder(java.lang.String title, java.lang.String destination)Creates a file request for this user.DeleteFileRequestsResultdelete(java.util.List<java.lang.String> ids)Delete a batch of closed file requests.DeleteAllClosedFileRequestsResultdeleteAllClosed()Delete all closed file requests owned by this user.FileRequestget(java.lang.String id)Returns the specified file request.ListFileRequestsResultlist()Returns a list of file requests owned by this user.ListFileRequestsV2ResultlistContinue(java.lang.String cursor)Once a cursor has been retrieved fromlistV2(long), use this to paginate through all file requests.ListFileRequestsV2ResultlistV2()Returns a list of file requests owned by this user.ListFileRequestsV2ResultlistV2(long limit)Returns a list of file requests owned by this user.FileRequestupdate(java.lang.String id)Update a file request.UpdateBuilderupdateBuilder(java.lang.String id)Update a file request.
 
- 
- 
- 
Constructor Detail- 
DbxUserFileRequestsRequestspublic DbxUserFileRequestsRequests(DbxRawClientV2 client) 
 
- 
 - 
Method Detail- 
countpublic CountFileRequestsResult count() throws CountFileRequestsErrorException, DbxException Returns the total number of file requests owned by this user. Includes both open and closed file requests.- Returns:
- Result for count().
- Throws:
- CountFileRequestsErrorException
- DbxException
 
 - 
createpublic FileRequest create(java.lang.String title, java.lang.String destination) throws CreateFileRequestErrorException, DbxException Creates a file request for this user.The default values for the optional request parameters will be used. See CreateBuilderfor more details.- Parameters:
- 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.
- Returns:
- A file request for receiving files into the user's Dropbox account.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
- CreateFileRequestErrorException
- DbxException
 
 - 
createBuilderpublic CreateBuilder createBuilder(java.lang.String title, java.lang.String destination) Creates a file request for this user.- Parameters:
- 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.
- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
deletepublic DeleteFileRequestsResult delete(java.util.List<java.lang.String> ids) throws DeleteFileRequestErrorException, DbxException Delete a batch of closed file requests.- Parameters:
- ids- List IDs of the file requests to delete. Must not contain a- nullitem and not be- null.
- Returns:
- Result for delete(List).
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
- DeleteFileRequestErrorException
- DbxException
 
 - 
deleteAllClosedpublic DeleteAllClosedFileRequestsResult deleteAllClosed() throws DeleteAllClosedFileRequestsErrorException, DbxException Delete all closed file requests owned by this user.- Returns:
- Result for deleteAllClosed().
- Throws:
- DeleteAllClosedFileRequestsErrorException
- DbxException
 
 - 
getpublic FileRequest get(java.lang.String id) throws GetFileRequestErrorException, DbxException Returns the specified file request.- Parameters:
- 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.
- Returns:
- A file request for receiving files into the user's Dropbox account.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
- GetFileRequestErrorException
- DbxException
 
 - 
listV2public ListFileRequestsV2Result listV2() throws ListFileRequestsErrorException, DbxException Returns a list of file requests owned by this user. For apps with the app folder permission, this will only return file requests with destinations in the app folder.The limitrequest parameter will default to1000L(seelistV2(long)).- Returns:
- Result for listV2(long)andlistContinue(String).
- Throws:
- ListFileRequestsErrorException
- DbxException
 
 - 
listV2public ListFileRequestsV2Result listV2(long limit) throws ListFileRequestsErrorException, DbxException Returns a list of file requests owned by this user. For apps with the app folder permission, this will only return file requests with destinations in the app folder.- Parameters:
- limit- The maximum number of file requests that should be returned per request.
- Returns:
- Result for listV2(long)andlistContinue(String).
- Throws:
- ListFileRequestsErrorException
- DbxException
 
 - 
listpublic ListFileRequestsResult list() throws ListFileRequestsErrorException, DbxException Returns a list of file requests owned by this user. For apps with the app folder permission, this will only return file requests with destinations in the app folder.- Returns:
- Result for list().
- Throws:
- ListFileRequestsErrorException
- DbxException
 
 - 
listContinuepublic ListFileRequestsV2Result listContinue(java.lang.String cursor) throws ListFileRequestsContinueErrorException, DbxException Once a cursor has been retrieved fromlistV2(long), use this to paginate through all file requests. The cursor must come from a previous call tolistV2(long)orlistContinue(String).- Parameters:
- cursor- The cursor returned by the previous API call specified in the endpoint description. Must not be- null.
- Returns:
- Result for listV2(long)andlistContinue(String).
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
- ListFileRequestsContinueErrorException
- DbxException
 
 - 
updatepublic FileRequest update(java.lang.String id) throws UpdateFileRequestErrorException, DbxException Update a file request.The default values for the optional request parameters will be used. See UpdateBuilderfor more details.- Parameters:
- 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.
- Returns:
- A file request for receiving files into the user's Dropbox account.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
- UpdateFileRequestErrorException
- DbxException
 
 - 
updateBuilderpublic UpdateBuilder updateBuilder(java.lang.String id) Update a file request.- Parameters:
- 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.
- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 
-