com.obs.services.model

## 类 AccessControlList

- java.lang.Object
- - com.obs.services.internal.InternalHeaderResponse
  - - com.obs.services.model.HeaderResponse
    - - com.obs.services.model.AccessControlList

-     public class AccessControlList
      extends HeaderResponse

  Bucket or object ACL Include a set of permissions ( `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

    - ### 从类继承的字段 com.obs.services.internal.InternalHeaderResponse

      `responseHeaders, statusCode`

  - ### 构造器概要

    构造器
    构造器和说明
    `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()`

    - ### 从类继承的方法 com.obs.services.model.HeaderResponse

      `getRequestId, getResponseHeaders, getStatusCode`

    - ### 从类继承的方法 com.obs.services.internal.InternalHeaderResponse

      `setResponseHeaders, setStatusCode`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 字段详细资料

    - #### REST_CANNED_PRIVATE

          public static final AccessControlList REST_CANNED_PRIVATE

      Pre-defined access control policy: private

    - #### REST_CANNED_PUBLIC_READ

          public static final AccessControlList REST_CANNED_PUBLIC_READ

      Pre-defined access control policy: public-read

    - #### REST_CANNED_PUBLIC_READ_WRITE

          public static final AccessControlList REST_CANNED_PUBLIC_READ_WRITE

      Pre-defined access control policy: public-read-write

    - #### REST_CANNED_PUBLIC_READ_DELIVERED

          public static final AccessControlList REST_CANNED_PUBLIC_READ_DELIVERED

      Pre-defined access control policy: public-read-delivered

    - #### REST_CANNED_PUBLIC_READ_WRITE_DELIVERED

          public static final AccessControlList REST_CANNED_PUBLIC_READ_WRITE_DELIVERED

      Pre-defined access control policy: public-read-write-delivered

    - #### REST_CANNED_AUTHENTICATED_READ

          @Deprecated
          public static final AccessControlList REST_CANNED_AUTHENTICATED_READ

      已过时。
      Pre-defined access control policy: authenticated-read

    - #### REST_CANNED_BUCKET_OWNER_READ

          @Deprecated
          public static final AccessControlList REST_CANNED_BUCKET_OWNER_READ

      已过时。
      Pre-defined access control policy: bucket-owner-read

    - #### REST_CANNED_BUCKET_OWNER_FULL_CONTROL

          @Deprecated
          public static final AccessControlList REST_CANNED_BUCKET_OWNER_FULL_CONTROL

      已过时。
      Pre-defined access control policy: bucket-owner-full-control

    - #### REST_CANNED_LOG_DELIVERY_WRITE

          @Deprecated
          public static final AccessControlList REST_CANNED_LOG_DELIVERY_WRITE

      已过时。
      Pre-defined access control policy: log-delivery-write

  - ### 构造器详细资料

    - #### 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

          public Owner getOwner()

      Obtain the owner.
      返回:
        Owner

    - #### setOwner

          public void setOwner(Owner owner)

      Set the owner.
      参数:
        `owner` - Owner

    - #### getGrants

          public Set<GrantAndPermission> getGrants()

      Obtain all permissions in the ACL.
      返回:
        All grantee groups

    - #### getPermissionsForGrantee

          public List<Permission> getPermissionsForGrantee(GranteeInterface grantee)

      Obtain the permission specified in the ACL `GranteeInterface`.
      参数:
        `grantee` - Authorized user
      返回:
        Permission list of `GranteeInterface`

    - #### grantPermission

          public GrantAndPermission grantPermission(GranteeInterface grantee,
                                                    Permission permission)

      Specify permissions `Permission` in the ACL `GranteeInterface`.
      参数:
        `grantee` - Authorized user
        `permission` - Permissions defined in `Permission`
      返回:
        Permission information

    - #### grantPermission

          public GrantAndPermission grantPermission(GranteeInterface grantee,
                                                    Permission permission,
                                                    boolean delivered)

    - #### grantAllPermissions

          public void grantAllPermissions(GrantAndPermission[] grantAndPermissions)

      Add grantee groups to the ACL.
      参数:
        `grantAndPermissions` - Grantee group

    - #### getGrantAndPermissions

          public GrantAndPermission[] getGrantAndPermissions()

      Obtain all permissions in the ACL.
      返回:
        All grantee groups

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `HeaderResponse`

Copyright © 2021. All rights reserved.