public class DbxUserPaperRequests
extends java.lang.Object
Constructor and Description |
---|
DbxUserPaperRequests(DbxRawClientV2 client) |
Modifier and Type | Method and Description |
---|---|
void |
docsArchive(java.lang.String docId)
Deprecated.
|
DocsCreateUploader |
docsCreate(ImportFormat importFormat)
Deprecated.
|
DocsCreateUploader |
docsCreate(ImportFormat importFormat,
java.lang.String parentFolderId)
Deprecated.
|
DbxDownloader<PaperDocExportResult> |
docsDownload(java.lang.String docId,
ExportFormat exportFormat)
Deprecated.
|
DocsDownloadBuilder |
docsDownloadBuilder(java.lang.String docId,
ExportFormat exportFormat)
Deprecated.
|
ListUsersOnFolderResponse |
docsFolderUsersList(java.lang.String docId)
Deprecated.
|
ListUsersOnFolderResponse |
docsFolderUsersList(java.lang.String docId,
int limit)
Deprecated.
|
ListUsersOnFolderResponse |
docsFolderUsersListContinue(java.lang.String docId,
java.lang.String cursor)
Deprecated.
|
FoldersContainingPaperDoc |
docsGetFolderInfo(java.lang.String docId)
Deprecated.
|
ListPaperDocsResponse |
docsList()
Deprecated.
|
DocsListBuilder |
docsListBuilder()
Deprecated.
|
ListPaperDocsResponse |
docsListContinue(java.lang.String cursor)
Deprecated.
|
void |
docsPermanentlyDelete(java.lang.String docId)
Deprecated.
|
SharingPolicy |
docsSharingPolicyGet(java.lang.String docId)
Deprecated.
|
void |
docsSharingPolicySet(java.lang.String docId,
SharingPolicy sharingPolicy)
Deprecated.
|
DocsUpdateUploader |
docsUpdate(java.lang.String docId,
PaperDocUpdatePolicy docUpdatePolicy,
long revision,
ImportFormat importFormat)
Deprecated.
|
java.util.List<AddPaperDocUserMemberResult> |
docsUsersAdd(java.lang.String docId,
java.util.List<AddMember> members)
Deprecated.
|
DocsUsersAddBuilder |
docsUsersAddBuilder(java.lang.String docId,
java.util.List<AddMember> members)
Deprecated.
|
ListUsersOnPaperDocResponse |
docsUsersList(java.lang.String docId)
Deprecated.
|
DocsUsersListBuilder |
docsUsersListBuilder(java.lang.String docId)
Deprecated.
|
ListUsersOnPaperDocResponse |
docsUsersListContinue(java.lang.String docId,
java.lang.String cursor)
Deprecated.
|
void |
docsUsersRemove(java.lang.String docId,
MemberSelector member)
Deprecated.
|
PaperFolderCreateResult |
foldersCreate(java.lang.String name)
Deprecated.
|
FoldersCreateBuilder |
foldersCreateBuilder(java.lang.String name)
Deprecated.
|
public DbxUserPaperRequests(DbxRawClientV2 client)
@Deprecated public void docsArchive(java.lang.String docId) throws DocLookupErrorException, DbxException
This action can be performed or undone by anyone with edit permissions to the doc.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
This endpoint will be retired in September 2020. Refer to the Paper Migration Guide for more information.
docId
- The Paper doc ID. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public DocsCreateUploader docsCreate(ImportFormat importFormat) throws DbxException
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
This endpoint will be retired in September 2020. Refer to the Paper Migration Guide for more information.
importFormat
- The format of provided data. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DbxException
@Deprecated public DocsCreateUploader docsCreate(ImportFormat importFormat, java.lang.String parentFolderId) throws DbxException
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
This endpoint will be retired in September 2020. Refer to the Paper Migration Guide for more information.
importFormat
- The format of provided data. Must not be null
.parentFolderId
- The Paper folder ID where the Paper document
should be created. The API user has to have write access to this
folder or error is thrown.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DbxException
@Deprecated public DbxDownloader<PaperDocExportResult> docsDownload(java.lang.String docId, ExportFormat exportFormat) throws DocLookupErrorException, DbxException
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
docId
- The Paper doc ID. Must not be null
.exportFormat
- Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public DocsDownloadBuilder docsDownloadBuilder(java.lang.String docId, ExportFormat exportFormat)
docId
- The Paper doc ID. Must not be null
.exportFormat
- Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.@Deprecated public ListUsersOnFolderResponse docsFolderUsersList(java.lang.String docId) throws DocLookupErrorException, DbxException
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
The limit
request parameter will default to 1000
(see
docsFolderUsersList(String,int)
).
docId
- The Paper doc ID. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public ListUsersOnFolderResponse docsFolderUsersList(java.lang.String docId, int limit) throws DocLookupErrorException, DbxException
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
docId
- The Paper doc ID. Must not be null
.limit
- Size limit per batch. The maximum number of users that can
be retrieved per batch is 1000. Higher value results in invalid
arguments error. Must be greater than or equal to 1 and be less than
or equal to 1000.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public ListUsersOnFolderResponse docsFolderUsersListContinue(java.lang.String docId, java.lang.String cursor) throws ListUsersCursorErrorException, DbxException
docsFolderUsersList(String,int)
, use this to
paginate through all users on the Paper folder.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
docId
- The Paper doc ID. Must not be null
.cursor
- The cursor obtained from docsFolderUsersList(String,int)
or docsFolderUsersListContinue(String,String)
.
Allows for pagination. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.ListUsersCursorErrorException
DbxException
@Deprecated public FoldersContainingPaperDoc docsGetFolderInfo(java.lang.String docId) throws DocLookupErrorException, DbxException
- folder sharing policy; permissions for subfolders are set by the top-level folder.
- full 'filepath', i.e. the list of folders (both folderId and folderName) from the root folder to the folder directly containing the Paper doc.
If the Paper doc is not in any folder (aka unfiled) the response will be empty.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
docId
- The Paper doc ID. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public ListPaperDocsResponse docsList() throws DbxApiException, DbxException
docsListContinue(String)
.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
The default values for the optional request parameters will be used.
See DocsListBuilder
for more details.
DbxApiException
DbxException
@Deprecated public DocsListBuilder docsListBuilder()
docsListContinue(String)
. Note
that this endpoint will continue to work for content created by users on
the older version of Paper. To check which version of Paper a user is on,
use /users/features/get_values. If the paper_as_files feature is enabled,
then the user is running the new version of Paper. Refer to the Paper
Migration Guide for migration information.@Deprecated public ListPaperDocsResponse docsListContinue(java.lang.String cursor) throws ListDocsCursorErrorException, DbxException
docsList(com.dropbox.core.v2.paper.ListPaperDocsArgs)
, use this to paginate through all Paper
doc.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
cursor
- The cursor obtained from docsList(com.dropbox.core.v2.paper.ListPaperDocsArgs)
or docsListContinue(String)
. Allows for
pagination. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.ListDocsCursorErrorException
DbxException
@Deprecated public void docsPermanentlyDelete(java.lang.String docId) throws DocLookupErrorException, DbxException
This action can be performed only by the doc owner.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
docId
- The Paper doc ID. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public SharingPolicy docsSharingPolicyGet(java.lang.String docId) throws DocLookupErrorException, DbxException
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
docId
- The Paper doc ID. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public void docsSharingPolicySet(java.lang.String docId, SharingPolicy sharingPolicy) throws DocLookupErrorException, DbxException
The 'public_sharing_policy' policy can't be set to the value 'disabled' because this setting can be changed only via the team admin console.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
docId
- The Paper doc ID. Must not be null
.sharingPolicy
- The default sharing policy to be set for the Paper
doc. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public DocsUpdateUploader docsUpdate(java.lang.String docId, PaperDocUpdatePolicy docUpdatePolicy, long revision, ImportFormat importFormat) throws DbxException
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
This endpoint will be retired in September 2020. Refer to the Paper Migration Guide for more information.
docId
- The Paper doc ID. Must not be null
.docUpdatePolicy
- The policy used for the current update call. Must
not be null
.revision
- The latest doc revision. This value must match the head
revision or an error code will be returned. This is to prevent
colliding writes.importFormat
- The format of provided data. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DbxException
@Deprecated public java.util.List<AddPaperDocUserMemberResult> docsUsersAdd(java.lang.String docId, java.util.List<AddMember> members) throws DocLookupErrorException, DbxException
The doc owner's permissions cannot be changed.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
The default values for the optional request parameters will be used.
See DocsUsersAddBuilder
for more details.
docId
- The Paper doc ID. Must not be null
.members
- User which should be added to the Paper doc. Specify only
email address or Dropbox account ID. Must contain at most 20 items,
not contain a null
item, and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public DocsUsersAddBuilder docsUsersAddBuilder(java.lang.String docId, java.util.List<AddMember> members)
docId
- The Paper doc ID. Must not be null
.members
- User which should be added to the Paper doc. Specify only
email address or Dropbox account ID. Must contain at most 20 items,
not contain a null
item, and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.@Deprecated public ListUsersOnPaperDocResponse docsUsersList(java.lang.String docId) throws DocLookupErrorException, DbxException
The list will include both users, the explicitly shared ones as well as those who came in using the Paper url link.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
The default values for the optional request parameters will be used.
See DocsUsersListBuilder
for more details.
docId
- The Paper doc ID. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public DocsUsersListBuilder docsUsersListBuilder(java.lang.String docId)
docId
- The Paper doc ID. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.@Deprecated public ListUsersOnPaperDocResponse docsUsersListContinue(java.lang.String docId, java.lang.String cursor) throws ListUsersCursorErrorException, DbxException
docsUsersList(String)
, use this to paginate through
all users on the Paper doc.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
docId
- The Paper doc ID. Must not be null
.cursor
- The cursor obtained from docsUsersList(String)
or docsUsersListContinue(String,String)
. Allows
for pagination. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.ListUsersCursorErrorException
DbxException
@Deprecated public void docsUsersRemove(java.lang.String docId, MemberSelector member) throws DocLookupErrorException, DbxException
The doc owner cannot be removed.
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
docId
- The Paper doc ID. Must not be null
.member
- User which should be removed from the Paper doc. Specify
only email address or Dropbox account ID. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DocLookupErrorException
DbxException
@Deprecated public PaperFolderCreateResult foldersCreate(java.lang.String name) throws PaperFolderCreateErrorException, DbxException
Note that this endpoint will continue to work for content created by users on the older version of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files feature is enabled, then the user is running the new version of Paper.
Refer to the Paper Migration Guide for migration information.
name
- The name of the new Paper folder. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.PaperFolderCreateErrorException
DbxException
@Deprecated public FoldersCreateBuilder foldersCreateBuilder(java.lang.String name)
name
- The name of the new Paper folder. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.