Package net.risesoft.security.service
Interface RoleService
-
- All Known Implementing Classes:
RoleServiceImpl
public interface RoleService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteByRoleId(String id)删除RolefindById(String id)根据id获取角色List<Role>getRolesByUser(String id)拿到用户的所有权限IntegerhasAdminRole()判断管理员角色是否存在voidsaveRole(Role role)保存net.risedata.jdbc.commons.LPage<Role>searchForPage(Role role, net.risedata.jdbc.search.LPageable pageable)查询
-
-
-
Method Detail
-
searchForPage
net.risedata.jdbc.commons.LPage<Role> searchForPage(Role role, net.risedata.jdbc.search.LPageable pageable)
查询- Returns:
-
saveRole
void saveRole(Role role)
保存- Parameters:
role-
-
deleteByRoleId
void deleteByRoleId(String id)
删除- Parameters:
role-
-
hasAdminRole
Integer hasAdminRole()
判断管理员角色是否存在- Returns:
-
-