| Package | Description |
|---|---|
| com.mbap.pp.core.resource.controller | |
| com.mbap.pp.core.resource.domain | |
| com.mbap.pp.core.resource.service | |
| com.mbap.pp.permission.controller | |
| com.mbap.pp.permission.service |
| Modifier and Type | Method and Description |
|---|---|
com.mbap.util.view.R |
MenuResourceRESTController.add(Resource resource)
提交新增菜单
|
com.mbap.util.view.R |
MenuResourceRESTController.Tree(Resource resource)
菜单管理树
|
com.mbap.util.view.R |
MenuResourceRESTController.update(Resource resource,
java.lang.String id)
提交菜单修改结果
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Resource> |
Resource.getChildrenMenu() |
| Modifier and Type | Method and Description |
|---|---|
int |
Resource.compareTo(Resource target) |
| Modifier and Type | Method and Description |
|---|---|
void |
Resource.setChildrenMenu(java.util.List<Resource> childrenMenu) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
ResourceService.getById(java.lang.String id)
根据id获取菜单或资源对象
|
Resource |
ResourceService.getMenuResourceById(java.lang.String id)
根据菜单、资源id获取菜单或资源对象
|
Resource |
ResourceService.save(Resource resource)
保存菜单或资源
|
Resource |
ResourceService.update(Resource updateResource)
修改菜单
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Resource> |
ResourceService.getChildren(java.lang.String pid)
获取子菜单
|
java.util.List<Resource> |
ResourceService.tree(java.lang.String pid,
java.lang.String menuTypeId)
读取菜单树
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
ResourceService.getAllParent(Resource menu,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> pMenus)
获取当前菜单所有父菜单
|
Resource |
ResourceService.save(Resource resource)
保存菜单或资源
|
Resource |
ResourceService.update(Resource updateResource)
修改菜单
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
ResourceService.setResourceToMap(java.util.List<Resource> menuList,
boolean open)
将菜单资源实体集合转换为map集合
|
| Modifier and Type | Method and Description |
|---|---|
com.mbap.util.view.R |
MenuPermissionRESTontroller.permissionTree(Resource resource)
登录用户权限菜单树
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Resource> |
ResourcePermissionService.getMenuResourceByOwner(java.lang.String ownerId,
int ownerType,
java.lang.String menuTypeId)
获取持有者有权访问的菜单
|
java.util.List<Resource> |
ResourcePermissionService.getMenuResourceByStaff(com.mbap.pp.core.staff.domain.Staff staff,
java.lang.String menuName,
java.lang.String menuTypeId)
获取用户有权限访问的所有菜单
|
java.util.List<Resource> |
ResourcePermissionService.getPermissionMenuResourceByMenuId(com.mbap.pp.core.staff.domain.Staff staff,
java.lang.String pMenuId)
根据用户有权访问的父菜单id获取有权访问的子菜单
|
java.util.List<Resource> |
ClientPermissionService.getResourceList(java.lang.String clientId,
java.lang.String menuTypeId)
读取某客户端拥有的接口资源权限
|
| Modifier and Type | Method and Description |
|---|---|
void |
ResourcePermissionService.resourcePermissionDeleteLog(Resource resource)
删除资源权限日志
|