public final class BoxCollectionsManagerImpl extends AbstractBoxResourceManager implements IBoxCollectionsManager
| Constructor and Description |
|---|
BoxCollectionsManagerImpl(IBoxConfig config,
IBoxResourceHub resourceHub,
IBoxJSONParser parser,
IBoxRequestAuth auth,
IBoxRESTClient restClient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BoxCollection |
getAllCollections(BoxPagingRequestObject requestObject)
Get all collections.
|
BoxItemCollection |
getCollection(java.lang.String collectionId,
BoxDefaultRequestObject requestObject)
Get a collection.
|
BoxCollection |
getCollectionItems(java.lang.String collectionId,
BoxPagingRequestObject requestObject)
Get all items in a given collection.
|
executeRequestWithNoResponseBody, getAuth, getClassFromType, getConfig, getJSONParser, getResourceHub, getResponseAndParse, getResponseAndParseAndTryCast, getRestClient, tryCastBoxItem, tryCastObjectpublic BoxCollectionsManagerImpl(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 BoxItemCollection getCollection(java.lang.String collectionId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxCollectionsManagergetCollection in interface IBoxCollectionsManagercollectionId - id of the collectionrequestObject - object that goes into request.BoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxCollection getAllCollections(BoxPagingRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxCollectionsManagergetAllCollections in interface IBoxCollectionsManagerrequestObject - object that goes into request.BoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxCollection getCollectionItems(java.lang.String collectionId, BoxPagingRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxCollectionsManagergetCollectionItems in interface IBoxCollectionsManagercollectionId - id of the collectionrequestObject - object that goes into request.BoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.