public class BoxFoldersManageImpl extends BoxItemsManagerImpl implements IBoxFoldersManager
| Constructor and Description |
|---|
BoxFoldersManageImpl(IBoxConfig config,
IBoxResourceHub resourceHub,
IBoxJSONParser parser,
IBoxRequestAuth auth,
IBoxRESTClient restClient)
Constructor.
|
| 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.
|
static java.util.List<BoxFolder> |
getFolders(BoxCollection collection)
Deprecated.
|
BoxFolder |
updateFolderInfo(java.lang.String folderId,
BoxFolderRequestObject requestObject)
Update info for a folder.
|
copyItem, createSharedLink, getItem, updateItemInfoexecuteRequestWithNoResponseBody, getAuth, getClassFromType, getConfig, getJSONParser, getResourceHub, getResponseAndParse, getResponseAndParseAndTryCast, getRestClient, tryCastBoxItem, tryCastObjectpublic BoxFoldersManageImpl(IBoxConfig config, IBoxResourceHub resourceHub, IBoxJSONParser parser, IBoxRequestAuth auth, IBoxRESTClient restClient)
config - ConfigresourceHub - IResourceHubparser - json parserauth - auth for api callsrestClient - REST client to make api calls.public BoxFolder getFolder(java.lang.String folderId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxFoldersManagergetFolder in interface IBoxFoldersManagerfolderId - 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.public BoxFolder createFolder(BoxFolderRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxFoldersManagercreateFolder in interface IBoxFoldersManagerrequestObject - 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.public void deleteFolder(java.lang.String folderId,
BoxFolderDeleteRequestObject requestObject)
throws BoxRestException,
BoxServerException,
AuthFatalFailureException
IBoxFoldersManagerdeleteFolder in interface IBoxFoldersManagerfolderId - 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.public BoxFolder copyFolder(java.lang.String folderId, BoxItemCopyRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxFoldersManagercopyFolder in interface IBoxFoldersManagerfolderId - 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.public BoxCollection getFolderItems(java.lang.String folderId, BoxPagingRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxFoldersManagerGetFolderItemsRequest#DEFAULT_FOLDER_ITEMS_LIMIT
items, at an offset of GetFolderItemsRequest#DEFAULT_FOLDER_ITEMS_OFFSETgetFolderItems in interface IBoxFoldersManagerfolderId - 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.public BoxFolder updateFolderInfo(java.lang.String folderId, BoxFolderRequestObject requestObject) throws java.io.UnsupportedEncodingException, BoxRestException, BoxServerException, AuthFatalFailureException
IBoxFoldersManagerupdateFolderInfo in interface IBoxFoldersManagerfolderId - 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.public BoxFolder createSharedLink(java.lang.String folderId, BoxSharedLinkRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxFoldersManagercreateSharedLink in interface IBoxFoldersManagerfolderId - 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.public java.util.List<BoxCollaboration> getFolderCollaborations(java.lang.String folderId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxFoldersManagergetFolderCollaborations in interface IBoxFoldersManagerfolderId - 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.@Deprecated public static java.util.List<BoxFolder> getFolders(BoxCollection collection)
collection - collection