public interface IBoxTrashManager extends IBoxResourceManager
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTrashFile(java.lang.String id,
BoxDefaultRequestObject requestObject)
Permanently delete a trashed file.
|
void |
deleteTrashFolder(java.lang.String id,
BoxDefaultRequestObject requestObject)
Permanently delete a trashed folder.
|
BoxFile |
getTrashFile(java.lang.String fileId,
BoxDefaultRequestObject requestObject)
Get trashed file given a file id.
|
BoxFolder |
getTrashFolder(java.lang.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(java.lang.String id,
BoxItemRestoreRequestObject requestObject)
Restore a trashed file.
|
BoxFolder |
restoreTrashFolder(java.lang.String id,
BoxItemRestoreRequestObject requestObject)
Restore a trashed folder.
|
BoxFile getTrashFile(java.lang.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 BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.void deleteTrashFile(java.lang.String id,
BoxDefaultRequestObject requestObject)
throws BoxRestException,
BoxServerException,
AuthFatalFailureException
id - id of the filerequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.BoxFile restoreTrashFile(java.lang.String id, BoxItemRestoreRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
id - id of the trashed file.requestObject - BoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.BoxFolder getTrashFolder(java.lang.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 BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.BoxCollection getTrashItems(BoxPagingRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
requestObject - BoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.void deleteTrashFolder(java.lang.String id,
BoxDefaultRequestObject requestObject)
throws BoxRestException,
BoxServerException,
AuthFatalFailureException
id - id of the folderrequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.BoxFolder restoreTrashFolder(java.lang.String id, BoxItemRestoreRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
id - id of the trashed folder.requestObject - BoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.