|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Permission>
com.amazonaws.services.s3.model.Permission
public enum Permission
Represents an access permission, as granted to grantees in an
AccessControlList
. Only a limited set of permission are available,
and each one is represented as a member of this enum.
Enum Constant Summary | |
---|---|
FullControl
Provides READ, WRITE, READ_ACP, and WRITE_ACP permissions. |
|
Read
When applied to a bucket, grants permission to list the bucket. |
|
ReadAcp
Grants permission to read the ACL for the applicable bucket or object. |
|
Write
When applied to a bucket, grants permission to create, overwrite, and delete any object in the bucket. |
|
WriteAcp
Gives permission to overwrite the ACP for the applicable bucket or object. |
Method Summary | |
---|---|
static Permission |
parsePermission(String str)
|
String |
toString()
Returns the string representation of this permission object as defined by Amazon S3, eg 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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Permission FullControl
It does not convey additional rights and is provided only for convenience.
public static final Permission Read
When applied to an object, grants permission to read the object data and/or metadata.
public static final Permission Write
This permission is not supported for objects.
public static final Permission ReadAcp
The owner of a bucket or object always has this permission implicitly.
public static final Permission WriteAcp
The owner of a bucket or object always has this permission implicitly.
Granting this permission is equivalent to granting FULL_CONTROL because the grant recipient can make any changes to the ACP.
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Permission>
public static Permission parsePermission(String str)
str
- a string representation of an S3 permission, eg
FULL_CONTROL
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |