public class DbxUserCloudDocsRequests
extends java.lang.Object
Constructor and Description |
---|
DbxUserCloudDocsRequests(DbxRawClientV2 client) |
Modifier and Type | Method and Description |
---|---|
DbxDownloader<java.lang.Void> |
getContent(java.lang.String fileId)
Fetch the binary content of the requested document.
|
GetContentBuilder |
getContentBuilder(java.lang.String fileId)
Fetch the binary content of the requested document.
|
GetMetadataResult |
getMetadata()
Fetches metadata associated with a Cloud Doc and user.
|
GetMetadataResult |
getMetadata(java.lang.String fileId)
Fetches metadata associated with a Cloud Doc and user.
|
LockResult |
lock()
Lock a Cloud Doc.
|
LockResult |
lock(java.lang.String fileId)
Lock a Cloud Doc.
|
RenameResult |
rename()
Update the title of a Cloud Doc.
|
RenameBuilder |
renameBuilder()
Update the title of a Cloud Doc.
|
UnlockResult |
unlock()
Unlock a Cloud Doc.
|
UnlockResult |
unlock(java.lang.String fileId)
Unlock a Cloud Doc.
|
UpdateContentUploader |
updateContent(java.lang.String fileId,
java.util.List<java.lang.String> actorTokens)
Update the contents of a Cloud Doc.
|
UpdateContentUploader |
updateContent(java.lang.String fileId,
java.util.List<java.lang.String> actorTokens,
java.util.List<Content> additionalContents)
Update the contents of a Cloud Doc.
|
public DbxUserCloudDocsRequests(DbxRawClientV2 client)
public DbxDownloader<java.lang.Void> getContent(java.lang.String fileId) throws CloudDocsAccessErrorException, DbxException
fileId
- Must have length of at least 4, match pattern "id:.+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.CloudDocsAccessErrorException
DbxException
public GetContentBuilder getContentBuilder(java.lang.String fileId)
fileId
- Must have length of at least 4, match pattern "id:.+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetMetadataResult getMetadata() throws GetMetadataErrorException, DbxException
The fileId
request parameter will default to "\"\""
(see getMetadata(String)
).
public GetMetadataResult getMetadata(java.lang.String fileId) throws GetMetadataErrorException, DbxException
fileId
- API ID ("id:...") associated with the Cloud Doc. Must not
be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.GetMetadataErrorException
DbxException
public LockResult lock() throws LockingErrorException, DbxException
The fileId
request parameter will default to "\"\""
(see lock(String)
).
LockingErrorException
DbxException
public LockResult lock(java.lang.String fileId) throws LockingErrorException, DbxException
fileId
- The API ID ("id:...") associated with the Cloud Doc. Must
not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.LockingErrorException
DbxException
public RenameResult rename() throws RenameErrorException, DbxException
The default values for the optional request parameters will be used.
See RenameBuilder
for more details.
RenameErrorException
DbxException
public RenameBuilder renameBuilder()
public UnlockResult unlock() throws LockingErrorException, DbxException
The fileId
request parameter will default to "\"\""
(see unlock(String)
).
LockingErrorException
DbxException
public UnlockResult unlock(java.lang.String fileId) throws LockingErrorException, DbxException
fileId
- The API ID ("id:...") associated with the Cloud Doc. Must
not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.LockingErrorException
DbxException
public UpdateContentUploader updateContent(java.lang.String fileId, java.util.List<java.lang.String> actorTokens) throws DbxException
fileId
- Must have length of at least 4, match pattern "id:.+
", and not be null
.actorTokens
- A list of auth_tokens, one for each editor who made
changes to the document since the last call to update_content. Must
not contain a null
item and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DbxException
public UpdateContentUploader updateContent(java.lang.String fileId, java.util.List<java.lang.String> actorTokens, java.util.List<Content> additionalContents) throws DbxException
fileId
- Must have length of at least 4, match pattern "id:.+
", and not be null
.actorTokens
- A list of auth_tokens, one for each editor who made
changes to the document since the last call to update_content. Must
not contain a null
item and not be null
.additionalContents
- Currently, this will always be empty until we
implement upload_additional_content. Must not contain a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.DbxException