@Service(value="roleManager") public class RoleManagerImpl extends AbstractManagerImpl<Role> implements RoleManager
描述:角色管理 处理实现类
| 构造器和说明 |
|---|
RoleManagerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
create(Role entity) |
Role |
getByAlias(String alias) |
List<Role> |
getByType(String typeKey)
根据角色分类查询角色列表
|
protected Dao<Role> |
getDao() |
List<Role> |
getListByAccount(String account)
根据用户账号获取角色列表
|
List<Role> |
getListByUserId(String userId)
根据用户ID获取角色列表
|
boolean |
isRoleExist(Role role)
判断角色是否存在。
|
void |
remove(String entityId) |
void |
update(Role entity) |
get, query, removeByIdsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, query, removeByIdsRoleDao roleDao
protected Dao<Role> getDao()
getDao 在类中 AbstractManagerImpl<Role>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.