public class TrashedFilesManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TrashedFilesManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
TrashedFilesManager() |
protected |
TrashedFilesManager(TrashedFilesManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTrashedFileById(String fileId)
Permanently deletes a file that is in the trash.
|
void |
deleteTrashedFileById(String fileId,
DeleteTrashedFileByIdHeaders headers)
Permanently deletes a file that is in the trash.
|
Authentication |
getAuth() |
NetworkSession |
getNetworkSession() |
TrashFile |
getTrashedFileById(String fileId)
Retrieves a file that has been moved to the trash.
|
TrashFile |
getTrashedFileById(String fileId,
GetTrashedFileByIdHeaders headers)
Retrieves a file that has been moved to the trash.
|
TrashFile |
getTrashedFileById(String fileId,
GetTrashedFileByIdQueryParams queryParams)
Retrieves a file that has been moved to the trash.
|
TrashFile |
getTrashedFileById(String fileId,
GetTrashedFileByIdQueryParams queryParams,
GetTrashedFileByIdHeaders headers)
Retrieves a file that has been moved to the trash.
|
TrashFileRestored |
restoreFileFromTrash(String fileId)
Restores a file that has been moved to the trash.
|
TrashFileRestored |
restoreFileFromTrash(String fileId,
RestoreFileFromTrashHeaders headers)
Restores a file that has been moved to the trash.
|
TrashFileRestored |
restoreFileFromTrash(String fileId,
RestoreFileFromTrashQueryParams queryParams)
Restores a file that has been moved to the trash.
|
TrashFileRestored |
restoreFileFromTrash(String fileId,
RestoreFileFromTrashQueryParams queryParams,
RestoreFileFromTrashHeaders headers)
Restores a file that has been moved to the trash.
|
TrashFileRestored |
restoreFileFromTrash(String fileId,
RestoreFileFromTrashRequestBody requestBody)
Restores a file that has been moved to the trash.
|
TrashFileRestored |
restoreFileFromTrash(String fileId,
RestoreFileFromTrashRequestBody requestBody,
RestoreFileFromTrashHeaders headers)
Restores a file that has been moved to the trash.
|
TrashFileRestored |
restoreFileFromTrash(String fileId,
RestoreFileFromTrashRequestBody requestBody,
RestoreFileFromTrashQueryParams queryParams)
Restores a file that has been moved to the trash.
|
TrashFileRestored |
restoreFileFromTrash(String fileId,
RestoreFileFromTrashRequestBody requestBody,
RestoreFileFromTrashQueryParams queryParams,
RestoreFileFromTrashHeaders headers)
Restores a file that has been moved to the trash.
|
public Authentication auth
public NetworkSession networkSession
public TrashedFilesManager()
protected TrashedFilesManager(TrashedFilesManager.Builder builder)
public TrashFileRestored restoreFileFromTrash(String fileId)
An optional new parent ID can be provided to restore the file to in case the original folder has been deleted.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
public TrashFileRestored restoreFileFromTrash(String fileId, RestoreFileFromTrashRequestBody requestBody)
An optional new parent ID can be provided to restore the file to in case the original folder has been deleted.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of restoreFileFromTrash methodpublic TrashFileRestored restoreFileFromTrash(String fileId, RestoreFileFromTrashQueryParams queryParams)
An optional new parent ID can be provided to restore the file to in case the original folder has been deleted.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of restoreFileFromTrash methodpublic TrashFileRestored restoreFileFromTrash(String fileId, RestoreFileFromTrashRequestBody requestBody, RestoreFileFromTrashQueryParams queryParams)
An optional new parent ID can be provided to restore the file to in case the original folder has been deleted.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of restoreFileFromTrash methodqueryParams - Query parameters of restoreFileFromTrash methodpublic TrashFileRestored restoreFileFromTrash(String fileId, RestoreFileFromTrashHeaders headers)
An optional new parent ID can be provided to restore the file to in case the original folder has been deleted.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
headers - Headers of restoreFileFromTrash methodpublic TrashFileRestored restoreFileFromTrash(String fileId, RestoreFileFromTrashRequestBody requestBody, RestoreFileFromTrashHeaders headers)
An optional new parent ID can be provided to restore the file to in case the original folder has been deleted.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of restoreFileFromTrash methodheaders - Headers of restoreFileFromTrash methodpublic TrashFileRestored restoreFileFromTrash(String fileId, RestoreFileFromTrashQueryParams queryParams, RestoreFileFromTrashHeaders headers)
An optional new parent ID can be provided to restore the file to in case the original folder has been deleted.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of restoreFileFromTrash methodheaders - Headers of restoreFileFromTrash methodpublic TrashFileRestored restoreFileFromTrash(String fileId, RestoreFileFromTrashRequestBody requestBody, RestoreFileFromTrashQueryParams queryParams, RestoreFileFromTrashHeaders headers)
An optional new parent ID can be provided to restore the file to in case the original folder has been deleted.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of restoreFileFromTrash methodqueryParams - Query parameters of restoreFileFromTrash methodheaders - Headers of restoreFileFromTrash methodpublic TrashFile getTrashedFileById(String fileId)
Please note that only if the file itself has been moved to the trash can it be retrieved with this API call. If instead one of its parent folders was moved to the trash, only that folder can be inspected using the [`GET /folders/:id/trash`](https://developer.box.com/reference/get-folders-id-trash) API.
To list all items that have been moved to the trash, please use the [`GET /folders/trash/items`](https://developer.box.com/reference/get-folders-trash-items/) API.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
public TrashFile getTrashedFileById(String fileId, GetTrashedFileByIdQueryParams queryParams)
Please note that only if the file itself has been moved to the trash can it be retrieved with this API call. If instead one of its parent folders was moved to the trash, only that folder can be inspected using the [`GET /folders/:id/trash`](https://developer.box.com/reference/get-folders-id-trash) API.
To list all items that have been moved to the trash, please use the [`GET /folders/trash/items`](https://developer.box.com/reference/get-folders-trash-items/) API.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of getTrashedFileById methodpublic TrashFile getTrashedFileById(String fileId, GetTrashedFileByIdHeaders headers)
Please note that only if the file itself has been moved to the trash can it be retrieved with this API call. If instead one of its parent folders was moved to the trash, only that folder can be inspected using the [`GET /folders/:id/trash`](https://developer.box.com/reference/get-folders-id-trash) API.
To list all items that have been moved to the trash, please use the [`GET /folders/trash/items`](https://developer.box.com/reference/get-folders-trash-items/) API.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
headers - Headers of getTrashedFileById methodpublic TrashFile getTrashedFileById(String fileId, GetTrashedFileByIdQueryParams queryParams, GetTrashedFileByIdHeaders headers)
Please note that only if the file itself has been moved to the trash can it be retrieved with this API call. If instead one of its parent folders was moved to the trash, only that folder can be inspected using the [`GET /folders/:id/trash`](https://developer.box.com/reference/get-folders-id-trash) API.
To list all items that have been moved to the trash, please use the [`GET /folders/trash/items`](https://developer.box.com/reference/get-folders-trash-items/) API.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of getTrashedFileById methodheaders - Headers of getTrashedFileById methodpublic void deleteTrashedFileById(String fileId)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
public void deleteTrashedFileById(String fileId, DeleteTrashedFileByIdHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
headers - Headers of deleteTrashedFileById methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()