接口 PositionResourceApi
-
@Validated @Deprecated public interface PositionResourceApi
已过时。岗位资源权限组件- 从以下版本开始:
- 9.6.0
- 作者:
- dingzhaojun, qinman, mengjuhua
- Date:
- 2022/2/10
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 booleanhasPermission(@NotBlank String tenantId, @NotBlank String positionId, @NotBlank String resourceId, Integer authority)已过时。判断person对resource是否有指定的操作权限booleanhasPermissionByCustomId(@NotBlank String tenantId, @NotBlank String positionId, @NotBlank String customId, Integer authority)已过时。判断岗位对 customId 对应的资源是否有指定的操作权限List<net.risesoft.model.platform.Resource>listSubMenus(@NotBlank String tenantId, @NotBlank String positionId, Integer authority, @NotBlank String resourceId)已过时。获得某一资源下,主体对象有相应操作权限的子菜单List<net.risesoft.model.platform.Resource>listSubResources(@NotBlank String tenantId, @NotBlank String positionId, Integer authority, String resourceId)已过时。获得某一资源下,主体对象有相应操作权限的子节点
-
-
-
方法详细资料
-
hasPermission
@GetMapping("/hasPermission") boolean hasPermission(@RequestParam("tenantId") @NotBlank @NotBlank String tenantId, @RequestParam("positionId") @NotBlank @NotBlank String positionId, @RequestParam("resourceId") @NotBlank @NotBlank String resourceId, @RequestParam("authority") Integer authority)已过时。判断person对resource是否有指定的操作权限- 参数:
tenantId- 租户idpositionId- 操作者唯一标识resourceId- 资源唯一标识authority- 操作类型AuthorityEnum- 返回:
- Boolean 是否有权限
- 从以下版本开始:
- 9.6.0
-
hasPermissionByCustomId
@GetMapping("/hasPermissionByCustomId") boolean hasPermissionByCustomId(@RequestParam("tenantId") @NotBlank @NotBlank String tenantId, @RequestParam("positionId") @NotBlank @NotBlank String positionId, @RequestParam("customId") @NotBlank @NotBlank String customId, @RequestParam("authority") Integer authority)已过时。判断岗位对 customId 对应的资源是否有指定的操作权限- 参数:
tenantId- 租户idpositionId- 岗位idcustomId- 自定义idauthority- 操作类型AuthorityEnum- 返回:
- boolean
- 从以下版本开始:
- 9.6.0
-
listSubMenus
@GetMapping("/listSubMenus") List<net.risesoft.model.platform.Resource> listSubMenus(@RequestParam("tenantId") @NotBlank @NotBlank String tenantId, @RequestParam("positionId") @NotBlank @NotBlank String positionId, @RequestParam("authority") Integer authority, @RequestParam("resourceId") @NotBlank @NotBlank String resourceId)已过时。获得某一资源下,主体对象有相应操作权限的子菜单- 参数:
tenantId- 租户idpositionId- 操作者唯一标识authority- 操作类型AuthorityEnumresourceId- 资源唯一标识- 返回:
- List<Resource> 有操作权限的子菜单
- 从以下版本开始:
- 9.6.0
-
listSubResources
@GetMapping("/listSubResources") List<net.risesoft.model.platform.Resource> listSubResources(@RequestParam("tenantId") @NotBlank @NotBlank String tenantId, @RequestParam("positionId") @NotBlank @NotBlank String positionId, @RequestParam("authority") Integer authority, @RequestParam(name="resourceId",required=false) String resourceId)已过时。获得某一资源下,主体对象有相应操作权限的子节点- 参数:
tenantId- 租户idpositionId- 操作者唯一标识authority- 操作类型AuthorityEnumresourceId- 资源唯一标识- 返回:
- List<Resource> 有操作权限的子节点
- 从以下版本开始:
- 9.6.0
-
-