类 ResourceServiceImpl
java.lang.Object
com.baomidou.mybatisplus.extension.repository.AbstractRepository<M,T>
com.baomidou.mybatisplus.extension.repository.CrudRepository<M,T>
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<IResourceMapper,SysResources>
com.hengyi.xbaseweb.system.service.impl.ResourceServiceImpl
- 所有已实现的接口:
com.baomidou.mybatisplus.extension.repository.IRepository<SysResources>,com.baomidou.mybatisplus.extension.service.IService<SysResources>,IResourceService
@Service
public class ResourceServiceImpl
extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<IResourceMapper,SysResources>
implements IResourceService
Created:2019/3/26
Time:17:01
Author:dongzp
Email:90fanhua@gmail.com
Project:xbaseweb-plus
Use:
-
字段概要
从类继承的字段 com.baomidou.mybatisplus.extension.repository.CrudRepository
baseMapper从类继承的字段 com.baomidou.mybatisplus.extension.repository.AbstractRepository
log从接口继承的字段 com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int把某个资源分配到角色上int批量分配资源batchDelete(List<Long> ids) 批量删除checkAllotResourceIsRight(Long resourceId, String role) 判断当前分配的权限是否是正确的,如果他不是跟权限,就必须先分配负级的权限checkCanDeleteResources(Long resourcesId) 判断该权限能不能删除 一般是该权限下有子权限需要先删除子权限checkCanDeleteUserResources(Long resourcesId) 判断该权限是否分配给了某几个角色 如果分配了 就不允许删除checkResourcesIsAllot(Long resourcesId, String role) 判断角色是否已经分配checkUnAllotResourceIsRight(Long resourceId, String role) 判断当前权限是否可以取消分配,如果他的下面没有分配有子权限 就可以取消删除某个权限通过角色查询权限列表getResourcesList(ResourcesQueryDto queryDto) 查询资源列表getUserResourcesList(ResourcesQueryDto queryDto) 查询资源列表查询角色分配的资源ID列表int解除分配权限从类继承的方法 com.baomidou.mybatisplus.extension.repository.CrudRepository
getBaseMapper, getSqlStatement, saveBatch, saveOrUpdateBatch, updateBatchById从类继承的方法 com.baomidou.mybatisplus.extension.repository.AbstractRepository
executeBatch, executeBatch, getEntityClass, getMap, getMapperClass, getObj, getOne, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdate从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.baomidou.mybatisplus.extension.repository.IRepository
count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById从接口继承的方法 com.baomidou.mybatisplus.extension.service.IService
removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
-
构造器详细资料
-
ResourceServiceImpl
public ResourceServiceImpl()
-
-
方法详细资料
-
getResourcesList
从接口复制的说明:IResourceService查询资源列表- 指定者:
getResourcesList在接口中IResourceService- 返回:
-
getUserResourcesList
从接口复制的说明:IResourceService查询资源列表- 指定者:
getUserResourcesList在接口中IResourceService- 返回:
-
delete
删除某个权限- 指定者:
delete在接口中IResourceService- 参数:
resourceId-
-
batchDelete
从接口复制的说明:IResourceService批量删除- 指定者:
batchDelete在接口中IResourceService- 返回:
-
getResourceByRole
通过角色查询权限列表- 指定者:
getResourceByRole在接口中IResourceService- 返回:
-
allotResource
从接口复制的说明:IResourceService把某个资源分配到角色上- 指定者:
allotResource在接口中IResourceService- 返回:
-
batchAllotResource
从接口复制的说明:IResourceService批量分配资源- 指定者:
batchAllotResource在接口中IResourceService- 返回:
-
unAllotResource
从接口复制的说明:IResourceService解除分配权限- 指定者:
unAllotResource在接口中IResourceService- 返回:
-
checkCanDeleteResources
从接口复制的说明:IResourceService判断该权限能不能删除 一般是该权限下有子权限需要先删除子权限- 指定者:
checkCanDeleteResources在接口中IResourceService- 返回:
-
checkCanDeleteUserResources
从接口复制的说明:IResourceService判断该权限是否分配给了某几个角色 如果分配了 就不允许删除- 指定者:
checkCanDeleteUserResources在接口中IResourceService- 返回:
-
checkResourcesIsAllot
从接口复制的说明:IResourceService判断角色是否已经分配- 指定者:
checkResourcesIsAllot在接口中IResourceService- 返回:
-
checkAllotResourceIsRight
从接口复制的说明:IResourceService判断当前分配的权限是否是正确的,如果他不是跟权限,就必须先分配负级的权限- 指定者:
checkAllotResourceIsRight在接口中IResourceService- 返回:
-
checkUnAllotResourceIsRight
从接口复制的说明:IResourceService判断当前权限是否可以取消分配,如果他的下面没有分配有子权限 就可以取消- 指定者:
checkUnAllotResourceIsRight在接口中IResourceService- 返回:
-
queryRoleResourceIdList
从接口复制的说明:IResourceService查询角色分配的资源ID列表- 指定者:
queryRoleResourceIdList在接口中IResourceService- 返回:
-