类 RoleServiceImpl
- java.lang.Object
-
- net.risedata.jdbc.service.impl.CrudServiceImpl<T,ID>
-
- net.risedata.jdbc.service.impl.AutomaticCrudService<Role,String>
-
- net.risesoft.api.persistence.security.impl.RoleServiceImpl
-
- 所有已实现的接口:
CrudService<Role,String>,RoleService
@Service public class RoleServiceImpl extends AutomaticCrudService<Role,String> implements RoleService
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringADMIN_IDstatic StringROLE_ADMIN
-
构造器概要
构造器 构造器 说明 RoleServiceImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddeleteByRoleId(String id)删除RolefindById(String id)根据id获取角色List<Role>getRolesByUser(String id)拿到用户的所有权限IntegerhasAdminRole()判断管理员角色是否存在voidsaveRole(Role role)保存-
从类继承的方法 net.risedata.jdbc.service.impl.AutomaticCrudService
findByIds, getDeleteExecutor, getInsertExecutor, getSearchExecutor, getT, getUpdateExecutor, searchAll
-
从类继承的方法 net.risedata.jdbc.service.impl.CrudServiceImpl
batchInsert, delete, delete, delete, deleteById, deleteById, deleteByIds, findById, findOne, findOne, findOne, getOne, hasById, insert, save, search, search, search, search, search, search, searchAllForPage, searchAllForPage, searchAllForPage, searchFieldById, searchForList, searchForList, searchForPage, searchForPage, searchForPage, searchForPage, searchForPage, update, updateById, updateById, updateById
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.risesoft.api.persistence.security.RoleService
searchForPage
-
-
-
-
方法详细资料
-
saveRole
public void saveRole(Role role)
从接口复制的说明:RoleService保存- 指定者:
saveRole在接口中RoleService
-
deleteByRoleId
public void deleteByRoleId(String id)
从接口复制的说明:RoleService删除- 指定者:
deleteByRoleId在接口中RoleService
-
getRolesByUser
public List<Role> getRolesByUser(String id)
从接口复制的说明:RoleService拿到用户的所有权限- 指定者:
getRolesByUser在接口中RoleService- 返回:
-
findById
public Role findById(String id)
从接口复制的说明:RoleService根据id获取角色- 指定者:
findById在接口中RoleService- 返回:
-
hasAdminRole
public Integer hasAdminRole()
从接口复制的说明:RoleService判断管理员角色是否存在- 指定者:
hasAdminRole在接口中RoleService- 返回:
-
-