public interface ResourceAdminService
| 限定符和类型 | 方法和说明 |
|---|---|
long |
addResource(ResourceDo resource)
添加资源
|
long |
addResourceLink(long resourceId,
long subjectId,
int subjectType)
添加资源关联
|
void |
addResourceLinkBySubject(long subjectId,
int subjectType,
List<Long> resourceIds)
添加资源关联
|
boolean |
delResourceById(long resourceId)
删除资源
|
void |
delResourceLink(long... linkIds)
删除资源关联
|
void |
delResourceLinkBySubjectBySpace(long subjectId,
long resourceSpaceId)
删除资源关联
|
Resource |
getResourceById(long resourceId)
获取资源
|
List<ResourceGroup> |
getResourceEntityListBySpace(long resourceId)
获取管理用的空间内所有资源实体
|
List<ResourceGroup> |
getResourceGroupListBySpace(long resourceId)
获取管理用的空间内所有资源分组
|
List<ResourceLinkedDo> |
getResourceLinkListBySubjectAll(long subjectId)
获取资源关联(自己的 + 继承的)
|
List<ResourceLinkedDo> |
getResourceLinkListBySubjectSlf(long subjectId)
获取资源关联(仅自己的)
|
List<Resource> |
getResourceListBySpace(long resourceId)
获取管理用的空间内所有资源
|
List<ResourceSpace> |
getSpaceList()
获取管理用的资源空间列表
|
List<Resource> |
getSubResourceListByPid(long resourceId)
获取管理用的下级资源表表
|
boolean |
updResourceById(long resourceId,
ResourceDo resource)
更新资源
|
long addResource(ResourceDo resource) throws SQLException
resource - 资源SQLExceptionboolean updResourceById(long resourceId,
ResourceDo resource)
throws SQLException
resourceId - 资源Idresource - 资源SQLExceptionboolean delResourceById(long resourceId)
throws SQLException
resourceId - 资源IdSQLExceptionResource getResourceById(long resourceId) throws SQLException
resourceId - 资源IdSQLExceptionList<ResourceSpace> getSpaceList() throws SQLException
SQLExceptionList<Resource> getResourceListBySpace(long resourceId) throws SQLException
resourceId - 资源IdSQLExceptionList<ResourceGroup> getResourceGroupListBySpace(long resourceId) throws SQLException
resourceId - 资源IdSQLExceptionList<ResourceGroup> getResourceEntityListBySpace(long resourceId) throws SQLException
resourceId - 资源IdSQLExceptionList<Resource> getSubResourceListByPid(long resourceId) throws SQLException
resourceId - 资源IdSQLExceptionlong addResourceLink(long resourceId,
long subjectId,
int subjectType)
throws SQLException
resourceId - 资源IdsubjectId - 主体IdsubjectType - 主体类型SQLExceptionvoid delResourceLink(long... linkIds)
throws SQLException
linkIds - 资源连接IdsSQLExceptionvoid addResourceLinkBySubject(long subjectId,
int subjectType,
List<Long> resourceIds)
throws SQLException
subjectId - 主体IdsubjectType - 主体类型resourceIds - 资源IdsSQLExceptionvoid delResourceLinkBySubjectBySpace(long subjectId,
long resourceSpaceId)
throws SQLException
subjectId - 主体IdresourceSpaceId - 资源空间IdSQLExceptionList<ResourceLinkedDo> getResourceLinkListBySubjectSlf(long subjectId) throws SQLException
subjectId - 主体IdSQLExceptionList<ResourceLinkedDo> getResourceLinkListBySubjectAll(long subjectId) throws SQLException
subjectId - 主体IdSQLExceptionCopyright © 2021. All rights reserved.