类 PersonResourceApiImpl

  • 所有已实现的接口:
    PersonResourceApi

    @Primary
    @Validated
    @RestController("v0PersonResourceApiImpl")
    @RequestMapping(value="/services/rest/personResource",
                    produces="application/json")
    @Deprecated
    public class PersonResourceApiImpl
    extends Object
    implements PersonResourceApi
    已过时。
    人员资源权限查看组件
    从以下版本开始:
    9.6.0
    作者:
    dingzhaojun, qinman, mengjuhua
    Date:
    2022/2/10
    • 构造器详细资料

      • PersonResourceApiImpl

        public PersonResourceApiImpl()
        已过时。
    • 方法详细资料

      • hasPermission

        public boolean hasPermission​(@RequestParam("tenantId") @NotBlank
                                     @NotBlank String tenantId,
                                     @RequestParam("personId") @NotBlank
                                     @NotBlank String personId,
                                     @RequestParam("resourceId") @NotBlank
                                     @NotBlank String resourceId,
                                     @RequestParam("authority")
                                     Integer authority)
        已过时。
        判断person对resource是否有指定的操作权限
        指定者:
        hasPermission 在接口中 PersonResourceApi
        参数:
        tenantId - 租户id
        personId - 操作者唯一标识
        resourceId - 资源唯一标识
        authority - 操作类型 AuthorityEnum
        返回:
        Boolean 是否有权限
        从以下版本开始:
        9.6.0
      • hasPermissionByCustomId

        public boolean hasPermissionByCustomId​(@RequestParam("tenantId") @NotBlank
                                               @NotBlank String tenantId,
                                               @RequestParam("personId") @NotBlank
                                               @NotBlank String personId,
                                               @RequestParam("customId") @NotBlank
                                               @NotBlank String customId,
                                               @RequestParam("authority")
                                               Integer authority)
        已过时。
        判断 person 对 customId 对应的 resource 是否有指定的操作权限
        指定者:
        hasPermissionByCustomId 在接口中 PersonResourceApi
        参数:
        tenantId - 租户id
        personId - 人员id
        customId - 自定义id
        authority - 操作类型 AuthorityEnum
        返回:
        boolean
        从以下版本开始:
        9.6.0
      • listMenusRecursively

        public List<net.risesoft.model.platform.VueMenu> listMenusRecursively​(@RequestParam("tenantId") @NotBlank
                                                                              @NotBlank String tenantId,
                                                                              @RequestParam("personId") @NotBlank
                                                                              @NotBlank String personId,
                                                                              @RequestParam("authority")
                                                                              Integer authority,
                                                                              @RequestParam("resourceId") @NotBlank
                                                                              @NotBlank String resourceId)
        已过时。
        递归获得某一资源下,主体对象有相应权限的菜单
        指定者:
        listMenusRecursively 在接口中 PersonResourceApi
        参数:
        tenantId - 租户id
        personId - 操作者唯一标识
        authority - 操作类型 AuthorityEnum
        resourceId - 资源唯一标识
        返回:
        List<VueMenu> 有权限的子菜单
        从以下版本开始:
        9.6.0
      • listSubMenus

        public List<net.risesoft.model.platform.Menu> listSubMenus​(@RequestParam("tenantId") @NotBlank
                                                                   @NotBlank String tenantId,
                                                                   @RequestParam("personId") @NotBlank
                                                                   @NotBlank String personId,
                                                                   @RequestParam("authority")
                                                                   Integer authority,
                                                                   @RequestParam("resourceId") @NotBlank
                                                                   @NotBlank String resourceId)
        已过时。
        获得某一资源下,主体对象有相应操作权限的子菜单
        指定者:
        listSubMenus 在接口中 PersonResourceApi
        参数:
        tenantId - 租户id
        personId - 操作者唯一标识
        authority - 操作类型 AuthorityEnum
        resourceId - 资源唯一标识
        返回:
        List<Menu> 有操作权限的子菜单
        从以下版本开始:
        9.6.0
      • listSubResources

        public List<net.risesoft.model.platform.Resource> listSubResources​(@RequestParam("tenantId") @NotBlank
                                                                           @NotBlank String tenantId,
                                                                           @RequestParam("personId") @NotBlank
                                                                           @NotBlank String personId,
                                                                           @RequestParam("authority")
                                                                           Integer authority,
                                                                           @RequestParam("resourceId") @NotBlank
                                                                           @NotBlank String resourceId)
        已过时。
        获得某一资源下,主体对象有相应操作权限的子节点
        指定者:
        listSubResources 在接口中 PersonResourceApi
        参数:
        tenantId - 租户id
        personId - 操作者唯一标识
        authority - 操作类型 AuthorityEnum
        resourceId - 资源唯一标识
        返回:
        List<Resource> 有操作权限的子节点
        从以下版本开始:
        9.6.0