public enum CannedAccessControlList extends Enum<CannedAccessControlList>
It defines some common permissions.
枚举常量和说明 |
---|
Default
This is only for object, means the permission inherits the bucket's
permission.
|
Private
The owner has the
Permission.FullControl , other
GroupGrantee.AllUsers does not have access. |
PublicRead
The owner has the
Permission.FullControl , other
GroupGrantee.AllUsers have read-only access. |
PublicReadWrite
Both the owner and
GroupGrantee.AllUsers have
Permission.FullControl . |
限定符和类型 | 方法和说明 |
---|---|
static CannedAccessControlList |
parse(String acl) |
String |
toString() |
static CannedAccessControlList |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CannedAccessControlList[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CannedAccessControlList Default
public static final CannedAccessControlList Private
Permission.FullControl
, other
GroupGrantee.AllUsers
does not have access.public static final CannedAccessControlList PublicRead
Permission.FullControl
, other
GroupGrantee.AllUsers
have read-only access.public static final CannedAccessControlList PublicReadWrite
GroupGrantee.AllUsers
have
Permission.FullControl
. It's not safe and thus not recommended.public static CannedAccessControlList[] values()
for (CannedAccessControlList c : CannedAccessControlList.values()) System.out.println(c);
public static CannedAccessControlList valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public String toString()
toString
在类中 Enum<CannedAccessControlList>
public static CannedAccessControlList parse(String acl)
Copyright © 2019. All Rights Reserved.