public class BoxCollabRequestObject extends BoxDefaultRequestObject
Modifier and Type | Method and Description |
---|---|
static BoxCollabRequestObject |
createCollaborationObject(java.lang.String folderId,
java.lang.String userId,
java.lang.String login,
java.lang.String role)
Create an request object used to do create Collaboration request.
|
MapJSONStringEntity |
getAccessible_by() |
static BoxCollabRequestObject |
getAllCollaborationsRequestObject(java.lang.String status)
Create an request object used to make get all collaborations request.
|
MapJSONStringEntity |
getItem() |
java.lang.String |
getRole() |
java.lang.String |
getStatus() |
BoxCollabRequestObject |
setStatus(java.lang.String status) |
static BoxCollabRequestObject |
updateCollaborationObject(java.lang.String role)
Create an v used to make update collaboration request.
|
addField, addFields, addHeader, addQueryParam, get, getEntity, getFields, getHeaders, getJSONEntity, getJSONParser, getQueryParams, put, put, setJSONParser, setPage
public static BoxCollabRequestObject createCollaborationObject(java.lang.String folderId, java.lang.String userId, java.lang.String login, java.lang.String role)
folderId
- id of the folderuserId
- id of the user to collaborate, this is optional, if you don't want to supply a user id, use null.login
- login email of the collaborator(Can be non-box email.)role
- role/access level of this collaboration(This is a String defined in com.box.boxjavalibv2.dao.CollaborationRole
public static BoxCollabRequestObject updateCollaborationObject(java.lang.String role)
role
- role/access level of this collaboration(This is a String defined in com.box.boxjavalibv2.dao.CollaborationRole
public static BoxCollabRequestObject getAllCollaborationsRequestObject(java.lang.String status)
status
- status of the collaborations requested( This field is required and currently only support
com.box.boxjavalibv2.dao.BoxCollaboration.STATUS_PENDING
public MapJSONStringEntity getItem()
public MapJSONStringEntity getAccessible_by()
public java.lang.String getRole()
public java.lang.String getStatus()
public BoxCollabRequestObject setStatus(java.lang.String status)