@Service public class SysRolePermissionServiceImpl extends BaseServiceImpl<SysRolePermissionMapper,SysRolePermission> implements SysRolePermissionService
角色权限关系 服务实现类
| Constructor and Description |
|---|
SysRolePermissionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteSysRolePermissionByRoleId(Long roleId)
根据角色id删除关联的权限关系
|
Set<String> |
getPermissionCodesByRoleId(Long roleId)
根据角色id获取可用的权限编码
|
List<Long> |
getPermissionIdsByRoleId(Long roleId)
根据角色id获取权限id列表
|
boolean |
isExistsByPermissionId(Long permissionId)
通过角色id判断在角色权限表中是否有数据存在
|
boolean |
saveSysRolePermission(Long roleId,
List<Long> permissionIds)
保存
|
boolean |
saveSysRolePermissionBatch(Long roleId,
org.apache.commons.collections4.SetUtils.SetView addSet)
批量保存角色权限关系
|
setPageParam, setPageParamcloseSqlSession, count, currentModelClass, getBaseMapper, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateById@Transactional(rollbackFor=java.lang.Exception.class) public boolean saveSysRolePermission(Long roleId, List<Long> permissionIds) throws Exception
SysRolePermissionServicesaveSysRolePermission in interface SysRolePermissionServiceExceptionpublic List<Long> getPermissionIdsByRoleId(Long roleId) throws Exception
SysRolePermissionServicegetPermissionIdsByRoleId in interface SysRolePermissionServiceExceptionpublic boolean saveSysRolePermissionBatch(Long roleId, org.apache.commons.collections4.SetUtils.SetView addSet)
SysRolePermissionServicesaveSysRolePermissionBatch in interface SysRolePermissionServicepublic boolean deleteSysRolePermissionByRoleId(Long roleId) throws Exception
SysRolePermissionServicedeleteSysRolePermissionByRoleId in interface SysRolePermissionServiceExceptionpublic Set<String> getPermissionCodesByRoleId(Long roleId) throws Exception
SysRolePermissionServicegetPermissionCodesByRoleId in interface SysRolePermissionServiceExceptionpublic boolean isExistsByPermissionId(Long permissionId) throws Exception
SysRolePermissionServiceisExistsByPermissionId in interface SysRolePermissionServiceExceptionCopyright © 2019. All rights reserved.