public interface IBoxTrashManager extends IBoxResourceManager
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTrashFile(String id,
BoxDefaultRequestObject requestObject)
Permanently delete a trashed file.
|
void |
deleteTrashFolder(String id,
BoxDefaultRequestObject requestObject)
Permanently delete a trashed folder.
|
BoxFile |
getTrashFile(String fileId,
BoxDefaultRequestObject requestObject)
Get trashed file given a file id.
|
BoxFolder |
getTrashFolder(String folderId,
BoxDefaultRequestObject requestObject)
Get trash folder given a folder id.
|
BoxCollection |
getTrashItems(BoxPagingRequestObject requestObject)
Get all the trashed items(subfolders, files, weblinks...).
|
BoxFile |
restoreTrashFile(String id,
BoxItemRestoreRequestObject requestObject)
Restore a trashed file.
|
BoxFolder |
restoreTrashFolder(String id,
BoxItemRestoreRequestObject requestObject)
Restore a trashed folder.
|
BoxFile getTrashFile(String fileId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
fileId - id of the filerequestObject - object that goes into request.BoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.void deleteTrashFile(String id, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
id - id of the filerequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxFile restoreTrashFile(String id, BoxItemRestoreRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
id - id of the trashed file.requestObject - BoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxFolder getTrashFolder(String folderId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
folderId - id of the folderrequestObject - object that goes into request.BoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxCollection getTrashItems(BoxPagingRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
GetFolderItemsRequest#DEFAULT_FOLDER_ITEMS_LIMIT
items, at an offset of GetFolderItemsRequest#DEFAULT_FOLDER_ITEMS_OFFSETfolderId - id of the folder.requestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.void deleteTrashFolder(String id, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
id - id of the folderrequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxFolder restoreTrashFolder(String id, BoxItemRestoreRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
id - id of the trashed folder.requestObject - BoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.Copyright © 2014. All Rights Reserved.