public final class BoxCollaborationsManagerImpl extends AbstractBoxResourceManager implements IBoxCollaborationsManager
| Constructor and Description |
|---|
BoxCollaborationsManagerImpl(IBoxConfig config,
IBoxResourceHub resourceHub,
IBoxJSONParser parser,
IBoxRequestAuth auth,
IBoxRESTClient restClient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BoxCollaboration |
createCollaboration(java.lang.String folderId,
BoxCollabRequestObject collabObject)
Add a collaboration for a single user to a folder.
|
void |
deleteCollaboration(java.lang.String collabId,
BoxDefaultRequestObject requestObject)
Delete a collaboration.
|
java.util.List<BoxCollaboration> |
getAllCollaborations(BoxGetAllCollabsRequestObject collabObject)
Get all collaborations.
|
BoxCollaboration |
getCollaboration(java.lang.String collabId,
BoxDefaultRequestObject requestObject)
Get a collaboration.
|
static java.util.List<BoxCollaboration> |
getCollaborations(BoxCollection collection)
Deprecated.
|
BoxCollaboration |
updateCollaboration(java.lang.String collabId,
BoxCollabRequestObject requestObject)
Update a collaboration.
|
executeRequestWithNoResponseBody, getAuth, getClassFromType, getConfig, getJSONParser, getResourceHub, getResponseAndParse, getResponseAndParseAndTryCast, getRestClient, tryCastBoxItem, tryCastObjectpublic BoxCollaborationsManagerImpl(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 BoxCollaboration getCollaboration(java.lang.String collabId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxCollaborationsManagergetCollaboration in interface IBoxCollaborationsManagercollabId - id of the collaborationrequestObject - 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 BoxCollaboration createCollaboration(java.lang.String folderId, BoxCollabRequestObject collabObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxCollaborationsManagercreateCollaboration in interface IBoxCollaborationsManagerfolderId - id of the foldercollabObject - object that goes into request body.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 java.util.List<BoxCollaboration> getAllCollaborations(BoxGetAllCollabsRequestObject collabObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxCollaborationsManagergetAllCollaborations in interface IBoxCollaborationsManagercollabObject - 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 void deleteCollaboration(java.lang.String collabId,
BoxDefaultRequestObject requestObject)
throws BoxServerException,
BoxRestException,
AuthFatalFailureException
IBoxCollaborationsManagerdeleteCollaboration in interface IBoxCollaborationsManagercollabId - id of the collaborationrequestObject - object that goes into request.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.public BoxCollaboration updateCollaboration(java.lang.String collabId, BoxCollabRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxCollaborationsManagerupdateCollaboration in interface IBoxCollaborationsManagercollabId - id of the collaborationrequestObject - request object. Note the you can set the status in this object to 'accepted' or 'rejected' if you are the 'accessible_by' user and the current
status is 'pending'BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.@Deprecated public static java.util.List<BoxCollaboration> getCollaborations(BoxCollection collection)
collection - collection