类 PersonResourceApiImpl
- java.lang.Object
-
- net.risesoft.api.v0.permission.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()已过时。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 booleanhasPermission(@NotBlank String tenantId, @NotBlank String personId, @NotBlank String resourceId, Integer authority)已过时。判断person对resource是否有指定的操作权限booleanhasPermissionByCustomId(@NotBlank String tenantId, @NotBlank String personId, @NotBlank String customId, Integer authority)已过时。判断 person 对 customId 对应的 resource 是否有指定的操作权限List<net.risesoft.model.platform.VueMenu>listMenusRecursively(@NotBlank String tenantId, @NotBlank String personId, Integer authority, @NotBlank String resourceId)已过时。递归获得某一资源下,主体对象有相应权限的菜单List<net.risesoft.model.platform.Menu>listSubMenus(@NotBlank String tenantId, @NotBlank String personId, Integer authority, @NotBlank String resourceId)已过时。获得某一资源下,主体对象有相应操作权限的子菜单List<net.risesoft.model.platform.Resource>listSubResources(@NotBlank String tenantId, @NotBlank String personId, Integer authority, @NotBlank String resourceId)已过时。获得某一资源下,主体对象有相应操作权限的子节点
-
-
-
方法详细资料
-
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- 租户idpersonId- 操作者唯一标识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- 租户idpersonId- 人员idcustomId- 自定义idauthority- 操作类型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- 租户idpersonId- 操作者唯一标识authority- 操作类型AuthorityEnumresourceId- 资源唯一标识- 返回:
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- 租户idpersonId- 操作者唯一标识authority- 操作类型AuthorityEnumresourceId- 资源唯一标识- 返回:
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- 租户idpersonId- 操作者唯一标识authority- 操作类型AuthorityEnumresourceId- 资源唯一标识- 返回:
List<Resource>有操作权限的子节点- 从以下版本开始:
- 9.6.0
-
-