public static enum BoxFile.Permission extends java.lang.Enum<BoxFile.Permission>
| Enum Constant and Description |
|---|
CAN_COMMENT
The user can comment on the file.
|
CAN_DELETE
The user can delete the file.
|
CAN_DOWNLOAD
The user can download the file.
|
CAN_PREVIEW
The user can preview the file.
|
CAN_RENAME
The user can rename the file.
|
CAN_SET_SHARE_ACCESS
The user can set the access level for shared links to the file.
|
CAN_SHARE
The user can share the file.
|
CAN_UPLOAD
The user can upload new versions of the file.
|
| Modifier and Type | Method and Description |
|---|---|
static BoxFile.Permission |
fromString(java.lang.String text) |
java.lang.String |
toString() |
static BoxFile.Permission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BoxFile.Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoxFile.Permission CAN_DOWNLOAD
public static final BoxFile.Permission CAN_UPLOAD
public static final BoxFile.Permission CAN_RENAME
public static final BoxFile.Permission CAN_DELETE
public static final BoxFile.Permission CAN_SHARE
public static final BoxFile.Permission CAN_SET_SHARE_ACCESS
public static final BoxFile.Permission CAN_PREVIEW
public static final BoxFile.Permission CAN_COMMENT
public static BoxFile.Permission[] values()
for (BoxFile.Permission c : BoxFile.Permission.values()) System.out.println(c);
public static BoxFile.Permission valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static BoxFile.Permission fromString(java.lang.String text)
public java.lang.String toString()
toString in class java.lang.Enum<BoxFile.Permission>