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