public class BoxCollaborationsManager extends Object
| Constructor and Description |
|---|
BoxCollaborationsManager(com.box.sdk.BoxAPIConnection boxConnection)
Create collaborations manager to manage the comments of Box connection's authenticated user.
|
| Modifier and Type | Method and Description |
|---|---|
com.box.sdk.BoxCollaboration |
addFolderCollaboration(String folderId,
com.box.sdk.BoxCollaborator collaborator,
com.box.sdk.BoxCollaboration.Role role)
Add a collaboration to this folder.
|
com.box.sdk.BoxCollaboration |
addFolderCollaborationByEmail(String folderId,
String email,
com.box.sdk.BoxCollaboration.Role role)
Add a collaboration to this folder.
|
void |
deleteCollaboration(String collaborationId)
Delete collaboration.
|
com.box.sdk.BoxCollaboration.Info |
getCollaborationInfo(String collaborationId)
Get collaboration information.
|
Collection<com.box.sdk.BoxCollaboration.Info> |
getFolderCollaborations(String folderId)
Get information about all of the collaborations for folder.
|
Collection<com.box.sdk.BoxCollaboration.Info> |
getPendingCollaborations()
Get all pending collaboration invites for the current user.
|
com.box.sdk.BoxCollaboration |
updateCollaborationInfo(String collaborationId,
com.box.sdk.BoxCollaboration.Info info)
Update collaboration information.
|
public BoxCollaborationsManager(com.box.sdk.BoxAPIConnection boxConnection)
boxConnection - - Box connection to authenticated user account.public Collection<com.box.sdk.BoxCollaboration.Info> getFolderCollaborations(String folderId)
folderId - - the id of folder to get collaborations information on.public com.box.sdk.BoxCollaboration addFolderCollaboration(String folderId, com.box.sdk.BoxCollaborator collaborator, com.box.sdk.BoxCollaboration.Role role)
folderId - - the id of folder to add collaboration to.collaborator - - the collaborator to add.role - - the role of the collaborator.public com.box.sdk.BoxCollaboration addFolderCollaborationByEmail(String folderId, String email, com.box.sdk.BoxCollaboration.Role role)
folderId - - the id of folder to add collaboration to.email - - the email address of the collaborator to add.role - - the role of the collaborator.public com.box.sdk.BoxCollaboration.Info getCollaborationInfo(String collaborationId)
collaborationId - - the id of collaboration.public com.box.sdk.BoxCollaboration updateCollaborationInfo(String collaborationId, com.box.sdk.BoxCollaboration.Info info)
collaborationId - - the id of collaboration.info - collaboration information to update.public void deleteCollaboration(String collaborationId)
collaborationId - - the id of comment to change.public Collection<com.box.sdk.BoxCollaboration.Info> getPendingCollaborations()
Apache Camel