public class AccessControlList extends HeaderResponse
Permission
) authorized to specified grantee (GranteeInterface
).Modifier and Type | Field and Description |
---|---|
static AccessControlList |
REST_CANNED_AUTHENTICATED_READ
Deprecated.
|
static AccessControlList |
REST_CANNED_BUCKET_OWNER_FULL_CONTROL
Deprecated.
|
static AccessControlList |
REST_CANNED_BUCKET_OWNER_READ
Deprecated.
|
static AccessControlList |
REST_CANNED_LOG_DELIVERY_WRITE
Deprecated.
|
static AccessControlList |
REST_CANNED_PRIVATE
Pre-defined access control policy: private
|
static AccessControlList |
REST_CANNED_PUBLIC_READ
Pre-defined access control policy: public-read
|
static AccessControlList |
REST_CANNED_PUBLIC_READ_DELIVERED
Pre-defined access control policy: public-read-delivered
|
static AccessControlList |
REST_CANNED_PUBLIC_READ_WRITE
Pre-defined access control policy: public-read-write
|
static AccessControlList |
REST_CANNED_PUBLIC_READ_WRITE_DELIVERED
Pre-defined access control policy: public-read-write-delivered
|
Constructor and Description |
---|
AccessControlList() |
Modifier and Type | Method and Description |
---|---|
GrantAndPermission[] |
getGrantAndPermissions()
Obtain all permissions in the ACL.
|
Set<GrantAndPermission> |
getGrants()
Obtain all permissions in the ACL.
|
Owner |
getOwner()
Obtain the owner.
|
List<Permission> |
getPermissionsForGrantee(GranteeInterface grantee)
Obtain the permission specified in the ACL
GranteeInterface . |
void |
grantAllPermissions(GrantAndPermission[] grantAndPermissions)
Add grantee groups to the ACL.
|
GrantAndPermission |
grantPermission(GranteeInterface grantee,
Permission permission)
Specify permissions
Permission in the ACL GranteeInterface . |
boolean |
isDelivered()
Check whether the object ACL is delivered.
|
void |
setDelivered(boolean delivered)
Specify whether to deliver the object ACL.
|
void |
setOwner(Owner owner)
Set the owner.
|
String |
toString() |
getRequestId, getResponseHeaders, getStatusCode
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_PUBLIC_READ_DELIVERED
public static final AccessControlList REST_CANNED_PUBLIC_READ_WRITE_DELIVERED
@Deprecated public static final AccessControlList REST_CANNED_AUTHENTICATED_READ
@Deprecated public static final AccessControlList REST_CANNED_BUCKET_OWNER_READ
@Deprecated public static final AccessControlList REST_CANNED_BUCKET_OWNER_FULL_CONTROL
@Deprecated public static final AccessControlList REST_CANNED_LOG_DELIVERY_WRITE
public boolean isDelivered()
public void setDelivered(boolean delivered)
delivered
- Whether to deliver the object ACLpublic Owner getOwner()
public void setOwner(Owner owner)
owner
- Ownerpublic Set<GrantAndPermission> getGrants()
public List<Permission> getPermissionsForGrantee(GranteeInterface grantee)
GranteeInterface
.grantee
- Authorized userGranteeInterface
public GrantAndPermission grantPermission(GranteeInterface grantee, Permission permission)
Permission
in the ACL GranteeInterface
.grantee
- Authorized userpermission
- Permissions defined in Permission
public void grantAllPermissions(GrantAndPermission[] grantAndPermissions)
grantAndPermissions
- Grantee grouppublic GrantAndPermission[] getGrantAndPermissions()
public String toString()
toString
in class HeaderResponse
Copyright © 2019. All rights reserved.