public class AnywhereShareAPI
extends java.lang.Object
See the method AnywhereAPI.getShareAPI() to obtain an instance of
the AnywhereShareAPI.
| Modifier | Constructor and Description |
|---|---|
protected |
AnywhereShareAPI(AnywhereConnector connector) |
| Modifier and Type | Method and Description |
|---|---|
SharedFolder |
acceptInvitation(AuthToken authToken,
java.lang.String fsId,
boolean sync)
Accept an invitation to join a shared folder
|
SharedFolder |
approveTeamFolderRequest(AuthToken authToken,
java.lang.String path)
Approve a request to create a team folder
|
void |
cancelInvitation(AuthToken authToken,
java.lang.String path,
java.lang.String uniqueId,
java.lang.String providerId)
Cancel an invitation for a specified user to a specified folder.
|
SharedFolder |
cancelTeamFolderRequest(AuthToken authToken,
java.lang.String path)
Cancel a request to create a team folder
|
SharedFolder |
convertToTeamFolder(AuthToken authToken,
java.lang.String path,
java.lang.String contact,
java.lang.Long quotaBytes)
Convert a shared folder to a team folder
|
SharedFolder |
create(AuthToken authToken,
java.lang.String path,
java.lang.String label)
Create a shared folder.
|
SharedFolder |
createTeamFolder(AuthToken authToken,
java.lang.String path,
java.lang.String label,
java.lang.String contact,
java.lang.Long quotaBytes)
Create a team folder
|
void |
deleteTeamFolder(AuthToken authToken,
java.lang.String path)
Delete a team folder for all users, abandoning it.
|
SharedFolder |
invite(AuthToken authToken,
java.lang.String path,
java.lang.String uniqueId,
java.lang.String providerId,
ShareRole role)
Invite user or group to the shared folder
|
java.lang.Void |
leaveShare(AuthToken authToken,
java.lang.String path)
Leave a shared folder
|
GroupMembersListing |
listGroupMembers(AuthToken authToken,
java.lang.String name,
java.lang.String providerId)
List members in a group
|
InvitationListing |
listInvitations(AuthToken authToken)
List the user's invitations to join shared folders owned by others
|
SharedFolderListing |
listSharedFolders(AuthToken authToken)
List all shared folders the user is a member of
|
ShareMemberListing |
listShareGroups(AuthToken authToken,
java.lang.String path)
List the groups in a share
|
ShareMemberListing |
listShareMembers(AuthToken authToken,
java.lang.String path)
List the members of a given shared folder.
|
ShareMemberListing |
listShareMembers(AuthToken authToken,
java.lang.String path,
java.lang.String pageToken,
java.lang.Integer pageSize)
List the members of a given shared folder, which includes both users and groups.
|
ShareMemberListing |
listShareMembers(AuthToken authToken,
java.lang.String path,
java.lang.String pageToken,
java.lang.Integer pageSize,
ShareMemberListRequest.SortingCriterion sortingCriterion,
ShareMemberListRequest.SortingDirection sortingDirection)
List the members of a given shared folder, which includes both users and groups.
|
ShareMemberListing |
listShareUsers(AuthToken authToken,
java.lang.String path)
List the users of a given shared folder.
|
ShareMemberListing |
preserveMembership(AuthToken authToken,
java.lang.String path,
boolean removeGroups)
Preserve a share's membership
|
void |
rejectInvitation(AuthToken authToken,
java.lang.String fsId)
Reject an invitation to join a shared folder
|
void |
removeGroup(AuthToken authToken,
java.lang.String path,
java.lang.String uniqueId,
java.lang.String providerId)
Remove group from shared folder
|
void |
removeMember(AuthToken authToken,
java.lang.String path,
java.lang.String uniqueId,
java.lang.String providerId)
Remove member from shared folder
|
ShareInviteSearchResult |
searchInvite(AuthToken authToken,
java.lang.String path,
java.lang.String filter)
List users and groups matching the filter
|
SharedFolder |
syncMembership(AuthToken authToken,
java.lang.String path,
boolean increaseRole,
boolean inviteDeclined)
Sync a share's membership
|
Entry |
unshareFolder(AuthToken authToken,
java.lang.String path)
Reject an invitation to join a shared folder
|
SharedFolder |
updateShareSettings(AuthToken authToken,
java.lang.String path,
boolean sync)
Update settings for shared folder
|
SharedFolder |
updateTeamFolder(AuthToken authToken,
java.lang.String path,
java.lang.String contact,
java.lang.Long quotaBytes)
Update a team folder
|
protected AnywhereShareAPI(AnywhereConnector connector)
public SharedFolder create(AuthToken authToken, java.lang.String path, java.lang.String label) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - path of the folder that will be sharedlabel - name of the folder as it appears to the people you are sharing the folder withAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolder invite(AuthToken authToken, java.lang.String path, java.lang.String uniqueId, java.lang.String providerId, ShareRole role) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - path of the shared folderuniqueId - uniqueId of the inviteeproviderId - providerId of the auth providerrole - Role of the inviteeAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic InvitationListing listInvitations(AuthToken authToken) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolder acceptInvitation(AuthToken authToken, java.lang.String fsId, boolean sync) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestfsId - the id of the share to which to accept an invitationsync - whether to sync the share after the invitation was accepted. If the role of the
user is VIEWER, the share cannot be mounted as syncingAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic void rejectInvitation(AuthToken authToken, java.lang.String fsId) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestfsId - the id of the share for which to reject an invitationAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic void cancelInvitation(AuthToken authToken, java.lang.String path, java.lang.String uniqueId, java.lang.String providerId) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - The path to the shared folder.uniqueId - The uniqueId of the user whose invitation should be cancelled.providerId - The providerId of the user whose invitation should be cancelled.AwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic Entry unshareFolder(AuthToken authToken, java.lang.String path) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path to the share to unshareAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic GroupMembersListing listGroupMembers(AuthToken authToken, java.lang.String name, java.lang.String providerId) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestname - name of the groupproviderId - providerId of the auth providerAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic java.lang.Void leaveShare(AuthToken authToken, java.lang.String path) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the folder to leaveAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic void removeMember(AuthToken authToken, java.lang.String path, java.lang.String uniqueId, java.lang.String providerId) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the shared folderuniqueId - uniqueId of the member to be removedproviderId - providerId of the auth providerAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic void removeGroup(AuthToken authToken, java.lang.String path, java.lang.String uniqueId, java.lang.String providerId) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the shared folderuniqueId - uniqueId of the group to be removedproviderId - providerId of the auth providerAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolder updateShareSettings(AuthToken authToken, java.lang.String path, boolean sync) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the shared foldersync - whether to sync the share. If the role of the user is VIEWER, the share cannot be
set as syncingAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolder createTeamFolder(AuthToken authToken, java.lang.String path, java.lang.String label, java.lang.String contact, java.lang.Long quotaBytes) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the folder to be a team folderlabel - the label to give the team foldercontact - contact informationquotaBytes - the quota for the team folder, in bytesAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolder convertToTeamFolder(AuthToken authToken, java.lang.String path, java.lang.String contact, java.lang.Long quotaBytes) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the folder to be a team foldercontact - contact informationquotaBytes - the quota for the team folder, in bytesAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolder cancelTeamFolderRequest(AuthToken authToken, java.lang.String path) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the folder for which to cancel the requestAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolder approveTeamFolderRequest(AuthToken authToken, java.lang.String path) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the folder for which to approve the requestAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolder updateTeamFolder(AuthToken authToken, java.lang.String path, java.lang.String contact, java.lang.Long quotaBytes) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the folder for which to cancel the requestcontact - contact informationquotaBytes - the new quota for the team folder, in bytesAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic void deleteTeamFolder(AuthToken authToken, java.lang.String path) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - the path of the folder to deleteAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolderListing listSharedFolders(AuthToken authToken) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic ShareMemberListing listShareMembers(AuthToken authToken, java.lang.String path) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - The path of the shared folder.AwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic ShareMemberListing listShareMembers(AuthToken authToken, java.lang.String path, java.lang.String pageToken, java.lang.Integer pageSize) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - The path of the shared folder.pageToken - The page token to use to get multiple pages of users. Can be null.pageSize - The maximum amount of results that should be returned.AwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic ShareMemberListing listShareMembers(AuthToken authToken, java.lang.String path, java.lang.String pageToken, java.lang.Integer pageSize, ShareMemberListRequest.SortingCriterion sortingCriterion, ShareMemberListRequest.SortingDirection sortingDirection) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - The path of the shared folder.pageToken - The page token to use to get multiple pages of users. Can be null.pageSize - The maximum amount of results that should be returned.AwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic ShareMemberListing listShareUsers(AuthToken authToken, java.lang.String path) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - The path of the shared folder.AwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic SharedFolder syncMembership(AuthToken authToken, java.lang.String path, boolean increaseRole, boolean inviteDeclined) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - The path of the shared folderincreaseRole - Whether to increase the role of users if a group would grant them an
increased roleinviteDeclined - Whether to invite users who have formerly declined, left, cancelled, or
been kicked out of the shared folderAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic ShareMemberListing preserveMembership(AuthToken authToken, java.lang.String path, boolean removeGroups) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - The path of the shared folderremoveGroups - Whether to remove the groups in the share as part of the preserve
membership operationAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic ShareMemberListing listShareGroups(AuthToken authToken, java.lang.String path) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - authentication token for the user performing the requestpath - The path of the shared folderAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereExceptionpublic ShareInviteSearchResult searchInvite(AuthToken authToken, java.lang.String path, java.lang.String filter) throws AwUnsupportedApiVersionException, java.io.IOException, AnywhereException
authToken - The authentication token for the user performing the requestpath - The path of the shared folderfilter - The filter for the users and groups to matchAwUnsupportedApiVersionExceptionjava.io.IOExceptionAnywhereException