public class BoxApiCollaboration extends BoxApi
mBaseUploadUri, mBaseUri, mSession| Constructor and Description |
|---|
BoxApiCollaboration(BoxSession session)
Constructs a BoxApiCollaboration with the provided BoxSession
|
| Modifier and Type | Method and Description |
|---|---|
BoxRequestsShare.AddCollaboration |
getAddRequest(java.lang.String folderId,
BoxCollaboration.Role role,
BoxCollaborator collaborator)
|
BoxRequestsShare.AddCollaboration |
getAddRequest(java.lang.String folderId,
BoxCollaboration.Role role,
java.lang.String login)
A request that adds a user as a collaborator to a folder by using their login.
|
protected java.lang.String |
getCollaborationInfoUrl(java.lang.String id)
Gets the URL for collaboration information
|
protected java.lang.String |
getCollaborationsUrl()
Gets the URL for collaborations
|
BoxRequestsShare.DeleteCollaboration |
getDeleteRequest(java.lang.String collaborationId)
A request to delete a collaboration with given collaboration id.
|
BoxRequestsShare.GetCollaborationInfo |
getInfoRequest(java.lang.String collaborationId)
A request to retrieve a collaboration of a given id.
|
BoxRequestsShare.GetPendingCollaborations |
getPendingCollaborationsRequest()
A request to retrieve a list of pending collaborations for the user.
|
BoxRequestsShare.UpdateOwner |
getUpdateOwnerRequest(java.lang.String collaborationId)
A request to change role to owner given a collaboration id.
|
BoxRequestsShare.UpdateCollaboration |
getUpdateRequest(java.lang.String collaborationId)
A request to update a collaboration given a collaboration id.
|
getBaseUploadUri, getBaseUripublic BoxApiCollaboration(BoxSession session)
session - authenticated session to use with the BoxApiCollaborationprotected java.lang.String getCollaborationsUrl()
protected java.lang.String getCollaborationInfoUrl(java.lang.String id)
id - id of the collaborationpublic BoxRequestsShare.GetCollaborationInfo getInfoRequest(java.lang.String collaborationId)
collaborationId - id of the collaboration to retrievepublic BoxRequestsShare.AddCollaboration getAddRequest(java.lang.String folderId, BoxCollaboration.Role role, BoxCollaborator collaborator)
public BoxRequestsShare.AddCollaboration getAddRequest(java.lang.String folderId, BoxCollaboration.Role role, java.lang.String login)
folderId - id of the folder to be collaborated.role - role of the collaborationlogin - email address of the user to addpublic BoxRequestsShare.GetPendingCollaborations getPendingCollaborationsRequest()
public BoxRequestsShare.DeleteCollaboration getDeleteRequest(java.lang.String collaborationId)
collaborationId - id of the collaboration to deletepublic BoxRequestsShare.UpdateCollaboration getUpdateRequest(java.lang.String collaborationId)
collaborationId - id of the collaboration to updatepublic BoxRequestsShare.UpdateOwner getUpdateOwnerRequest(java.lang.String collaborationId)
collaborationId - id of the collaboration to update