public class BoxCollabRequestObject extends BoxDefaultRequestObject
Modifier and Type | Method and Description |
---|---|
static BoxCollabRequestObject |
createCollabObject(java.lang.String folderId,
java.lang.String userId,
java.lang.String login,
java.lang.String role)
create a collaboration.
|
BoxCollabRequestObject |
setAccessibleBy(java.lang.String userId,
java.lang.String login) |
BoxCollabRequestObject |
setRole(java.lang.String role)
Set the role.
|
BoxCollabRequestObject |
setStatus(java.lang.String status) |
static BoxCollabRequestObject |
updateCollabObjects(java.lang.String role)
update a collaboration.
|
getFromEntity, getJSONEntity, getRequestExtras, put, setPage
public static BoxCollabRequestObject createCollabObject(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 BoxCollabRequestObject setAccessibleBy(java.lang.String userId, java.lang.String login)
userId
- 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.)public static BoxCollabRequestObject updateCollabObjects(java.lang.String role)
role
- role/access level of this collaboration(This is a String defined in com.box.boxjavalibv2.dao.CollaborationRole
.public BoxCollabRequestObject setRole(java.lang.String role)
public BoxCollabRequestObject setStatus(java.lang.String status)