## 类的使用
com.obs.services.model.GrantAndPermission

- 使用GrantAndPermission的程序包
  程序包 | 说明
  --- | ---
  com.obs.services.model |

- - ### com.obs.services.model中GrantAndPermission的使用

    返回GrantAndPermission的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `GrantAndPermission[]` | AccessControlList.`getGrantAndPermissions()` Obtain all permissions in the ACL.
    `GrantAndPermission[]` | BucketLoggingConfiguration.`getTargetGrants()` Obtain the log delivery group.
    `GrantAndPermission` | AccessControlList.`grantPermission(GranteeInterface grantee, Permission permission)` Specify permissions `Permission` in the ACL `GranteeInterface`.
    `GrantAndPermission` | AccessControlList.`grantPermission(GranteeInterface grantee, Permission permission, boolean delivered)`

    返回变量类型为GrantAndPermission的类型的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Set<GrantAndPermission>` | AccessControlList.`getGrants()` Obtain all permissions in the ACL.

    参数类型为GrantAndPermission的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | BucketLoggingConfiguration.`addTargetGrant(GrantAndPermission targetGrant)` Add permissions for logged objects
    `void` | AccessControlList.`grantAllPermissions(GrantAndPermission[] grantAndPermissions)` Add grantee groups to the ACL.
    `void` | BucketLoggingConfiguration.`setTargetGrants(GrantAndPermission[] targetGrants)` Set the log delivery group.

Copyright © 2021. All rights reserved.