@Before(value=BeforeHandler.class) @After(value=AfterHandler.class) @Mapping(value="/grit/api/v1/AuthService") @Remoting public class AuthServiceImpl extends Object implements AuthService
| 构造器和说明 |
|---|
AuthServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<ResourceEntity> |
getPermissionListBySpace(long subjectId,
long resourceSpaceId)
获取主体的授与权限列表
|
List<ResourceEntity> |
getResListByGroup(long subjectId,
long resourceGroupId) |
List<ResourceEntity> |
getResListByGroupCode(long subjectId,
String resourceGroupCode) |
List<SubjectGroup> |
getRoleList(long subjectId)
获取主体的角色列表
|
ResourceSpace |
getSpaceFrist(long subjectId)
获取主体的首个资源空间
|
List<ResourceSpace> |
getSpaceList(long subjectId)
获取主体的资源空间列表(已排序)
|
ResourceEntity |
getUriFristByGroup(long subjectId,
long resourceGroupId)
获取主体在某分组下的首个授与路径
|
ResourceEntity |
getUriFristBySpace(long subjectId,
long resourceSpaceId)
获取主体的首个授与路径
|
List<ResourceGroup> |
getUriGroupListBySpace(long subjectId,
long resourceSpaceId)
获取主体的授与路径分组列表(已排序)
|
List<ResourceEntity> |
getUriListByGroup(long subjectId,
long resourceGroupId)
获取主体的授与路径列表
|
List<ResourceEntity> |
getUriListBySpace(long subjectId,
long resourceSpaceId)
获取主体的授与路径列表
|
boolean |
hasPermissionBySpace(long subjectId,
long resourceSpaceId,
String permission)
检测主体是否有权限
|
boolean |
hasRole(long subjectId,
String role)
检测是否有角色
|
boolean |
hasUriBySpace(long subjectId,
long resourceSpaceId,
String uri)
检测主体是否有Uri
|
Subject |
login(String loginName,
String loginPassword)
主体登录
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPermissionList, getUriFrist, getUriGroupList, getUriList, hasPermission, hasUripublic Subject login(String loginName, String loginPassword) throws Exception
login 在接口中 AuthServiceloginName - 登录名loginPassword - 登录密码Exceptionpublic boolean hasUriBySpace(long subjectId,
long resourceSpaceId,
String uri)
throws SQLException
hasUriBySpace 在接口中 AuthServicesubjectId - 主体IdresourceSpaceId - 资源空间Iduri - 路径(例:/user/add)SQLExceptionpublic boolean hasPermissionBySpace(long subjectId,
long resourceSpaceId,
String permission)
throws SQLException
hasPermissionBySpace 在接口中 AuthServicesubjectId - 主体IdresourceSpaceId - 资源空间Idpermission - 权限(例:user:add)SQLExceptionpublic boolean hasRole(long subjectId,
String role)
throws SQLException
hasRole 在接口中 AuthServicesubjectId - role - 角色(例:water-admin)SQLExceptionpublic List<ResourceEntity> getResListByGroup(long subjectId, long resourceGroupId) throws SQLException
getResListByGroup 在接口中 AuthServiceSQLExceptionpublic List<ResourceEntity> getResListByGroupCode(long subjectId, String resourceGroupCode) throws SQLException
getResListByGroupCode 在接口中 AuthServiceSQLExceptionpublic List<ResourceEntity> getUriListByGroup(long subjectId, long resourceGroupId) throws SQLException
getUriListByGroup 在接口中 AuthServicesubjectId - 主体IdresourceGroupId - 资源组IdSQLExceptionpublic List<ResourceEntity> getUriListBySpace(long subjectId, long resourceSpaceId) throws SQLException
getUriListBySpace 在接口中 AuthServicesubjectId - 主体IdresourceSpaceId - 资源空间IdSQLExceptionpublic ResourceEntity getUriFristBySpace(long subjectId, long resourceSpaceId) throws SQLException
getUriFristBySpace 在接口中 AuthServicesubjectId - 主体IdresourceSpaceId - 资源空间IdSQLExceptionpublic ResourceEntity getUriFristByGroup(long subjectId, long resourceGroupId) throws SQLException
getUriFristByGroup 在接口中 AuthServicesubjectId - 主体IdresourceGroupId - 资源组IdSQLExceptionpublic List<ResourceGroup> getUriGroupListBySpace(long subjectId, long resourceSpaceId) throws SQLException
getUriGroupListBySpace 在接口中 AuthServicesubjectId - 主体IdresourceSpaceId - 资源空间IdSQLExceptionpublic List<ResourceEntity> getPermissionListBySpace(long subjectId, long resourceSpaceId) throws SQLException
getPermissionListBySpace 在接口中 AuthServicesubjectId - 主体IdresourceSpaceId - 资源空间IdSQLExceptionpublic List<SubjectGroup> getRoleList(long subjectId) throws SQLException
getRoleList 在接口中 AuthServicesubjectId - 主体IdSQLExceptionpublic List<ResourceSpace> getSpaceList(long subjectId) throws SQLException
getSpaceList 在接口中 AuthServicesubjectId - 主体IdSQLExceptionpublic ResourceSpace getSpaceFrist(long subjectId) throws SQLException
getSpaceFrist 在接口中 AuthServicesubjectId - 主体IdSQLExceptionCopyright © 2023. All rights reserved.