public interface IBoxCollaborationsManager extends IBoxResourceManager
| 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.
|
BoxCollaboration |
updateCollaboration(java.lang.String collabId,
BoxCollabRequestObject requestObject)
Update a collaboration.
|
BoxCollaboration getCollaboration(java.lang.String collabId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
collabId - 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.BoxCollaboration createCollaboration(java.lang.String folderId, BoxCollabRequestObject collabObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
folderId - 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.java.util.List<BoxCollaboration> getAllCollaborations(BoxGetAllCollabsRequestObject collabObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
collabObject - 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 deleteCollaboration(java.lang.String collabId,
BoxDefaultRequestObject requestObject)
throws BoxServerException,
BoxRestException,
AuthFatalFailureException
collabId - 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.BoxCollaboration updateCollaboration(java.lang.String collabId, BoxCollabRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
collabId - 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.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.