public static class BoxRequestsShare.UpdateCollaboration extends BoxRequest<BoxCollaboration,BoxRequestsShare.UpdateCollaboration>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactoryJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
UpdateCollaboration(java.lang.String collaborationId,
java.lang.String requestUrl,
BoxSession session)
Creates a request to update the collaboration with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns the id of the collaboration being modified.
|
protected void |
onSendCompleted(BoxResponse<BoxCollaboration> response)
Post action that will be performed after a successful send occurs.
|
BoxRequestsShare.UpdateCollaboration |
setNewRole(BoxCollaboration.Role newRole)
Sets the new role for the collaboration to be updated in the request
|
BoxRequestsShare.UpdateCollaboration |
setNewStatus(java.lang.String status)
Sets the status of the collaboration to be updated in the request
|
buildUrl, createHeaderMap, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic UpdateCollaboration(java.lang.String collaborationId,
java.lang.String requestUrl,
BoxSession session)
collaborationId - id of the collaboration to updaterequestUrl - URL of the update collaboration endpointsession - the authenticated session that will be used to make the request withpublic java.lang.String getId()
public BoxRequestsShare.UpdateCollaboration setNewRole(BoxCollaboration.Role newRole)
newRole - role to update the collaboration topublic BoxRequestsShare.UpdateCollaboration setNewStatus(java.lang.String status)
status - new status for the collaboration. This can be set to 'accepted' or 'rejected' by the 'accessible_by' user if the status is 'pending'protected void onSendCompleted(BoxResponse<BoxCollaboration> response) throws BoxException
BoxRequestonSendCompleted in class BoxRequest<BoxCollaboration,BoxRequestsShare.UpdateCollaboration>response - response of the BoxRequestBoxException - thrown if there was a problem with handling the request.