public interface IBoxFoldersManager extends IBoxResourceManager
Modifier and Type | Method and Description |
---|---|
BoxFolder |
copyFolder(java.lang.String folderId,
BoxItemCopyRequestObject requestObject)
Copy a folder.
|
BoxFolder |
createFolder(BoxFolderRequestObject requestObject)
Create a folder.
|
BoxFolder |
createSharedLink(java.lang.String folderId,
BoxSharedLinkRequestObject requestObject)
Create a shared link for a folder, given the id of the file/folder.
|
void |
deleteFolder(java.lang.String folderId,
BoxFolderDeleteRequestObject requestObject)
Delete a folder.
|
BoxFolder |
getFolder(java.lang.String folderId,
BoxDefaultRequestObject requestObject)
Get folder given a folder id.
|
java.util.List<BoxCollaboration> |
getFolderCollaborations(java.lang.String folderId,
BoxDefaultRequestObject requestObject)
Get collaborations of a folder.
|
BoxCollection |
getFolderItems(java.lang.String folderId,
BoxPagingRequestObject requestObject)
Get the items(subfolders, files, weblinks...) under a folder.
|
BoxFolder |
updateFolderInfo(java.lang.String folderId,
BoxFolderRequestObject requestObject)
Update info for a folder.
|
BoxFolder getFolder(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.BoxFolder createFolder(BoxFolderRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
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 deleteFolder(java.lang.String folderId, BoxFolderDeleteRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
folderId
- 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 copyFolder(java.lang.String folderId, BoxItemCopyRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
folderId
- 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.BoxCollection getFolderItems(java.lang.String folderId, BoxPagingRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
GetFolderItemsRequest#DEFAULT_FOLDER_ITEMS_LIMIT
items, at an offset of GetFolderItemsRequest#DEFAULT_FOLDER_ITEMS_OFFSET
folderId
- 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.BoxFolder updateFolderInfo(java.lang.String folderId, BoxFolderRequestObject requestObject) throws java.io.UnsupportedEncodingException, BoxRestException, BoxServerException, AuthFatalFailureException
folderId
- id of the folderrequestObject
- request objectjava.io.UnsupportedEncodingException
- exceptionBoxRestException
- 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 createSharedLink(java.lang.String folderId, BoxSharedLinkRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
folderId
- 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.java.util.List<BoxCollaboration> getFolderCollaborations(java.lang.String folderId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
folderId
- id of the folderBoxRestException
- 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.