Serializable, Comparable<AclEntryFlag>public enum AclEntryFlag extends Enum<AclEntryFlag>
AclEntry.
In this release, this class does not define flags related to AclEntryType#AUDIT and AclEntryType#ALARM entry types.
| 枚举常量 | 说明 |
|---|---|
DIRECTORY_INHERIT |
Can be placed on a directory and indicates that the ACL entry should be
added to each new directory created.
|
FILE_INHERIT |
Can be placed on a directory and indicates that the ACL entry should be
added to each new non-directory file created.
|
INHERIT_ONLY |
Can be placed on a directory but does not apply to the directory,
only to newly created files/directories as specified by the
FILE_INHERIT and DIRECTORY_INHERIT flags. |
NO_PROPAGATE_INHERIT |
Can be placed on a directory to indicate that the ACL entry should not
be placed on the newly created directory which is inheritable by
subdirectories of the created directory.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static AclEntryFlag |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static AclEntryFlag[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (AclEntryFlag c : AclEntryFlag.values()) System.out.println(c); |
public static final AclEntryFlag FILE_INHERIT
public static final AclEntryFlag DIRECTORY_INHERIT
public static final AclEntryFlag NO_PROPAGATE_INHERIT
public static final AclEntryFlag INHERIT_ONLY
FILE_INHERIT and DIRECTORY_INHERIT flags.public static AclEntryFlag[] values()
for (AclEntryFlag c : AclEntryFlag.values()) System.out.println(c);
public static AclEntryFlag valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值