public class BoxCollaboration extends BoxResource
Modifier and Type | Class and Description |
---|---|
class |
BoxCollaboration.Info
Contains information about a BoxCollaboration.
|
static class |
BoxCollaboration.Role
Enumerates the possible access levels that a collaborator can have.
|
static class |
BoxCollaboration.Status
Enumerates the possible statuses that a collaboration can have.
|
Constructor and Description |
---|
BoxCollaboration(BoxAPIConnection api,
String id)
Constructs a BoxCollaboration for a collaboration with a given ID.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes this collaboration.
|
BoxCollaboration.Info |
getInfo()
Gets information about this collaboration.
|
static Collection<BoxCollaboration.Info> |
getPendingCollaborations(BoxAPIConnection api)
Gets all pending collaboration invites for the current user.
|
void |
updateInfo(BoxCollaboration.Info info)
Updates the information about this collaboration with any info fields that have been modified locally.
|
equals, getAPI, getID, hashCode
public BoxCollaboration(BoxAPIConnection api, String id)
api
- the API connection to be used by the collaboration.id
- the ID of the collaboration.public static Collection<BoxCollaboration.Info> getPendingCollaborations(BoxAPIConnection api)
api
- the API connection to use.public BoxCollaboration.Info getInfo()
public void updateInfo(BoxCollaboration.Info info)
info
- the updated info.public void delete()