public class FileRequestsManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileRequestsManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
FileRequestsManager() |
protected |
FileRequestsManager(FileRequestsManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
FileRequest |
createFileRequestCopy(String fileRequestId,
FileRequestCopyRequest requestBody)
Copies an existing file request that is already present on one folder, and applies it to
another folder.
|
FileRequest |
createFileRequestCopy(String fileRequestId,
FileRequestCopyRequest requestBody,
CreateFileRequestCopyHeaders headers)
Copies an existing file request that is already present on one folder, and applies it to
another folder.
|
void |
deleteFileRequestById(String fileRequestId)
Deletes a file request permanently.
|
void |
deleteFileRequestById(String fileRequestId,
DeleteFileRequestByIdHeaders headers)
Deletes a file request permanently.
|
Authentication |
getAuth() |
FileRequest |
getFileRequestById(String fileRequestId)
Retrieves the information about a file request.
|
FileRequest |
getFileRequestById(String fileRequestId,
GetFileRequestByIdHeaders headers)
Retrieves the information about a file request.
|
NetworkSession |
getNetworkSession() |
FileRequest |
updateFileRequestById(String fileRequestId,
FileRequestUpdateRequest requestBody)
Updates a file request.
|
FileRequest |
updateFileRequestById(String fileRequestId,
FileRequestUpdateRequest requestBody,
UpdateFileRequestByIdHeaders headers)
Updates a file request.
|
public Authentication auth
public NetworkSession networkSession
public FileRequestsManager()
protected FileRequestsManager(FileRequestsManager.Builder builder)
public FileRequest getFileRequestById(String fileRequestId)
fileRequestId - The unique identifier that represent a file request.
The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/filerequest/123` the `file_request_id` is `123`. Example: "123"
public FileRequest getFileRequestById(String fileRequestId, GetFileRequestByIdHeaders headers)
fileRequestId - The unique identifier that represent a file request.
The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/filerequest/123` the `file_request_id` is `123`. Example: "123"
headers - Headers of getFileRequestById methodpublic FileRequest updateFileRequestById(String fileRequestId, FileRequestUpdateRequest requestBody)
fileRequestId - The unique identifier that represent a file request.
The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/filerequest/123` the `file_request_id` is `123`. Example: "123"
requestBody - Request body of updateFileRequestById methodpublic FileRequest updateFileRequestById(String fileRequestId, FileRequestUpdateRequest requestBody, UpdateFileRequestByIdHeaders headers)
fileRequestId - The unique identifier that represent a file request.
The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/filerequest/123` the `file_request_id` is `123`. Example: "123"
requestBody - Request body of updateFileRequestById methodheaders - Headers of updateFileRequestById methodpublic void deleteFileRequestById(String fileRequestId)
fileRequestId - The unique identifier that represent a file request.
The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/filerequest/123` the `file_request_id` is `123`. Example: "123"
public void deleteFileRequestById(String fileRequestId, DeleteFileRequestByIdHeaders headers)
fileRequestId - The unique identifier that represent a file request.
The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/filerequest/123` the `file_request_id` is `123`. Example: "123"
headers - Headers of deleteFileRequestById methodpublic FileRequest createFileRequestCopy(String fileRequestId, FileRequestCopyRequest requestBody)
fileRequestId - The unique identifier that represent a file request.
The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/filerequest/123` the `file_request_id` is `123`. Example: "123"
requestBody - Request body of createFileRequestCopy methodpublic FileRequest createFileRequestCopy(String fileRequestId, FileRequestCopyRequest requestBody, CreateFileRequestCopyHeaders headers)
fileRequestId - The unique identifier that represent a file request.
The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/filerequest/123` the `file_request_id` is `123`. Example: "123"
requestBody - Request body of createFileRequestCopy methodheaders - Headers of createFileRequestCopy methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()