public static class BoxRequestsShare.UpdateCollaboration extends BoxRequest<BoxCollaboration,BoxRequestsShare.UpdateCollaboration>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mSession| Constructor and Description |
|---|
BoxRequestsShare.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.
|
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, createHttpRequest, createQuery, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getStringBody, importRequestContentMapsFrom, logDebug, logRequest, parseHashMapEntry, parseJsonObject, send, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic BoxRequestsShare.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'