接口 PersonResourceApi


  • @Validated
    @Deprecated
    public interface PersonResourceApi
    已过时。
    人员资源权限组件
    从以下版本开始:
    9.6.0
    作者:
    dingzhaojun, qinman, mengjuhua
    Date:
    2022/2/10
    • 方法详细资料

      • hasPermission

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

        @GetMapping("/hasPermissionByCustomId")
        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 是否有指定的操作权限
        参数:
        tenantId - 租户id
        personId - 人员id
        customId - 自定义id
        authority - 操作类型 AuthorityEnum
        返回:
        boolean
        从以下版本开始:
        9.6.0
      • listMenusRecursively

        @GetMapping("/listMenusRecursively")
        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)
        已过时。
        递归获得某一资源下,主体对象有相应权限的菜单
        参数:
        tenantId - 租户id
        personId - 操作者唯一标识
        authority - 操作类型 AuthorityEnum
        resourceId - 资源唯一标识
        返回:
        List<Resource> 有权限的子菜单
        从以下版本开始:
        9.6.0
      • listSubMenus

        @GetMapping("/listSubMenus")
        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)
        已过时。
        获得某一资源下,主体对象有相应操作权限的子节点(子节点必须为菜单)
        参数:
        tenantId - 租户id
        personId - 操作者唯一标识
        authority - 操作类型 AuthorityEnum
        resourceId - 资源唯一标识
        返回:
        List<Resource> 有操作权限的子菜单
        从以下版本开始:
        9.6.0
      • listSubResources

        @GetMapping("/listSubResources")
        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)
        已过时。
        获得某一资源下,主体对象有相应操作权限的子节点
        参数:
        tenantId - 租户id
        personId - 操作者唯一标识
        authority - 操作类型 AuthorityEnum
        resourceId - 资源唯一标识
        返回:
        List<Resource> 有操作权限的子节点
        从以下版本开始:
        9.6.0