public class AccessControlList extends HeaderResponse
Permission) authorized to specified grantee (
GranteeInterface).| 限定符和类型 | 字段和说明 |
|---|---|
static AccessControlList |
REST_CANNED_AUTHENTICATED_READ
已过时。
|
static AccessControlList |
REST_CANNED_BUCKET_OWNER_FULL_CONTROL
已过时。
|
static AccessControlList |
REST_CANNED_BUCKET_OWNER_READ
已过时。
|
static AccessControlList |
REST_CANNED_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() |
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
@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 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 © 2021. All rights reserved.