@Service(value="roleManager") public class RoleManagerImpl extends BaseManagerImpl<Role> implements RoleManager
描述:角色管理 处理实现类
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) RoleDao |
roleDao |
logger| 构造器和说明 |
|---|
RoleManagerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
create(Role entity) |
Role |
getByAlias(String alias) |
List<Role> |
getByType(String typeKey)
根据角色分类查询角色列表
|
List<Role> |
getListByAccount(String account)
根据用户账号获取角色列表
|
List<Role> |
getListByUserId(String userId)
根据用户ID获取角色列表
|
boolean |
isRoleExist(Role role)
判断角色是否存在。
|
void |
remove(String entityId) |
void |
update(Role entity) |
get, getDao, query, removeByIds, setDaocloseSqlSession, count, currentModelClass, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, query, removeByIdscount, getById, getMap, getObj, getOne, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, updateBatchById, updateBatchById, updateByIdRoleDao roleDao
public Role getByAlias(String alias)
getByAlias 在接口中 RoleManagerpublic List<Role> getListByUserId(String userId)
RoleManagergetListByUserId 在接口中 RoleManagerpublic List<Role> getListByAccount(String account)
RoleManagergetListByAccount 在接口中 RoleManagerpublic boolean isRoleExist(Role role)
RoleManagerisRoleExist 在接口中 RoleManagerpublic List<Role> getByType(String typeKey)
RoleManagergetByType 在接口中 RoleManagerpublic void create(Role entity)
public void update(Role entity)
Copyright © 2018. All rights reserved.