public interface AuthorityManager
| 限定符和类型 | 字段和说明 |
|---|---|
static AuthorityManager |
ins |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Connection conn,
Authority authority)
添加资源的授权信息
|
Authority |
get(String roleType,
long roleId,
String code)
获取权限配置对象
|
List<Authority> |
getAuthoritysByCode(String roleType,
String code)
获取资源授权信息
|
List<Authority> |
getAuthoritysByRole(String roleType,
long roleId)
获取角色的授权信息
|
void |
remove(Connection conn,
long authId)
删除资源的授权信息
|
void |
remove(Connection conn,
String roleType,
long roleId,
String code,
String resourceType)
删除资源的授权信息
|
void |
removeByRole(String roleType,
long roleId)
删除角色对应的所有授权信息
|
static final AuthorityManager ins
List<Authority> getAuthoritysByCode(String roleType, String code)
roleType - 角色类型code - 权限代码List<Authority> getAuthoritysByRole(String roleType, long roleId)
roleType - 角色类型roleId - 角色IDAuthority get(String roleType, long roleId, String code)
roleType - 角色类型roleId - 角色IDcode - 权限代码void add(Connection conn, Authority authority)
conn - java.sql.Connectionauthority - 权限对象void remove(Connection conn, long authId)
conn - java.sql.ConnectionauthId - 权限IDvoid remove(Connection conn, String roleType, long roleId, String code, String resourceType)
conn - java.sql.ConnectionroleType - 角色类型roleId - 角色IDcode - 权限代码resourceType - 资源类型void removeByRole(String roleType, long roleId)
roleType - 角色类型roleId - 角色IDCopyright © 2023 Bstek. All rights reserved.