类 AccessControlList
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.internal.service.InternalHeaderResponse
cn.warpin.thirdPart.huawei.obs.obs.services.model.HeaderResponse
cn.warpin.thirdPart.huawei.obs.obs.services.model.AccessControlList
Bucket or object ACL Include a set of permissions (
Permission) authorized to specified grantee (
GranteeInterface).-
字段概要
字段修饰符和类型字段说明private booleanprivate Set<GrantAndPermission> private Ownerstatic final AccessControlListPre-defined access control policy: authenticated-readstatic final AccessControlListPre-defined access control policy: bucket-owner-full-controlstatic final AccessControlListPre-defined access control policy: bucket-owner-readstatic final AccessControlListPre-defined access control policy: log-delivery-writestatic final AccessControlListPre-defined access control policy: privatestatic final AccessControlListPre-defined access control policy: public-readstatic final AccessControlListPre-defined access control policy: public-read-deliveredstatic final AccessControlListPre-defined access control policy: public-read-writestatic final AccessControlListPre-defined access control policy: public-read-write-delivered从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.internal.service.InternalHeaderResponse
originalHeaders, responseHeaders, statusCode -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Obtain all permissions in the ACL.Obtain all permissions in the ACL.getOwner()Obtain the owner.getPermissionsForGrantee(GranteeInterface grantee) Obtain the permission specified in the ACLGranteeInterface.voidgrantAllPermissions(GrantAndPermission[] grantAndPermissions) Add grantee groups to the ACL.grantPermission(GranteeInterface grantee, Permission permission) Specify permissionsPermissionin the ACLGranteeInterface.grantPermission(GranteeInterface grantee, Permission permission, boolean delivered) booleanCheck whether the object ACL is delivered.voidsetDelivered(boolean delivered) Specify whether to deliver the object ACL.voidSet the owner.toString()从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.HeaderResponse
getOriginalHeaders, getRequestId, getResponseHeaders, getStatusCode从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.internal.service.InternalHeaderResponse
setOriginalHeaders, setResponseHeaders, setStatusCode
-
字段详细资料
-
REST_CANNED_PRIVATE
Pre-defined access control policy: private -
REST_CANNED_PUBLIC_READ
Pre-defined access control policy: public-read -
REST_CANNED_PUBLIC_READ_WRITE
Pre-defined access control policy: public-read-write -
REST_CANNED_PUBLIC_READ_DELIVERED
Pre-defined access control policy: public-read-delivered -
REST_CANNED_PUBLIC_READ_WRITE_DELIVERED
Pre-defined access control policy: public-read-write-delivered -
REST_CANNED_AUTHENTICATED_READ
Pre-defined access control policy: authenticated-read -
REST_CANNED_BUCKET_OWNER_READ
Pre-defined access control policy: bucket-owner-read -
REST_CANNED_BUCKET_OWNER_FULL_CONTROL
Pre-defined access control policy: bucket-owner-full-control -
REST_CANNED_LOG_DELIVERY_WRITE
Pre-defined access control policy: log-delivery-write -
grants
-
owner
-
delivered
private boolean delivered
-
-
构造器详细资料
-
AccessControlList
public AccessControlList()
-
-
方法详细资料
-
isDelivered
public boolean isDelivered()Check whether the object ACL is delivered.- 返回:
- Identifier specifying whether the ACL is delivered
-
setDelivered
public void setDelivered(boolean delivered) Specify whether to deliver the object ACL. (This is only applicable to object ACLs.)- 参数:
delivered- Whether to deliver the object ACL
-
getOwner
Obtain the owner.- 返回:
- Owner
-
setOwner
Set the owner.- 参数:
owner- Owner
-
getGrants
Obtain all permissions in the ACL.- 返回:
- All grantee groups
-
getPermissionsForGrantee
Obtain the permission specified in the ACLGranteeInterface.- 参数:
grantee- Authorized user- 返回:
- Permission list of
GranteeInterface
-
grantPermission
Specify permissionsPermissionin the ACLGranteeInterface.- 参数:
grantee- Authorized userpermission- Permissions defined inPermission- 返回:
- Permission information
-
grantPermission
public GrantAndPermission grantPermission(GranteeInterface grantee, Permission permission, boolean delivered) -
grantAllPermissions
Add grantee groups to the ACL.- 参数:
grantAndPermissions- Grantee group
-
getGrantAndPermissions
Obtain all permissions in the ACL.- 返回:
- All grantee groups
-
toString
- 覆盖:
toString在类中HeaderResponse
-