public class AuthorityServiceImpl extends Object implements AuthorityService
ins| 构造器和说明 |
|---|
AuthorityServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Authority auth)
添加资源的授权信息
|
Authority |
get(String roleType,
long roleId,
String code)
获取权限配置对象
|
List<Authority> |
getAuthoritysByRole(String roleType,
long roleCode)
获取角色的授权信息
|
List<Module> |
getGroupModels(Role role)
获取团队角色的权限配置
|
List<Module> |
getProjectModels(Role role)
获取项目角色的权限配置
|
void |
initPermissions(long roleId,
List<Module> models) |
void |
remove(Connection conn,
String roleType,
long roleId,
String resourceCode,
String resourceType)
删除资源的授权信息
|
void |
remove(long authId)
删除资源的授权信息
|
void |
removeByRole(String roleType,
long roleCode)
删除角色对应的所有授权信息
|
void |
storePermissions(long roleId,
List<Module> models) |
public List<Authority> getAuthoritysByRole(String roleType, long roleCode)
AuthorityServicegetAuthoritysByRole 在接口中 AuthorityServiceroleType - 角色类型roleCode - 角色IDpublic void add(Authority auth)
AuthorityServiceadd 在接口中 AuthorityServiceauth - 权限对象public void remove(long authId)
AuthorityServiceremove 在接口中 AuthorityServiceauthId - 权限IDpublic void removeByRole(String roleType, long roleCode)
AuthorityServiceremoveByRole 在接口中 AuthorityServiceroleType - 角色类型roleCode - 角色IDpublic Authority get(String roleType, long roleId, String code)
AuthorityServiceget 在接口中 AuthorityServiceroleType - 角色类型roleId - 角色IDcode - 权限编码public List<Module> getGroupModels(Role role)
AuthorityServicegetGroupModels 在接口中 AuthorityServicerole - 角色对象public List<Module> getProjectModels(Role role)
AuthorityServicegetProjectModels 在接口中 AuthorityServicerole - 角色对象public void remove(Connection conn, String roleType, long roleId, String resourceCode, String resourceType)
conn - java.sql.ConnectionroleType - 角色类型roleId - 角色IDresourceCode - 权限编码resourceType - 资源类型public void storePermissions(long roleId,
List<Module> models)
storePermissions 在接口中 AuthorityServicepublic void initPermissions(long roleId,
List<Module> models)
initPermissions 在接口中 AuthorityServiceCopyright © 2023 Bstek. All rights reserved.