Package com.dropbox.core.v2.sharing
Enum FileAction
- java.lang.Object
-
- java.lang.Enum<FileAction>
-
- com.dropbox.core.v2.sharing.FileAction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileAction>
public enum FileAction extends java.lang.Enum<FileAction>
Sharing actions that may be taken on files.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_EDIT_LINK
Create a shared link to a file that allows users to edit the content.CREATE_LINK
Use create_view_link and create_edit_link instead.CREATE_VIEW_LINK
Create a shared link to a file that only allows users to view the content.DISABLE_VIEWER_INFO
Disable viewer information on the file.EDIT_CONTENTS
Change or edit contents of the file.ENABLE_VIEWER_INFO
Enable viewer information on the file.INVITE_EDITOR
Add a member with edit permissions.INVITE_VIEWER
Add a member with view permissions.INVITE_VIEWER_NO_COMMENT
Add a member with view permissions but no comment permissions.OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.RELINQUISH_MEMBERSHIP
Relinquish one's own membership to the file.SHARE_LINK
Use create_view_link and create_edit_link instead.UNSHARE
Stop sharing this file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileAction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FileAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLE_VIEWER_INFO
public static final FileAction DISABLE_VIEWER_INFO
Disable viewer information on the file.
-
EDIT_CONTENTS
public static final FileAction EDIT_CONTENTS
Change or edit contents of the file.
-
ENABLE_VIEWER_INFO
public static final FileAction ENABLE_VIEWER_INFO
Enable viewer information on the file.
-
INVITE_VIEWER
public static final FileAction INVITE_VIEWER
Add a member with view permissions.
-
INVITE_VIEWER_NO_COMMENT
public static final FileAction INVITE_VIEWER_NO_COMMENT
Add a member with view permissions but no comment permissions.
-
INVITE_EDITOR
public static final FileAction INVITE_EDITOR
Add a member with edit permissions.
-
UNSHARE
public static final FileAction UNSHARE
Stop sharing this file.
-
RELINQUISH_MEMBERSHIP
public static final FileAction RELINQUISH_MEMBERSHIP
Relinquish one's own membership to the file.
-
SHARE_LINK
public static final FileAction SHARE_LINK
Use create_view_link and create_edit_link instead.
-
CREATE_LINK
public static final FileAction CREATE_LINK
Use create_view_link and create_edit_link instead.
-
CREATE_VIEW_LINK
public static final FileAction CREATE_VIEW_LINK
Create a shared link to a file that only allows users to view the content.
-
CREATE_EDIT_LINK
public static final FileAction CREATE_EDIT_LINK
Create a shared link to a file that allows users to edit the content.
-
OTHER
public static final FileAction OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
-
-
Method Detail
-
values
public static FileAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileAction c : FileAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileAction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-