public static enum BoxItem.Permission extends java.lang.Enum<BoxItem.Permission>
| Enum Constant and Description |
|---|
CAN_COMMENT
The user can comment on the item.
|
CAN_DELETE
The user can delete the item.
|
CAN_DOWNLOAD
The user can download the item.
|
CAN_INVITE_COLLABORATOR
The user can invite collaborators to the item.
|
CAN_PREVIEW
The user can preview the item.
|
CAN_RENAME
The user can rename the item.
|
CAN_SET_SHARE_ACCESS
The user can set the access level for shared links to the item.
|
CAN_SHARE
The user can share the item.
|
CAN_UPLOAD
The user can upload to the item.
|
| Modifier and Type | Method and Description |
|---|---|
static BoxItem.Permission |
fromString(java.lang.String text) |
java.lang.String |
toString() |
static BoxItem.Permission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BoxItem.Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoxItem.Permission CAN_PREVIEW
public static final BoxItem.Permission CAN_DOWNLOAD
public static final BoxItem.Permission CAN_UPLOAD
public static final BoxItem.Permission CAN_INVITE_COLLABORATOR
public static final BoxItem.Permission CAN_RENAME
public static final BoxItem.Permission CAN_DELETE
public static final BoxItem.Permission CAN_SHARE
public static final BoxItem.Permission CAN_SET_SHARE_ACCESS
public static final BoxItem.Permission CAN_COMMENT
public static BoxItem.Permission[] values()
for (BoxItem.Permission c : BoxItem.Permission.values()) System.out.println(c);
public static BoxItem.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 BoxItem.Permission fromString(java.lang.String text)
public java.lang.String toString()
toString in class java.lang.Enum<BoxItem.Permission>