Package com.kii.cloud.storage
Enum KiiACL.BucketAction
- java.lang.Object
-
- java.lang.Enum<KiiACL.BucketAction>
-
- com.kii.cloud.storage.KiiACL.BucketAction
-
- All Implemented Interfaces:
KiiACL.Action
,java.io.Serializable
,java.lang.Comparable<KiiACL.BucketAction>
- Enclosing class:
- KiiACL
public static enum KiiACL.BucketAction extends java.lang.Enum<KiiACL.BucketAction> implements KiiACL.Action
Defines action of bucket.
NOTE: Bucket ACL operation has not supported yet.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_OBJECTS_IN_BUCKET
Action of create object in the bucket.DROP_BUCKET_WITH_ALL_CONTENT
Action of drop bucket.QUERY_OBJECTS_IN_BUCKET
Action of query object in the bucket.READ_OBJECTS_IN_BUCKET
If this Action is granted, subject can READ the objects stored in the bucket.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KiiACL.BucketAction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static KiiACL.BucketAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUERY_OBJECTS_IN_BUCKET
public static final KiiACL.BucketAction QUERY_OBJECTS_IN_BUCKET
Action of query object in the bucket.
-
CREATE_OBJECTS_IN_BUCKET
public static final KiiACL.BucketAction CREATE_OBJECTS_IN_BUCKET
Action of create object in the bucket.
-
DROP_BUCKET_WITH_ALL_CONTENT
public static final KiiACL.BucketAction DROP_BUCKET_WITH_ALL_CONTENT
Action of drop bucket. It will also remove all the contents in the bucket.
-
READ_OBJECTS_IN_BUCKET
public static final KiiACL.BucketAction READ_OBJECTS_IN_BUCKET
If this Action is granted, subject can READ the objects stored in the bucket. When it's dropped, subject can only READ the objects that has ACL entry allows subject to READ (KiiACL.ObjectAction.READ_EXISTING_OBJECT
).
-
-
Method Detail
-
values
public static KiiACL.BucketAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KiiACL.BucketAction c : KiiACL.BucketAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KiiACL.BucketAction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-