public enum Permission extends Enum<Permission>
AccessControlList
でgranteeに与えるアクセス権限を定義した定数です。
幾つかの権限セットが有効で、いずでもこの列挙型で定義されています。Enum Constant and Description |
---|
FullControl
READ, WRITE, READ_ACP, and WRITE_ACP 権限を提供します。
|
Read
バケットに対してはリスト取得の権限を与え、オブジェクトに対しては
オブジェクトデータやオブジェクトメタデータへの権限を与えます
|
ReadAcp
バケットやオブジェクトに対するACLの読み込み権限を与えます。
|
Write
バケット内の全てのオブジェクトに対して、作成・変更・削除権限を与えます、
|
WriteAcp
バケットやオブジェクトに対するACLの上書き権限を与えます。
|
Modifier and Type | Method and Description |
---|---|
String |
getHeaderName()
この権限で使用するヘッダーの名前を取得します。
|
static Permission |
parsePermission(String str)
列挙型の値を、指定したpermission文字列から返します。
指定された文字列から を特定できなかった場合は
null が返ります |
String |
toString()
FULL_CONTROL のように、この権限の定義されている文字列表現を返します。 |
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Permission FullControl
追加の権限は伝達せず、利便性のために提供しています。
public static final Permission Read
public static final Permission Write
この権限はオブジェクトに対してはサポートされていません。
public static final Permission ReadAcp
バケットやオブジェクトのオーナーには暗黙にこの権限が付与されます
public static final Permission WriteAcp
バケットやオブジェクトのオーナーには暗黙にこの権限が付与されます
この権限を与えることは、FULL_CONTROL
と同義です。
なぜなら、この権限を持っているとどのようなACLにも変更することができるからです。
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission 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 nullpublic static Permission parsePermission(String str)
null
が返りますstr
- permission文字列(例: FULL_CONTROL
)null
public String getHeaderName()
例えば、READ
の場合は "x-iijgio-grant-read"
などです。
public String toString()
FULL_CONTROL
のように、この権限の定義されている文字列表現を返します。toString
in class Enum<Permission>
Copyright © 2018. All rights reserved.