Class RoleServiceImpl
-
- All Implemented Interfaces:
net.risedata.jdbc.service.CrudService<Role,String>,RoleService
@Service public class RoleServiceImpl extends net.risedata.jdbc.service.impl.AutomaticCrudService<Role,String> implements RoleService
-
-
Field Summary
Fields Modifier and Type Field Description static StringADMIN_IDstatic StringROLE_ADMIN
-
Constructor Summary
Constructors Constructor Description RoleServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteByRoleId(String id)删除RolefindById(String id)根据id获取角色List<Role>getRolesByUser(String id)拿到用户的所有权限IntegerhasAdminRole()判断管理员角色是否存在voidsaveRole(Role role)保存-
Methods inherited from class net.risedata.jdbc.service.impl.AutomaticCrudService
findByIds, getDeleteExecutor, getInsertExecutor, getSearchExecutor, getT, getUpdateExecutor, searchAll
-
Methods inherited from class 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.risesoft.security.service.RoleService
searchForPage
-
-
-
-
Field Detail
-
ROLE_ADMIN
public static final String ROLE_ADMIN
- See Also:
- Constant Field Values
-
ADMIN_ID
public static final String ADMIN_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
saveRole
public void saveRole(Role role)
Description copied from interface:RoleService保存- Specified by:
saveRolein interfaceRoleService
-
deleteByRoleId
public void deleteByRoleId(String id)
Description copied from interface:RoleService删除- Specified by:
deleteByRoleIdin interfaceRoleService
-
getRolesByUser
public List<Role> getRolesByUser(String id)
Description copied from interface:RoleService拿到用户的所有权限- Specified by:
getRolesByUserin interfaceRoleService- Returns:
-
findById
public Role findById(String id)
Description copied from interface:RoleService根据id获取角色- Specified by:
findByIdin interfaceRoleService- Returns:
-
hasAdminRole
public Integer hasAdminRole()
Description copied from interface:RoleService判断管理员角色是否存在- Specified by:
hasAdminRolein interfaceRoleService- Returns:
-
-