Class DbxUserSharingRequests
- java.lang.Object
-
- com.dropbox.core.v2.sharing.DbxUserSharingRequests
-
public class DbxUserSharingRequests extends java.lang.ObjectRoutes in namespace "sharing".
-
-
Constructor Summary
Constructors Constructor Description DbxUserSharingRequests(DbxRawClientV2 client)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<FileMemberActionResult>addFileMember(java.lang.String file, java.util.List<MemberSelector> members)Adds specified members to a file.AddFileMemberBuilderaddFileMemberBuilder(java.lang.String file, java.util.List<MemberSelector> members)Adds specified members to a file.voidaddFolderMember(java.lang.String sharedFolderId, java.util.List<AddMember> members)Allows an owner or editor (if the ACL update policy allows) of a shared folder to add another member.AddFolderMemberBuilderaddFolderMemberBuilder(java.lang.String sharedFolderId, java.util.List<AddMember> members)Allows an owner or editor (if the ACL update policy allows) of a shared folder to add another member.JobStatuscheckJobStatus(java.lang.String asyncJobId)Returns the status of an asynchronous job.RemoveMemberJobStatuscheckRemoveMemberJobStatus(java.lang.String asyncJobId)Returns the status of an asynchronous job for sharing a folder.ShareFolderJobStatuscheckShareJobStatus(java.lang.String asyncJobId)Returns the status of an asynchronous job for sharing a folder.PathLinkMetadatacreateSharedLink(java.lang.String path)Deprecated.CreateSharedLinkBuildercreateSharedLinkBuilder(java.lang.String path)Deprecated.SharedLinkMetadatacreateSharedLinkWithSettings(java.lang.String path)Create a shared link with custom settings.SharedLinkMetadatacreateSharedLinkWithSettings(java.lang.String path, SharedLinkSettings settings)Create a shared link with custom settings.SharedFileMetadatagetFileMetadata(java.lang.String file)Returns shared file metadata.SharedFileMetadatagetFileMetadata(java.lang.String file, java.util.List<FileAction> actions)Returns shared file metadata.java.util.List<GetFileMetadataBatchResult>getFileMetadataBatch(java.util.List<java.lang.String> files)Returns shared file metadata.java.util.List<GetFileMetadataBatchResult>getFileMetadataBatch(java.util.List<java.lang.String> files, java.util.List<FileAction> actions)Returns shared file metadata.SharedFolderMetadatagetFolderMetadata(java.lang.String sharedFolderId)Returns shared folder metadata by its folder ID.SharedFolderMetadatagetFolderMetadata(java.lang.String sharedFolderId, java.util.List<FolderAction> actions)Returns shared folder metadata by its folder ID.DbxDownloader<SharedLinkMetadata>getSharedLinkFile(java.lang.String url)Download the shared link's file from a user's Dropbox.GetSharedLinkFileBuildergetSharedLinkFileBuilder(java.lang.String url)Download the shared link's file from a user's Dropbox.SharedLinkMetadatagetSharedLinkMetadata(java.lang.String url)Get the shared link's metadata.DbxUserGetSharedLinkMetadataBuildergetSharedLinkMetadataBuilder(java.lang.String url)Get the shared link's metadata.GetSharedLinksResultgetSharedLinks()Deprecated.GetSharedLinksResultgetSharedLinks(java.lang.String path)Deprecated.SharedFileMemberslistFileMembers(java.lang.String file)Use to obtain the members who have been invited to a file, both inherited and uninherited members.java.util.List<ListFileMembersBatchResult>listFileMembersBatch(java.util.List<java.lang.String> files)Get members of multiple files at once.java.util.List<ListFileMembersBatchResult>listFileMembersBatch(java.util.List<java.lang.String> files, long limit)Get members of multiple files at once.ListFileMembersBuilderlistFileMembersBuilder(java.lang.String file)Use to obtain the members who have been invited to a file, both inherited and uninherited members.SharedFileMemberslistFileMembersContinue(java.lang.String cursor)Once a cursor has been retrieved fromlistFileMembers(String)orlistFileMembersBatch(List,long), use this to paginate through all shared file members.SharedFolderMemberslistFolderMembers(java.lang.String sharedFolderId)Returns shared folder membership by its folder ID.ListFolderMembersBuilderlistFolderMembersBuilder(java.lang.String sharedFolderId)Returns shared folder membership by its folder ID.SharedFolderMemberslistFolderMembersContinue(java.lang.String cursor)Once a cursor has been retrieved fromlistFolderMembers(String), use this to paginate through all shared folder members.ListFoldersResultlistFolders()Return the list of all shared folders the current user has access to.ListFoldersBuilderlistFoldersBuilder()Return the list of all shared folders the current user has access to.ListFoldersResultlistFoldersContinue(java.lang.String cursor)Once a cursor has been retrieved fromlistFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), use this to paginate through all shared folders.ListFoldersResultlistMountableFolders()Return the list of all shared folders the current user can mount or unmount.ListMountableFoldersBuilderlistMountableFoldersBuilder()Return the list of all shared folders the current user can mount or unmount.ListFoldersResultlistMountableFoldersContinue(java.lang.String cursor)Once a cursor has been retrieved fromlistMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), use this to paginate through all mountable shared folders.ListFilesResultlistReceivedFiles()Returns a list of all files shared with current user.ListReceivedFilesBuilderlistReceivedFilesBuilder()Returns a list of all files shared with current user.ListFilesResultlistReceivedFilesContinue(java.lang.String cursor)Get more results with a cursor fromlistReceivedFiles(com.dropbox.core.v2.sharing.ListFilesArg).ListSharedLinksResultlistSharedLinks()List shared links of this user.ListSharedLinksBuilderlistSharedLinksBuilder()List shared links of this user.SharedLinkMetadatamodifySharedLinkSettings(java.lang.String url, SharedLinkSettings settings)Modify the shared link's settings.SharedLinkMetadatamodifySharedLinkSettings(java.lang.String url, SharedLinkSettings settings, boolean removeExpiration)Modify the shared link's settings.SharedFolderMetadatamountFolder(java.lang.String sharedFolderId)The current user mounts the designated folder.voidrelinquishFileMembership(java.lang.String file)The current user relinquishes their membership in the designated file.LaunchEmptyResultrelinquishFolderMembership(java.lang.String sharedFolderId)The current user relinquishes their membership in the designated shared folder and will no longer have access to the folder.LaunchEmptyResultrelinquishFolderMembership(java.lang.String sharedFolderId, boolean leaveACopy)The current user relinquishes their membership in the designated shared folder and will no longer have access to the folder.FileMemberActionIndividualResultremoveFileMember(java.lang.String file, MemberSelector member)Deprecated.useremoveFileMember2(String,MemberSelector)instead.FileMemberRemoveActionResultremoveFileMember2(java.lang.String file, MemberSelector member)Removes a specified member from the file.LaunchResultBaseremoveFolderMember(java.lang.String sharedFolderId, MemberSelector member, boolean leaveACopy)Allows an owner or editor (if the ACL update policy allows) of a shared folder to remove another member.voidrevokeSharedLink(java.lang.String url)Revoke a shared link.ShareFolderLaunchsetAccessInheritance(java.lang.String sharedFolderId)Change the inheritance policy of an existing Shared Folder.ShareFolderLaunchsetAccessInheritance(java.lang.String sharedFolderId, AccessInheritance accessInheritance)Change the inheritance policy of an existing Shared Folder.ShareFolderLaunchshareFolder(java.lang.String path)Share a folder with collaborators.ShareFolderBuildershareFolderBuilder(java.lang.String path)Share a folder with collaborators.voidtransferFolder(java.lang.String sharedFolderId, java.lang.String toDropboxId)Transfer ownership of a shared folder to a member of the shared folder.voidunmountFolder(java.lang.String sharedFolderId)The current user unmounts the designated folder.voidunshareFile(java.lang.String file)Remove all members from this file.LaunchEmptyResultunshareFolder(java.lang.String sharedFolderId)Allows a shared folder owner to unshare the folder.LaunchEmptyResultunshareFolder(java.lang.String sharedFolderId, boolean leaveACopy)Allows a shared folder owner to unshare the folder.MemberAccessLevelResultupdateFileMember(java.lang.String file, MemberSelector member, AccessLevel accessLevel)Changes a member's access on a shared file.MemberAccessLevelResultupdateFolderMember(java.lang.String sharedFolderId, MemberSelector member, AccessLevel accessLevel)Allows an owner or editor of a shared folder to update another member's permissions.SharedFolderMetadataupdateFolderPolicy(java.lang.String sharedFolderId)Update the sharing policies for a shared folder.UpdateFolderPolicyBuilderupdateFolderPolicyBuilder(java.lang.String sharedFolderId)Update the sharing policies for a shared folder.
-
-
-
Constructor Detail
-
DbxUserSharingRequests
public DbxUserSharingRequests(DbxRawClientV2 client)
-
-
Method Detail
-
addFileMember
public java.util.List<FileMemberActionResult> addFileMember(java.lang.String file, java.util.List<MemberSelector> members) throws AddFileMemberErrorException, DbxException
Adds specified members to a file.The default values for the optional request parameters will be used. See
AddFileMemberBuilderfor more details.- Parameters:
file- File to which to add members. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.members- Members to add. Note that even an email address is given, this may result in a user being directly added to the membership if that email is the user's main account email. Must not contain anullitem and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.AddFileMemberErrorExceptionDbxException
-
addFileMemberBuilder
public AddFileMemberBuilder addFileMemberBuilder(java.lang.String file, java.util.List<MemberSelector> members)
Adds specified members to a file.- Parameters:
file- File to which to add members. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.members- Members to add. Note that even an email address is given, this may result in a user being directly added to the membership if that email is the user's main account email. Must not contain anullitem and not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
addFolderMember
public void addFolderMember(java.lang.String sharedFolderId, java.util.List<AddMember> members) throws AddFolderMemberErrorException, DbxExceptionAllows an owner or editor (if the ACL update policy allows) of a shared folder to add another member.For the new member to get access to all the functionality for this folder, you will need to call
mountFolder(String)on their behalf.The default values for the optional request parameters will be used. See
AddFolderMemberBuilderfor more details.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.members- The intended list of members to add. Added members will receive invites to join the shared folder. Must not contain anullitem and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.AddFolderMemberErrorExceptionDbxException
-
addFolderMemberBuilder
public AddFolderMemberBuilder addFolderMemberBuilder(java.lang.String sharedFolderId, java.util.List<AddMember> members)
Allows an owner or editor (if the ACL update policy allows) of a shared folder to add another member. For the new member to get access to all the functionality for this folder, you will need to callmountFolder(String)on their behalf.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.members- The intended list of members to add. Added members will receive invites to join the shared folder. Must not contain anullitem and not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
checkJobStatus
public JobStatus checkJobStatus(java.lang.String asyncJobId) throws PollErrorException, DbxException
Returns the status of an asynchronous job.- Parameters:
asyncJobId- Id of the asynchronous job. This is the value of a response returned from the method that launched the job. Must have length of at least 1 and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.PollErrorExceptionDbxException
-
checkRemoveMemberJobStatus
public RemoveMemberJobStatus checkRemoveMemberJobStatus(java.lang.String asyncJobId) throws PollErrorException, DbxException
Returns the status of an asynchronous job for sharing a folder.- Parameters:
asyncJobId- Id of the asynchronous job. This is the value of a response returned from the method that launched the job. Must have length of at least 1 and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.PollErrorExceptionDbxException
-
checkShareJobStatus
public ShareFolderJobStatus checkShareJobStatus(java.lang.String asyncJobId) throws PollErrorException, DbxException
Returns the status of an asynchronous job for sharing a folder.- Parameters:
asyncJobId- Id of the asynchronous job. This is the value of a response returned from the method that launched the job. Must have length of at least 1 and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.PollErrorExceptionDbxException
-
createSharedLink
@Deprecated public PathLinkMetadata createSharedLink(java.lang.String path) throws CreateSharedLinkErrorException, DbxException
Deprecated.Create a shared link.If a shared link already exists for the given path, that link is returned.
Previously, it was technically possible to break a shared link by moving or renaming the corresponding file or folder. In the future, this will no longer be the case, so your app shouldn't rely on this behavior. Instead, if your app needs to revoke a shared link, use
revokeSharedLink(String).The default values for the optional request parameters will be used. See
CreateSharedLinkBuilderfor more details.- Parameters:
path- The path to share. Must not benull.- Returns:
- Metadata for a path-based shared link.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.CreateSharedLinkErrorExceptionDbxException
-
createSharedLinkBuilder
@Deprecated public CreateSharedLinkBuilder createSharedLinkBuilder(java.lang.String path)
Deprecated.Create a shared link. If a shared link already exists for the given path, that link is returned. Previously, it was technically possible to break a shared link by moving or renaming the corresponding file or folder. In the future, this will no longer be the case, so your app shouldn't rely on this behavior. Instead, if your app needs to revoke a shared link, userevokeSharedLink(String).- Parameters:
path- The path to share. Must not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
createSharedLinkWithSettings
public SharedLinkMetadata createSharedLinkWithSettings(java.lang.String path) throws CreateSharedLinkWithSettingsErrorException, DbxException
Create a shared link with custom settings. If no settings are given then the default visibility isRequestedVisibility.PUBLIC(The resolved visibility, though, may depend on other aspects such as team and shared folder settings).- Parameters:
path- The path to be shared by the shared link. Must match pattern "(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)" and not benull.- Returns:
- The metadata of a shared link.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.CreateSharedLinkWithSettingsErrorExceptionDbxException
-
createSharedLinkWithSettings
public SharedLinkMetadata createSharedLinkWithSettings(java.lang.String path, SharedLinkSettings settings) throws CreateSharedLinkWithSettingsErrorException, DbxException
Create a shared link with custom settings. If no settings are given then the default visibility isRequestedVisibility.PUBLIC(The resolved visibility, though, may depend on other aspects such as team and shared folder settings).- Parameters:
path- The path to be shared by the shared link. Must match pattern "(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)" and not benull.settings- The requested settings for the newly created shared link.- Returns:
- The metadata of a shared link.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.CreateSharedLinkWithSettingsErrorExceptionDbxException
-
getFileMetadata
public SharedFileMetadata getFileMetadata(java.lang.String file) throws GetFileMetadataErrorException, DbxException
Returns shared file metadata.- Parameters:
file- The file to query. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.- Returns:
- Properties of the shared file.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.GetFileMetadataErrorExceptionDbxException
-
getFileMetadata
public SharedFileMetadata getFileMetadata(java.lang.String file, java.util.List<FileAction> actions) throws GetFileMetadataErrorException, DbxException
Returns shared file metadata.- Parameters:
file- The file to query. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.actions- A list of `FileAction`s corresponding to `FilePermission`s that should appear in the response'sSharedFileMetadata.getPermissions()field describing the actions the authenticated user can perform on the file. Must not contain anullitem.- Returns:
- Properties of the shared file.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.GetFileMetadataErrorExceptionDbxException
-
getFileMetadataBatch
public java.util.List<GetFileMetadataBatchResult> getFileMetadataBatch(java.util.List<java.lang.String> files) throws SharingUserErrorException, DbxException
Returns shared file metadata.- Parameters:
files- The files to query. Must contain at most 100 items, not contain anullitem, and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SharingUserErrorExceptionDbxException
-
getFileMetadataBatch
public java.util.List<GetFileMetadataBatchResult> getFileMetadataBatch(java.util.List<java.lang.String> files, java.util.List<FileAction> actions) throws SharingUserErrorException, DbxException
Returns shared file metadata.- Parameters:
files- The files to query. Must contain at most 100 items, not contain anullitem, and not benull.actions- A list of `FileAction`s corresponding to `FilePermission`s that should appear in the response'sSharedFileMetadata.getPermissions()field describing the actions the authenticated user can perform on the file. Must not contain anullitem.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SharingUserErrorExceptionDbxException
-
getFolderMetadata
public SharedFolderMetadata getFolderMetadata(java.lang.String sharedFolderId) throws SharedFolderAccessErrorException, DbxException
Returns shared folder metadata by its folder ID.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- The metadata which includes basic information about the shared folder.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SharedFolderAccessErrorExceptionDbxException
-
getFolderMetadata
public SharedFolderMetadata getFolderMetadata(java.lang.String sharedFolderId, java.util.List<FolderAction> actions) throws SharedFolderAccessErrorException, DbxException
Returns shared folder metadata by its folder ID.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.actions- A list of `FolderAction`s corresponding to `FolderPermission`s that should appear in the response'sSharedFolderMetadata.getPermissions()field describing the actions the authenticated user can perform on the folder. Must not contain anullitem.- Returns:
- The metadata which includes basic information about the shared folder.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SharedFolderAccessErrorExceptionDbxException
-
getSharedLinkFile
public DbxDownloader<SharedLinkMetadata> getSharedLinkFile(java.lang.String url) throws GetSharedLinkFileErrorException, DbxException
Download the shared link's file from a user's Dropbox.- Parameters:
url- URL of the shared link. Must not benull.- Returns:
- Downloader used to download the response body and view the server response.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.GetSharedLinkFileErrorExceptionDbxException
-
getSharedLinkFileBuilder
public GetSharedLinkFileBuilder getSharedLinkFileBuilder(java.lang.String url)
Download the shared link's file from a user's Dropbox.- Parameters:
url- URL of the shared link. Must not benull.- Returns:
- Downloader builder for configuring the request parameters and instantiating a downloader.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
getSharedLinkMetadata
public SharedLinkMetadata getSharedLinkMetadata(java.lang.String url) throws SharedLinkErrorException, DbxException
Get the shared link's metadata.- Parameters:
url- URL of the shared link. Must not benull.- Returns:
- The metadata of a shared link.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SharedLinkErrorExceptionDbxException
-
getSharedLinkMetadataBuilder
public DbxUserGetSharedLinkMetadataBuilder getSharedLinkMetadataBuilder(java.lang.String url)
Get the shared link's metadata.- Parameters:
url- URL of the shared link. Must not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
getSharedLinks
@Deprecated public GetSharedLinksResult getSharedLinks() throws GetSharedLinksErrorException, DbxException
Deprecated.Returns a list ofLinkMetadataobjects for this user, including collection links.If no path is given, returns a list of all shared links for the current user, including collection links, up to a maximum of 1000 links.
If a non-empty path is given, returns a list of all shared links that allow access to the given path. Collection links are never returned in this case.
-
getSharedLinks
@Deprecated public GetSharedLinksResult getSharedLinks(java.lang.String path) throws GetSharedLinksErrorException, DbxException
Deprecated.Returns a list ofLinkMetadataobjects for this user, including collection links.If no path is given, returns a list of all shared links for the current user, including collection links, up to a maximum of 1000 links.
If a non-empty path is given, returns a list of all shared links that allow access to the given path. Collection links are never returned in this case.
- Parameters:
path- SeegetSharedLinks(String)description.- Throws:
GetSharedLinksErrorExceptionDbxException
-
listFileMembers
public SharedFileMembers listFileMembers(java.lang.String file) throws ListFileMembersErrorException, DbxException
Use to obtain the members who have been invited to a file, both inherited and uninherited members.The default values for the optional request parameters will be used. See
ListFileMembersBuilderfor more details.- Parameters:
file- The file for which you want to see members. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.- Returns:
- Shared file user, group, and invitee membership. Used for the
results of
listFileMembers(String)andlistFileMembersContinue(String), and used as part of the results forlistFileMembersBatch(List,long). - Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.ListFileMembersErrorExceptionDbxException
-
listFileMembersBuilder
public ListFileMembersBuilder listFileMembersBuilder(java.lang.String file)
Use to obtain the members who have been invited to a file, both inherited and uninherited members.- Parameters:
file- The file for which you want to see members. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
listFileMembersBatch
public java.util.List<ListFileMembersBatchResult> listFileMembersBatch(java.util.List<java.lang.String> files) throws SharingUserErrorException, DbxException
Get members of multiple files at once. The arguments to this route are more limited, and the limit on query result size per file is more strict. To customize the results more, use the individual file endpoint.Inherited users and groups are not included in the result, and permissions are not returned for this endpoint.
The
limitrequest parameter will default to10L(seelistFileMembersBatch(List,long)).- Parameters:
files- Files for which to return members. Must contain at most 100 items, not contain anullitem, and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SharingUserErrorExceptionDbxException
-
listFileMembersBatch
public java.util.List<ListFileMembersBatchResult> listFileMembersBatch(java.util.List<java.lang.String> files, long limit) throws SharingUserErrorException, DbxException
Get members of multiple files at once. The arguments to this route are more limited, and the limit on query result size per file is more strict. To customize the results more, use the individual file endpoint.Inherited users and groups are not included in the result, and permissions are not returned for this endpoint.
- Parameters:
files- Files for which to return members. Must contain at most 100 items, not contain anullitem, and not benull.limit- Number of members to return max per query. Defaults to 10 if no limit is specified. Must be less than or equal to 20.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SharingUserErrorExceptionDbxException
-
listFileMembersContinue
public SharedFileMembers listFileMembersContinue(java.lang.String cursor) throws ListFileMembersContinueErrorException, DbxException
Once a cursor has been retrieved fromlistFileMembers(String)orlistFileMembersBatch(List,long), use this to paginate through all shared file members.- Parameters:
cursor- The cursor returned by your last call tolistFileMembers(String),listFileMembersContinue(String), orlistFileMembersBatch(List,long). Must not benull.- Returns:
- Shared file user, group, and invitee membership. Used for the
results of
listFileMembers(String)andlistFileMembersContinue(String), and used as part of the results forlistFileMembersBatch(List,long). - Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.ListFileMembersContinueErrorExceptionDbxException
-
listFolderMembers
public SharedFolderMembers listFolderMembers(java.lang.String sharedFolderId) throws SharedFolderAccessErrorException, DbxException
Returns shared folder membership by its folder ID.The default values for the optional request parameters will be used. See
ListFolderMembersBuilderfor more details.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- Shared folder user and group membership.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SharedFolderAccessErrorExceptionDbxException
-
listFolderMembersBuilder
public ListFolderMembersBuilder listFolderMembersBuilder(java.lang.String sharedFolderId)
Returns shared folder membership by its folder ID.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
listFolderMembersContinue
public SharedFolderMembers listFolderMembersContinue(java.lang.String cursor) throws ListFolderMembersContinueErrorException, DbxException
Once a cursor has been retrieved fromlistFolderMembers(String), use this to paginate through all shared folder members.- Parameters:
cursor- The cursor returned by your last call tolistFolderMembers(String)orlistFolderMembersContinue(String). Must not benull.- Returns:
- Shared folder user and group membership.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.ListFolderMembersContinueErrorExceptionDbxException
-
listFolders
public ListFoldersResult listFolders() throws DbxApiException, DbxException
Return the list of all shared folders the current user has access to.The default values for the optional request parameters will be used. See
ListFoldersBuilderfor more details.- Returns:
- Result for
listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)orlistMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), depending on which endpoint was requested. Unmounted shared folders can be identified by the absence ofSharedFolderMetadata.getPathLower(). - Throws:
DbxApiExceptionDbxException
-
listFoldersBuilder
public ListFoldersBuilder listFoldersBuilder()
Return the list of all shared folders the current user has access to.- Returns:
- Request builder for configuring request parameters and completing the request.
-
listFoldersContinue
public ListFoldersResult listFoldersContinue(java.lang.String cursor) throws ListFoldersContinueErrorException, DbxException
Once a cursor has been retrieved fromlistFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), use this to paginate through all shared folders. The cursor must come from a previous call tolistFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)orlistFoldersContinue(String).- Parameters:
cursor- The cursor returned by the previous API call specified in the endpoint description. Must not benull.- Returns:
- Result for
listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)orlistMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), depending on which endpoint was requested. Unmounted shared folders can be identified by the absence ofSharedFolderMetadata.getPathLower(). - Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.ListFoldersContinueErrorExceptionDbxException
-
listMountableFolders
public ListFoldersResult listMountableFolders() throws DbxApiException, DbxException
Return the list of all shared folders the current user can mount or unmount.The default values for the optional request parameters will be used. See
ListMountableFoldersBuilderfor more details.- Returns:
- Result for
listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)orlistMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), depending on which endpoint was requested. Unmounted shared folders can be identified by the absence ofSharedFolderMetadata.getPathLower(). - Throws:
DbxApiExceptionDbxException
-
listMountableFoldersBuilder
public ListMountableFoldersBuilder listMountableFoldersBuilder()
Return the list of all shared folders the current user can mount or unmount.- Returns:
- Request builder for configuring request parameters and completing the request.
-
listMountableFoldersContinue
public ListFoldersResult listMountableFoldersContinue(java.lang.String cursor) throws ListFoldersContinueErrorException, DbxException
Once a cursor has been retrieved fromlistMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), use this to paginate through all mountable shared folders. The cursor must come from a previous call tolistMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)orlistMountableFoldersContinue(String).- Parameters:
cursor- The cursor returned by the previous API call specified in the endpoint description. Must not benull.- Returns:
- Result for
listFolders(com.dropbox.core.v2.sharing.ListFoldersArgs)orlistMountableFolders(com.dropbox.core.v2.sharing.ListFoldersArgs), depending on which endpoint was requested. Unmounted shared folders can be identified by the absence ofSharedFolderMetadata.getPathLower(). - Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.ListFoldersContinueErrorExceptionDbxException
-
listReceivedFiles
public ListFilesResult listReceivedFiles() throws SharingUserErrorException, DbxException
Returns a list of all files shared with current user.Does not include files the user has received via shared folders, and does not include unclaimed invitations.
The default values for the optional request parameters will be used. See
ListReceivedFilesBuilderfor more details.- Returns:
- Success results for
listReceivedFiles(com.dropbox.core.v2.sharing.ListFilesArg). - Throws:
SharingUserErrorExceptionDbxException
-
listReceivedFilesBuilder
public ListReceivedFilesBuilder listReceivedFilesBuilder()
Returns a list of all files shared with current user. Does not include files the user has received via shared folders, and does not include unclaimed invitations.- Returns:
- Request builder for configuring request parameters and completing the request.
-
listReceivedFilesContinue
public ListFilesResult listReceivedFilesContinue(java.lang.String cursor) throws ListFilesContinueErrorException, DbxException
Get more results with a cursor fromlistReceivedFiles(com.dropbox.core.v2.sharing.ListFilesArg).- Parameters:
cursor- Cursor inListFilesResult.getCursor(). Must not benull.- Returns:
- Success results for
listReceivedFiles(com.dropbox.core.v2.sharing.ListFilesArg). - Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.ListFilesContinueErrorExceptionDbxException
-
listSharedLinks
public ListSharedLinksResult listSharedLinks() throws ListSharedLinksErrorException, DbxException
List shared links of this user.If no path is given, returns a list of all shared links for the current user. For members of business teams using team space and member folders, returns all shared links in the team member's home folder unless the team space ID is specified in the request header. For more information, refer to the :link:`Namespace Guide https://www.dropbox.com/developers/reference/namespace-guide`.
If a non-empty path is given, returns a list of all shared links that allow access to the given path - direct links to the given path and links to parent folders of the given path. Links to parent folders can be suppressed by setting direct_only to true.
-
listSharedLinksBuilder
public ListSharedLinksBuilder listSharedLinksBuilder()
List shared links of this user. If no path is given, returns a list of all shared links for the current user. For members of business teams using team space and member folders, returns all shared links in the team member's home folder unless the team space ID is specified in the request header. For more information, refer to the Namespace Guide. If a non-empty path is given, returns a list of all shared links that allow access to the given path - direct links to the given path and links to parent folders of the given path. Links to parent folders can be suppressed by setting direct_only to true.- Returns:
- Request builder for configuring request parameters and completing the request.
-
modifySharedLinkSettings
public SharedLinkMetadata modifySharedLinkSettings(java.lang.String url, SharedLinkSettings settings) throws ModifySharedLinkSettingsErrorException, DbxException
Modify the shared link's settings.If the requested visibility conflict with the shared links policy of the team or the shared folder (in case the linked file is part of a shared folder) then the
LinkPermissions.getResolvedVisibility()of the returnedSharedLinkMetadatawill reflect the actual visibility of the shared link and theLinkPermissions.getRequestedVisibility()will reflect the requested visibility.The
removeExpirationrequest parameter will default tofalse(seemodifySharedLinkSettings(String,SharedLinkSettings,boolean)).- Parameters:
url- URL of the shared link to change its settings. Must not benull.settings- Set of settings for the shared link. Must not benull.- Returns:
- The metadata of a shared link.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.ModifySharedLinkSettingsErrorExceptionDbxException
-
modifySharedLinkSettings
public SharedLinkMetadata modifySharedLinkSettings(java.lang.String url, SharedLinkSettings settings, boolean removeExpiration) throws ModifySharedLinkSettingsErrorException, DbxException
Modify the shared link's settings.If the requested visibility conflict with the shared links policy of the team or the shared folder (in case the linked file is part of a shared folder) then the
LinkPermissions.getResolvedVisibility()of the returnedSharedLinkMetadatawill reflect the actual visibility of the shared link and theLinkPermissions.getRequestedVisibility()will reflect the requested visibility.- Parameters:
url- URL of the shared link to change its settings. Must not benull.settings- Set of settings for the shared link. Must not benull.removeExpiration- If set to true, removes the expiration of the shared link.- Returns:
- The metadata of a shared link.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.ModifySharedLinkSettingsErrorExceptionDbxException
-
mountFolder
public SharedFolderMetadata mountFolder(java.lang.String sharedFolderId) throws MountFolderErrorException, DbxException
The current user mounts the designated folder.Mount a shared folder for a user after they have been added as a member. Once mounted, the shared folder will appear in their Dropbox.
- Parameters:
sharedFolderId- The ID of the shared folder to mount. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- The metadata which includes basic information about the shared folder.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.MountFolderErrorExceptionDbxException
-
relinquishFileMembership
public void relinquishFileMembership(java.lang.String file) throws RelinquishFileMembershipErrorException, DbxExceptionThe current user relinquishes their membership in the designated file. Note that the current user may still have inherited access to this file through the parent folder.- Parameters:
file- The path or id for the file. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.RelinquishFileMembershipErrorExceptionDbxException
-
relinquishFolderMembership
public LaunchEmptyResult relinquishFolderMembership(java.lang.String sharedFolderId) throws RelinquishFolderMembershipErrorException, DbxException
The current user relinquishes their membership in the designated shared folder and will no longer have access to the folder. A folder owner cannot relinquish membership in their own folder.This will run synchronously if leave_a_copy is false, and asynchronously if leave_a_copy is true.
The
leaveACopyrequest parameter will default tofalse(seerelinquishFolderMembership(String,boolean)).- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- Result returned by methods that may either launch an asynchronous job or complete synchronously. Upon synchronous completion of the job, no additional information is returned.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.RelinquishFolderMembershipErrorExceptionDbxException
-
relinquishFolderMembership
public LaunchEmptyResult relinquishFolderMembership(java.lang.String sharedFolderId, boolean leaveACopy) throws RelinquishFolderMembershipErrorException, DbxException
The current user relinquishes their membership in the designated shared folder and will no longer have access to the folder. A folder owner cannot relinquish membership in their own folder.This will run synchronously if leave_a_copy is false, and asynchronously if leave_a_copy is true.
- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.leaveACopy- Keep a copy of the folder's contents upon relinquishing membership. This must be set to false when the folder is within a team folder or another shared folder.- Returns:
- Result returned by methods that may either launch an asynchronous job or complete synchronously. Upon synchronous completion of the job, no additional information is returned.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.RelinquishFolderMembershipErrorExceptionDbxException
-
removeFileMember
@Deprecated public FileMemberActionIndividualResult removeFileMember(java.lang.String file, MemberSelector member) throws RemoveFileMemberErrorException, DbxException
Deprecated.useremoveFileMember2(String,MemberSelector)instead.Identical to remove_file_member_2 but with less information returned.- Parameters:
file- File from which to remove members. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.member- Member to remove from this file. Note that even if an email is specified, it may result in the removal of a user (not an invitee) if the user's main account corresponds to that email address. Must not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.RemoveFileMemberErrorExceptionDbxException
-
removeFileMember2
public FileMemberRemoveActionResult removeFileMember2(java.lang.String file, MemberSelector member) throws RemoveFileMemberErrorException, DbxException
Removes a specified member from the file.- Parameters:
file- File from which to remove members. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.member- Member to remove from this file. Note that even if an email is specified, it may result in the removal of a user (not an invitee) if the user's main account corresponds to that email address. Must not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.RemoveFileMemberErrorExceptionDbxException
-
removeFolderMember
public LaunchResultBase removeFolderMember(java.lang.String sharedFolderId, MemberSelector member, boolean leaveACopy) throws RemoveFolderMemberErrorException, DbxException
Allows an owner or editor (if the ACL update policy allows) of a shared folder to remove another member.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.member- The member to remove from the folder. Must not benull.leaveACopy- If true, the removed user will keep their copy of the folder after it's unshared, assuming it was mounted. Otherwise, it will be removed from their Dropbox. This must be set to false when removing a group, or when the folder is within a team folder or another shared folder.- Returns:
- Result returned by methods that launch an asynchronous job. A
method who may either launch an asynchronous job, or complete the
request synchronously, can use this union by extending it, and adding
a 'complete' field with the type of the synchronous response. See
LaunchEmptyResultfor an example. - Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.RemoveFolderMemberErrorExceptionDbxException
-
revokeSharedLink
public void revokeSharedLink(java.lang.String url) throws RevokeSharedLinkErrorException, DbxExceptionRevoke a shared link.Note that even after revoking a shared link to a file, the file may be accessible if there are shared links leading to any of the file parent folders. To list all shared links that enable access to a specific file, you can use the
listSharedLinks(com.dropbox.core.v2.sharing.ListSharedLinksArg)with the file as theListSharedLinksArg.getPath()argument.- Parameters:
url- URL of the shared link. Must not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.RevokeSharedLinkErrorExceptionDbxException
-
setAccessInheritance
public ShareFolderLaunch setAccessInheritance(java.lang.String sharedFolderId) throws SetAccessInheritanceErrorException, DbxException
Change the inheritance policy of an existing Shared Folder. Only permitted for shared folders in a shared team root.If a
ShareFolderLaunch.getAsyncJobIdValue()is returned, you'll need to callcheckShareJobStatus(String)until the action completes to get the metadata for the folder.The
accessInheritancerequest parameter will default toAccessInheritance.INHERIT(seesetAccessInheritance(String,AccessInheritance)).- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SetAccessInheritanceErrorExceptionDbxException
-
setAccessInheritance
public ShareFolderLaunch setAccessInheritance(java.lang.String sharedFolderId, AccessInheritance accessInheritance) throws SetAccessInheritanceErrorException, DbxException
Change the inheritance policy of an existing Shared Folder. Only permitted for shared folders in a shared team root.If a
ShareFolderLaunch.getAsyncJobIdValue()is returned, you'll need to callcheckShareJobStatus(String)until the action completes to get the metadata for the folder.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.accessInheritance- The access inheritance settings for the folder. Must not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.SetAccessInheritanceErrorExceptionDbxException
-
shareFolder
public ShareFolderLaunch shareFolder(java.lang.String path) throws ShareFolderErrorException, DbxException
Share a folder with collaborators.Most sharing will be completed synchronously. Large folders will be completed asynchronously. To make testing the async case repeatable, set `ShareFolderArg.force_async`.
If a
ShareFolderLaunch.getAsyncJobIdValue()is returned, you'll need to callcheckShareJobStatus(String)until the action completes to get the metadata for the folder.The default values for the optional request parameters will be used. See
ShareFolderBuilderfor more details.- Parameters:
path- The path to the folder to share. If it does not exist, then a new one is created. Must match pattern "(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)" and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.ShareFolderErrorExceptionDbxException
-
shareFolderBuilder
public ShareFolderBuilder shareFolderBuilder(java.lang.String path)
Share a folder with collaborators. Most sharing will be completed synchronously. Large folders will be completed asynchronously. To make testing the async case repeatable, set `ShareFolderArg.force_async`. If aShareFolderLaunch.getAsyncJobIdValue()is returned, you'll need to callcheckShareJobStatus(String)until the action completes to get the metadata for the folder.- Parameters:
path- The path to the folder to share. If it does not exist, then a new one is created. Must match pattern "(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)" and not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
transferFolder
public void transferFolder(java.lang.String sharedFolderId, java.lang.String toDropboxId) throws TransferFolderErrorException, DbxExceptionTransfer ownership of a shared folder to a member of the shared folder.User must have
AccessLevel.OWNERaccess to the shared folder to perform a transfer.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.toDropboxId- A account or team member ID to transfer ownership to. Must have length of at least 1 and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.TransferFolderErrorExceptionDbxException
-
unmountFolder
public void unmountFolder(java.lang.String sharedFolderId) throws UnmountFolderErrorException, DbxExceptionThe current user unmounts the designated folder. They can re-mount the folder at a later time usingmountFolder(String).- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.UnmountFolderErrorExceptionDbxException
-
unshareFile
public void unshareFile(java.lang.String file) throws UnshareFileErrorException, DbxExceptionRemove all members from this file. Does not remove inherited members.- Parameters:
file- The file to unshare. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.UnshareFileErrorExceptionDbxException
-
unshareFolder
public LaunchEmptyResult unshareFolder(java.lang.String sharedFolderId) throws UnshareFolderErrorException, DbxException
Allows a shared folder owner to unshare the folder.You'll need to call
checkJobStatus(String)to determine if the action has completed successfully.The
leaveACopyrequest parameter will default tofalse(seeunshareFolder(String,boolean)).- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- Result returned by methods that may either launch an asynchronous job or complete synchronously. Upon synchronous completion of the job, no additional information is returned.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.UnshareFolderErrorExceptionDbxException
-
unshareFolder
public LaunchEmptyResult unshareFolder(java.lang.String sharedFolderId, boolean leaveACopy) throws UnshareFolderErrorException, DbxException
Allows a shared folder owner to unshare the folder.You'll need to call
checkJobStatus(String)to determine if the action has completed successfully.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.leaveACopy- If true, members of this shared folder will get a copy of this folder after it's unshared. Otherwise, it will be removed from their Dropbox. The current user, who is an owner, will always retain their copy.- Returns:
- Result returned by methods that may either launch an asynchronous job or complete synchronously. Upon synchronous completion of the job, no additional information is returned.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.UnshareFolderErrorExceptionDbxException
-
updateFileMember
public MemberAccessLevelResult updateFileMember(java.lang.String file, MemberSelector member, AccessLevel accessLevel) throws FileMemberActionErrorException, DbxException
Changes a member's access on a shared file.- Parameters:
file- File for which we are changing a member's access. Must have length of at least 1, match pattern "((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", and not benull.member- The member whose access we are changing. Must not benull.accessLevel- The new access level for the member. Must not benull.- Returns:
- Contains information about a member's access level to content after an operation.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.FileMemberActionErrorExceptionDbxException
-
updateFolderMember
public MemberAccessLevelResult updateFolderMember(java.lang.String sharedFolderId, MemberSelector member, AccessLevel accessLevel) throws UpdateFolderMemberErrorException, DbxException
Allows an owner or editor of a shared folder to update another member's permissions.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.member- The member of the shared folder to update. Only theMemberSelector.getDropboxIdValue()may be set at this time. Must not benull.accessLevel- The new access level forUpdateFolderMemberArg.getMember().AccessLevel.OWNERis disallowed. Must not benull.- Returns:
- Contains information about a member's access level to content after an operation.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.UpdateFolderMemberErrorExceptionDbxException
-
updateFolderPolicy
public SharedFolderMetadata updateFolderPolicy(java.lang.String sharedFolderId) throws UpdateFolderPolicyErrorException, DbxException
Update the sharing policies for a shared folder.User must have
AccessLevel.OWNERaccess to the shared folder to update its policies.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- The metadata which includes basic information about the shared folder.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.UpdateFolderPolicyErrorExceptionDbxException
-
updateFolderPolicyBuilder
public UpdateFolderPolicyBuilder updateFolderPolicyBuilder(java.lang.String sharedFolderId)
Update the sharing policies for a shared folder. User must haveAccessLevel.OWNERaccess to the shared folder to update its policies.- Parameters:
sharedFolderId- The ID for the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Returns:
- Request builder for configuring request parameters and completing the request.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-