类 AccessControlList

java.lang.Object
com.obs.services.internal.service.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).
  • 字段详细资料

    • 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

      public static final AccessControlList REST_CANNED_AUTHENTICATED_READ
      Pre-defined access control policy: authenticated-read
    • REST_CANNED_BUCKET_OWNER_READ

      public static final AccessControlList REST_CANNED_BUCKET_OWNER_READ
      Pre-defined access control policy: bucket-owner-read
    • REST_CANNED_BUCKET_OWNER_FULL_CONTROL

      public static final AccessControlList REST_CANNED_BUCKET_OWNER_FULL_CONTROL
      Pre-defined access control policy: bucket-owner-full-control
    • REST_CANNED_LOG_DELIVERY_WRITE

      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