|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jets3t.service.acl.AccessControlList
public class AccessControlList
Represents an Amazon S3 Access Control List (ACL), including the ACL's set of grantees and the permissions assigned to each grantee.
Field Summary | |
---|---|
static AccessControlList |
REST_CANNED_AUTHENTICATED_READ
A pre-canned REST ACL to set an object's permissions to Authenticated Read (authenticated Amazon users can read, only owner can write) |
static AccessControlList |
REST_CANNED_PRIVATE
A pre-canned REST ACL to set an object's permissions to Private (only owner can read/write) |
static AccessControlList |
REST_CANNED_PUBLIC_READ
A pre-canned REST ACL to set an object's permissions to Public Read (anyone can read, only owner can write) |
static AccessControlList |
REST_CANNED_PUBLIC_READ_WRITE
A pre-canned REST ACL to set an object's permissions to Public Read and Write (anyone can read/write) |
Constructor Summary | |
---|---|
AccessControlList()
|
Method Summary | |
---|---|
java.util.Set |
getGrants()
|
S3Owner |
getOwner()
|
void |
grantAllPermissions(java.util.Set grants)
Adds a set of grantee/permission pairs to the ACL, where each item in the set is a GrantAndPermission object. |
void |
grantPermission(GranteeInterface grantee,
Permission permission)
Adds a grantee to the ACL with the given permission. |
boolean |
isCannedRestACL()
|
void |
revokeAllPermissions(GranteeInterface grantee)
Revokes the permissions of a grantee by removing the grantee from the ACL. |
void |
setOwner(S3Owner owner)
|
java.lang.String |
toString()
Returns a string representation of the ACL contents, useful for debugging. |
java.lang.String |
toXml()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final AccessControlList REST_CANNED_PRIVATE
public static final AccessControlList REST_CANNED_PUBLIC_READ
public static final AccessControlList REST_CANNED_PUBLIC_READ_WRITE
public static final AccessControlList REST_CANNED_AUTHENTICATED_READ
Constructor Detail |
---|
public AccessControlList()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public S3Owner getOwner()
public void setOwner(S3Owner owner)
public void grantPermission(GranteeInterface grantee, Permission permission)
grantee
- the grantee to whom the permission will applypermission
- the permission to apply to the grantee.public void grantAllPermissions(java.util.Set grants)
GrantAndPermission
object.
grants
- a set of GrantAndPermission
objectspublic void revokeAllPermissions(GranteeInterface grantee)
grantee
- the grantee to remove from this ACL.public java.util.Set getGrants()
GrantAndPermission
objects in this ACL.public java.lang.String toXml() throws S3ServiceException
S3ServiceException
public boolean isCannedRestACL()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |