public class UserCollaborationsManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UserCollaborationsManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
UserCollaborationsManager() |
protected |
UserCollaborationsManager(UserCollaborationsManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Collaboration |
createCollaboration(CreateCollaborationRequestBody requestBody)
Adds a collaboration for a single user or a single group to a file or folder.
|
Collaboration |
createCollaboration(CreateCollaborationRequestBody requestBody,
CreateCollaborationHeaders headers)
Adds a collaboration for a single user or a single group to a file or folder.
|
Collaboration |
createCollaboration(CreateCollaborationRequestBody requestBody,
CreateCollaborationQueryParams queryParams)
Adds a collaboration for a single user or a single group to a file or folder.
|
Collaboration |
createCollaboration(CreateCollaborationRequestBody requestBody,
CreateCollaborationQueryParams queryParams,
CreateCollaborationHeaders headers)
Adds a collaboration for a single user or a single group to a file or folder.
|
void |
deleteCollaborationById(String collaborationId)
Deletes a single collaboration.
|
void |
deleteCollaborationById(String collaborationId,
DeleteCollaborationByIdHeaders headers)
Deletes a single collaboration.
|
Authentication |
getAuth() |
Collaboration |
getCollaborationById(String collaborationId)
Retrieves a single collaboration.
|
Collaboration |
getCollaborationById(String collaborationId,
GetCollaborationByIdHeaders headers)
Retrieves a single collaboration.
|
Collaboration |
getCollaborationById(String collaborationId,
GetCollaborationByIdQueryParams queryParams)
Retrieves a single collaboration.
|
Collaboration |
getCollaborationById(String collaborationId,
GetCollaborationByIdQueryParams queryParams,
GetCollaborationByIdHeaders headers)
Retrieves a single collaboration.
|
NetworkSession |
getNetworkSession() |
Collaboration |
updateCollaborationById(String collaborationId)
Updates a collaboration.
|
Collaboration |
updateCollaborationById(String collaborationId,
UpdateCollaborationByIdHeaders headers)
Updates a collaboration.
|
Collaboration |
updateCollaborationById(String collaborationId,
UpdateCollaborationByIdRequestBody requestBody)
Updates a collaboration.
|
Collaboration |
updateCollaborationById(String collaborationId,
UpdateCollaborationByIdRequestBody requestBody,
UpdateCollaborationByIdHeaders headers)
Updates a collaboration.
|
public Authentication auth
public NetworkSession networkSession
public UserCollaborationsManager()
protected UserCollaborationsManager(UserCollaborationsManager.Builder builder)
public Collaboration getCollaborationById(String collaborationId)
collaborationId - The ID of the collaboration. Example: "1234"public Collaboration getCollaborationById(String collaborationId, GetCollaborationByIdQueryParams queryParams)
collaborationId - The ID of the collaboration. Example: "1234"queryParams - Query parameters of getCollaborationById methodpublic Collaboration getCollaborationById(String collaborationId, GetCollaborationByIdHeaders headers)
collaborationId - The ID of the collaboration. Example: "1234"headers - Headers of getCollaborationById methodpublic Collaboration getCollaborationById(String collaborationId, GetCollaborationByIdQueryParams queryParams, GetCollaborationByIdHeaders headers)
collaborationId - The ID of the collaboration. Example: "1234"queryParams - Query parameters of getCollaborationById methodheaders - Headers of getCollaborationById methodpublic Collaboration updateCollaborationById(String collaborationId)
collaborationId - The ID of the collaboration. Example: "1234"public Collaboration updateCollaborationById(String collaborationId, UpdateCollaborationByIdRequestBody requestBody)
collaborationId - The ID of the collaboration. Example: "1234"requestBody - Request body of updateCollaborationById methodpublic Collaboration updateCollaborationById(String collaborationId, UpdateCollaborationByIdHeaders headers)
collaborationId - The ID of the collaboration. Example: "1234"headers - Headers of updateCollaborationById methodpublic Collaboration updateCollaborationById(String collaborationId, UpdateCollaborationByIdRequestBody requestBody, UpdateCollaborationByIdHeaders headers)
collaborationId - The ID of the collaboration. Example: "1234"requestBody - Request body of updateCollaborationById methodheaders - Headers of updateCollaborationById methodpublic void deleteCollaborationById(String collaborationId)
collaborationId - The ID of the collaboration. Example: "1234"public void deleteCollaborationById(String collaborationId, DeleteCollaborationByIdHeaders headers)
collaborationId - The ID of the collaboration. Example: "1234"headers - Headers of deleteCollaborationById methodpublic Collaboration createCollaboration(CreateCollaborationRequestBody requestBody)
Collaborations can be created using email address, user IDs, or a group IDs.
If a collaboration is being created with a group, access to this endpoint is dependent on the group's ability to be invited.
If collaboration is in `pending` status, the following fields are redacted: - `login` and `name` are hidden if a collaboration was created using `user_id`, - `name` is hidden if a collaboration was created using `login`.
requestBody - Request body of createCollaboration methodpublic Collaboration createCollaboration(CreateCollaborationRequestBody requestBody, CreateCollaborationQueryParams queryParams)
Collaborations can be created using email address, user IDs, or a group IDs.
If a collaboration is being created with a group, access to this endpoint is dependent on the group's ability to be invited.
If collaboration is in `pending` status, the following fields are redacted: - `login` and `name` are hidden if a collaboration was created using `user_id`, - `name` is hidden if a collaboration was created using `login`.
requestBody - Request body of createCollaboration methodqueryParams - Query parameters of createCollaboration methodpublic Collaboration createCollaboration(CreateCollaborationRequestBody requestBody, CreateCollaborationHeaders headers)
Collaborations can be created using email address, user IDs, or a group IDs.
If a collaboration is being created with a group, access to this endpoint is dependent on the group's ability to be invited.
If collaboration is in `pending` status, the following fields are redacted: - `login` and `name` are hidden if a collaboration was created using `user_id`, - `name` is hidden if a collaboration was created using `login`.
requestBody - Request body of createCollaboration methodheaders - Headers of createCollaboration methodpublic Collaboration createCollaboration(CreateCollaborationRequestBody requestBody, CreateCollaborationQueryParams queryParams, CreateCollaborationHeaders headers)
Collaborations can be created using email address, user IDs, or a group IDs.
If a collaboration is being created with a group, access to this endpoint is dependent on the group's ability to be invited.
If collaboration is in `pending` status, the following fields are redacted: - `login` and `name` are hidden if a collaboration was created using `user_id`, - `name` is hidden if a collaboration was created using `login`.
requestBody - Request body of createCollaboration methodqueryParams - Query parameters of createCollaboration methodheaders - Headers of createCollaboration methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()