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

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

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

    声明为Permission的com.obs.services.model中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `static Permission` | Permission.`PERMISSION_FULL_CONTROL` Full control permission
    `static Permission` | Permission.`PERMISSION_FULL_CONTROL_OBJECT` 已过时。
    `static Permission` | Permission.`PERMISSION_READ` Read permission
    `static Permission` | Permission.`PERMISSION_READ_ACP` ACL read permission
    `static Permission` | Permission.`PERMISSION_READ_OBJECT` 已过时。
    `static Permission` | Permission.`PERMISSION_WRITE` Write permission
    `static Permission` | Permission.`PERMISSION_WRITE_ACP` ACL write permission

    返回Permission的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Permission` | GrantAndPermission.`getPermission()` Obtain the permission information.
    `static Permission` | Permission.`parsePermission(String str)` Obtain a permission object based on the string.

    返回变量类型为Permission的类型的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<Permission>` | AccessControlList.`getPermissionsForGrantee(GranteeInterface grantee)` Obtain the permission specified in the ACL `GranteeInterface`.

    参数类型为Permission的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `GrantAndPermission` | AccessControlList.`grantPermission(GranteeInterface grantee, Permission permission)` Specify permissions `Permission` in the ACL `GranteeInterface`.
    `GrantAndPermission` | AccessControlList.`grantPermission(GranteeInterface grantee, Permission permission, boolean delivered)`

    参数类型为Permission的com.obs.services.model中的构造器
    构造器和说明
    `GrantAndPermission(GranteeInterface grantee, Permission permission)` Constructor

Copyright © 2021. All rights reserved.