Class Info |
|---|
public static final class File.Capabilities extends GenericJson Class of the current user's permissions for the file. Each permission corresponds to an action that can be taken by the user. |
Qualifier and Type | Method Name and Description |
|---|---|
clone() Clones a File.Capabilities object. | |
Boolean | Checks whether the current user has permission to add children to the folder. |
Boolean | Checks whether the current user has permission to change the value of copyRequiresWriterPermission for the file. |
Boolean | Checks whether the current user has permission to comment on the file. |
Boolean | Checks whether the current user has permission to copy the file. |
Boolean | Checks whether the current user has permission to delete the file. |
Boolean | getDeleteChildNodePermission() Checks whether the current user has permission to delete children from the folder. |
Boolean | Checks whether the current user has permission to download the file. |
Boolean | Checks whether the current user has permission to edit the file. |
Boolean | Checks whether the current user has permission to query children of the folder. |
Boolean | getReadHistoryVersionPermission() Checks whether the current user has permission to read the historical versions of the file. |
Boolean | getRemoveChildNodePermission() Checks whether the current user has permission to remove children from the folder. |
Boolean | Checks whether the current user has permission to rename the file. |
Boolean | Checks whether the current user has permission to modify the sharing settings for the file. |
Boolean | Checks whether the current user has permission to move the file to the recycle bin. |
Boolean | getRecycleChildNodePermission() Checks whether the current user has permission to move children of the folder to the recycle bin. |
Boolean | Checks whether the current user has permission to restore the file from the recycle bin. |
set(String fieldName, Object value) Sets a custom attribute and its value. | |
setAddChildNodePermission(Boolean addChildNodePermission) Sets whether the current user has permission to add children to the folder. | |
setWriterHasCopyPermission(Boolean writerHasCopyPermission) Sets whether the current user has permission to change the value of writerHasCopyPermission for the file. | |
setCommentPermission(Boolean commentPermission) Sets whether the current user has permission to comment on the file. | |
setCopyPermission(Boolean copyPermission) Sets whether the current user has permission to copy the file. | |
setDeletePermission(Boolean deletePermission) Sets whether the current user has permission to delete the file. | |
setDeleteChildNodePermission(Boolean deleteChildNodePermission) Sets whether the current user has permission to delete children from the folder. | |
setDownloadPermission(Boolean downloadPermission) Sets whether the current user has permission to download the file. | |
setEditPermission(Boolean editPermission) Sets whether the current user has permission to edit the file. | |
setRenameFilePermission(Boolean renameFilePermission) Sets whether the current user has permission to rename the file. | |
setShareFilePermission(Boolean shareFilePermission) Sets whether the current user has permission to modify the sharing settings for the file. | |
setRecyclePermission(Boolean recyclePermission) Sets whether the current user has permission to move the file to the recycle bin. | |
setRecycleChildNodePermission(Boolean recycleChildNodePermission) Sets whether the current user has permission to move children of the folder to the recycle bin. | |
setUnrecyclePermission(Boolean unrecyclePermission) Sets whether the current user has permission to restore the file from the recycle bin. | |
Boolean | Checks whether the current user has permission to modify the content of the file. |
setEditContentPermission(Boolean editContentPermission) Sets whether the current user has permission to modify the content of the file. | |
setListChildNodePermission(Boolean listChildNodePermission) Sets whether the current user has permission to query children of the folder. | |
setRemoveChildNodePermission(Boolean removeChildNodePermission) Sets whether the current user has permission to remove children from the folder. | |
setReadHistoryVersionPermission(Boolean readHistoryVersionPermission) Sets whether the current user has permission to read the historical versions of the file. |
Method |
|---|
public File.Capabilities clone() Clones a File.Capabilities object. |
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public Boolean getAddChildNodePermission() Checks whether the current user has permission to add children to the folder. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to add children to the folder. |
Method |
|---|
public Boolean getWriterHasCopyPermission() Checks whether the current user has permission to change the value of copyRequiresWriterPermission for the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to change the value of writerHasCopyPermission for the file. The writerHasCopyPermission specifies whether readers and commenters of the file have the copy, print, and download permissions for the file. |
Method |
|---|
public Boolean getCommentPermission() Checks whether the current user has permission to comment on the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to comment on the file. |
Method |
|---|
public Boolean getCopyPermission() Checks whether the current user has permission to copy the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to copy the file. |
Method |
|---|
public Boolean getDeletePermission() Checks whether the current user has permission to delete the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to delete the file. |
Method |
|---|
public Boolean getDeleteChildNodePermission() Checks whether the current user has permission to delete children from the folder. (This API is reserved.) |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to delete children from the folder. |
Method |
|---|
public Boolean getDownloadPermission() Checks whether the current user has permission to download the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to download the file. |
Method |
|---|
public Boolean getEditPermission() Checks whether the current user has permission to edit the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to edit the file. |
Method |
|---|
public Boolean getListChildNodePermission() Checks whether the current user has permission to query children of the folder. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to query children of the folder. |
Method |
|---|
public Boolean getReadHistoryVersionPermission() Checks whether the current user has permission to read the historical versions of the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to read the historical versions of the file. |
Method |
|---|
public Boolean getRemoveChildNodePermission() Checks whether the current user has permission to remove children from the folder. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to remove children from the folder. |
Method |
|---|
public Boolean getRenameFilePermission() Checks whether the current user has permission to rename the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to rename the file. |
Method |
|---|
public Boolean getShareFilePermission() Checks whether the current user has permission to modify the sharing settings for the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to modify the sharing settings for the file. |
Method |
|---|
public Boolean getRecyclePermission() Checks whether the current user has permission to move the file to the recycle bin. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to move the file to the recycle bin. |
Method |
|---|
public Boolean getRecycleChildNodePermission() Checks whether the current user has permission to move children of the folder to the recycle bin. (This API is reserved.) |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to move children of the folder to the recycle bin. |
Method |
|---|
public Boolean getUnrecyclePermission() Checks whether the current user has permission to restore the file from the recycle bin. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to restore the file from the recycle bin. |
Method |
|---|
public File.Capabilities set(String fieldName, Object value) Sets a custom attribute and its value. |
Parameters
Name | Description |
|---|---|
fieldName | Attribute name. |
value | Attribute value. |
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setAddChildNodePermission(Boolean addChildNodePermission) Sets whether the current user has permission to add children to the folder. |
Parameters
Name | Description |
|---|---|
addChildNodePermission | Indicates whether the current user has permission to add children to the folder. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setWriterHasCopyPermission(Boolean writerHasCopyPermission) Sets whether the current user has permission to change the value of writerHasCopyPermission for the file. |
Parameters
Name | Description |
|---|---|
writerHasCopyPermission | Indicates whether the current user has permission to change the value of writerHasCopyPermission for the file. The value is a Boolean value. The writerHasCopyPermission specifies whether readers and commenters of the file have the copy, print, and download permissions for the file.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setCommentPermission(Boolean commentPermission) Sets whether the current user has permission to comment on the file. |
Parameters
Name | Description |
|---|---|
commentPermission | Indicates whether the current user has permission to comment on the file. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setCopyPermission(Boolean copyPermission) Sets whether the current user has permission to copy the file. |
Parameters
Name | Description |
|---|---|
copyPermission | Indicates whether the current user has permission to copy the file. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setDeletePermission(Boolean deletePermission) Sets whether the current user has permission to delete the file. |
Parameters
Name | Description |
|---|---|
deletePermission | Indicates whether the current user has permission to delete the file. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setDeleteChildNodePermission(Boolean deleteChildNodePermission) Sets whether the current user has permission to delete children from the folder. (This API is reserved.) |
Parameters
Name | Description |
|---|---|
deleteChildNodePermission | Indicates whether the current user has permission to delete children from the folder. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setDownloadPermission(Boolean downloadPermission) Sets whether the current user has permission to download the file. |
Parameters
Name | Description |
|---|---|
downloadPermission | Indicates whether the current user has permission to download the file. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setEditPermission(Boolean editPermission) Sets whether the current user has permission to edit the file. |
Parameters
Name | Description |
|---|---|
editPermission | Indicates whether the current user has permission to edit the file. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setRenameFilePermission(Boolean renameFilePermission) Sets whether the current user has permission to rename the file. |
Parameters
Name | Description |
|---|---|
renameFilePermission | Indicates whether the current user has permission to rename the file. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setShareFilePermission(Boolean shareFilePermission) Sets whether the current user has permission to modify the sharing settings for the file. |
Parameters
Name | Description |
|---|---|
shareFilePermission | Indicates whether the current user has permission to modify the sharing settings for the file. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setRecyclePermission(Boolean recyclePermission) Sets whether the current user has permission to move the file to the recycle bin. |
Parameters
Name | Description |
|---|---|
recyclePermission | Indicates whether the current user has permission to move the file to the recycle bin. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setRecycleChildNodePermission(Boolean recycleChildNodePermission) Sets whether the current user has permission to move children of the folder to the recycle bin. (This API is reserved.) |
Parameters
Name | Description |
|---|---|
recycleChildNodePermission | Indicates whether the current user has permission to move children of the folder to the recycle bin. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setUnrecyclePermission(Boolean unrecyclePermission) Sets whether the current user has permission to restore the file from the recycle bin. |
Parameters
Name | Description |
|---|---|
unrecyclePermission | Indicates whether the current user has permission to restore the file from the recycle bin. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public Boolean getEditContentPermission() Checks whether the current user has permission to modify the content of the file. |
Returns
Type | Description |
|---|---|
Boolean | Whether the current user has permission to modify the content of the file.
|
Method |
|---|
public File.Capabilities setEditContentPermission(Boolean editContentPermission) Sets whether the current user has permission to modify the content of the file. |
Parameters
Name | Description |
|---|---|
editContentPermission | Indicates whether the current user has permission to modify the content of the file. The value is a Boolean value.
|
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setListChildNodePermission(Boolean listChildNodePermission) Sets whether the current user has permission to query children of the folder. |
Parameters
Name | Description |
|---|---|
listChildNodePermission | Indicates whether the current user has permission to query children of the folder. |
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setRemoveChildNodePermission(Boolean removeChildNodePermission) Sets whether the current user has permission to remove children from the folder. |
Parameters
Name | Description |
|---|---|
removeChildNodePermission | Indicates whether the current user has permission to remove children from the folder. |
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |
Method |
|---|
public File.Capabilities setReadHistoryVersionPermission(Boolean readHistoryVersionPermission) Sets whether the current user has permission to read the historical versions of the file. |
Parameters
Name | Description |
|---|---|
readHistoryVersionPermission | Indicates whether the current user has permission to read the historical versions of the file. |
Returns
Type | Description |
|---|---|
File.Capabilities | A File.Capabilities object. |