类 AppRoleTableRole.Builder

java.lang.Object
com.lark.oapi.service.bitable.v1.model.AppRoleTableRole.Builder
封闭类:
AppRoleTableRole

public static class AppRoleTableRole.Builder extends Object
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • tablePerm

      public AppRoleTableRole.Builder tablePerm(Integer tablePerm)
      数据表权限,`协作者可编辑自己的记录`和`可编辑指定字段`是`可编辑记录`的特殊情况,可通过指定`rec_rule`或`field_perm`参数实现相同的效果

      示例值:0

      参数:
      tablePerm -
      返回:
    • tablePerm

      数据表权限,`协作者可编辑自己的记录`和`可编辑指定字段`是`可编辑记录`的特殊情况,可通过指定`rec_rule`或`field_perm`参数实现相同的效果

      示例值:0

      参数:
      tablePerm - AppRoleTableRoleTablePermEnum
      返回:
    • tableName

      public AppRoleTableRole.Builder tableName(String tableName)
      数据表名

      示例值:数据表1

      参数:
      tableName -
      返回:
    • tableId

      public AppRoleTableRole.Builder tableId(String tableId)
      数据表ID

      示例值:tblKz5D60T4JlfcT

      参数:
      tableId -
      返回:
    • recRule

      记录筛选条件,在table_perm为1或2时有意义,用于指定可编辑或可阅读某些记录

      示例值:

      参数:
      recRule -
      返回:
    • fieldPerm

      public AppRoleTableRole.Builder fieldPerm(Map<String,Integer> fieldPerm)
      字段权限,仅在table_perm为2时有意义,设置字段可编辑或可阅读。类型为 map,key 是字段名,value 是字段权限;;**value 枚举值有:**;- `1`:可阅读;- `2`:可编辑

      示例值:{"姓名": 1, "年龄": 2}

      参数:
      fieldPerm -
      返回:
    • allowAddRecord

      public AppRoleTableRole.Builder allowAddRecord(Boolean allowAddRecord)
      新增记录权限,仅在table_perm为2时有意义,用于设置记录是否可以新增。

      示例值:true

      参数:
      allowAddRecord -
      返回:
    • allowDeleteRecord

      public AppRoleTableRole.Builder allowDeleteRecord(Boolean allowDeleteRecord)
      删除记录权限,仅在table_perm为2时有意义,用于设置记录是否可以删除

      示例值:true

      参数:
      allowDeleteRecord -
      返回:
    • build

      public AppRoleTableRole build()