public class AccessControlList extends HeaderResponse
Permission) authorized to specified grantee (
GranteeInterface).| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static AccessControlList |
REST_CANNED_AUTHENTICATED_READ |
Pre-defined access control policy: authenticated-read
|
static AccessControlList |
REST_CANNED_BUCKET_OWNER_FULL_CONTROL |
Pre-defined access control policy: bucket-owner-full-control
|
static AccessControlList |
REST_CANNED_BUCKET_OWNER_READ |
Pre-defined access control policy: bucket-owner-read
|
static AccessControlList |
REST_CANNED_LOG_DELIVERY_WRITE |
Pre-defined access control policy: log-delivery-write
|
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
|
| 构造器 | 说明 |
|---|---|
AccessControlList() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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. |
GrantAndPermission |
grantPermission(GranteeInterface grantee,
Permission permission,
boolean delivered) |
|
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() |
getOriginalHeaders, getRequestId, getResponseHeaders, getStatusCodepublic 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
public static final AccessControlList REST_CANNED_AUTHENTICATED_READ
public static final AccessControlList REST_CANNED_BUCKET_OWNER_READ
public static final AccessControlList REST_CANNED_BUCKET_OWNER_FULL_CONTROL
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 userGranteeInterfacepublic GrantAndPermission grantPermission(GranteeInterface grantee, Permission permission)
Permission in the ACL
GranteeInterface.grantee - Authorized userpermission - Permissions defined in
Permissionpublic GrantAndPermission grantPermission(GranteeInterface grantee, Permission permission, boolean delivered)
public void grantAllPermissions(GrantAndPermission[] grantAndPermissions)
grantAndPermissions - Grantee grouppublic GrantAndPermission[] getGrantAndPermissions()
public String toString()
toString 在类中 HeaderResponseCopyright © 2025. All rights reserved.