public enum FilePermission extends Enum<FilePermission>
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 FilePermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FilePermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FilePermission CAN_DOWNLOAD
public static final FilePermission CAN_UPLOAD
public static final FilePermission CAN_RENAME
public static final FilePermission CAN_DELETE
public static final FilePermission CAN_SHARE
public static final FilePermission CAN_SET_SHARE_ACCESS
public static final FilePermission CAN_PREVIEW
public static final FilePermission CAN_COMMENT
public static FilePermission[] values()
for (FilePermission c : FilePermission.values()) System.out.println(c);
public static FilePermission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2016. All rights reserved.