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. | 
| BoxCollection | getFolderTrashItems(java.lang.String folderId,
                   BoxPagingRequestObject requestObject)Get the trashed items(subfolders, files, weblinks...) under a 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. | 
| 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 com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.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 com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.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 com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.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 com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxCollection getFolderTrashItems(java.lang.String folderId, 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(java.lang.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(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 com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.