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)
删除资源
|
boolean |
delResourceByIds(String ids)
批量删除资源
|
void |
delResourceLink(long... linkIds)
删除资源关联
|
void |
delResourceLinkBySubjectBySpace(long subjectId,
long resourceSpaceId)
删除资源关联
|
boolean |
desResourceByIds(String ids,
boolean disabled)
批量禁用资源
|
Resource |
getResourceByCode(String resourceCode)
获取资源
|
Resource |
getResourceByGuid(String guid)
获取资源
|
Resource |
getResourceById(long resourceId)
获取资源
|
List<ResourceEntity> |
getResourceEntityListBySpace(long resourceId)
获取管理用的空间内所有资源实体
|
List<ResourceGroup> |
getResourceGroupListBySpace(long resourceId)
获取管理用的空间内所有资源分组
|
List<ResourceGroup> |
getResourceGroupListBySpaceAndIds(long resourceId,
String ids)
获取管理用的空间内所有资源分组
|
List<ResourceLinkedDo> |
getResourceLinkListBySubjectAll(long subjectId)
获取资源关联(自己的 + 继承的)
|
List<ResourceLinkedDo> |
getResourceLinkListBySubjectSlf(long subjectId)
获取资源关联(仅自己的)
|
List<Resource> |
getResourceListBySpace(long resourceId)
获取管理用的空间内所有资源
|
List<ResourceSpace> |
getSpaceList()
获取管理用的资源空间列表
|
List<Resource> |
getSubResourceListByPid(long resourceId)
获取管理用的下级资源表
|
List<Resource> |
getSubResourceListByPidAndIds(long resourceId,
String ids)
获取管理用的下级资源表表
|
boolean |
hasSubResourceByPid(long resourceId)
检检是否有下级资源表
|
boolean |
synResourceByGuid(ResourceDo resource)
同步资源
|
boolean |
updResourceById(long resourceId,
ResourceDo resource)
更新资源
|
long addResource(ResourceDo resource) throws SQLException
resource - 资源SQLExceptionboolean synResourceByGuid(ResourceDo resource) throws SQLException
resource - 资源SQLExceptionboolean updResourceById(long resourceId,
ResourceDo resource)
throws SQLException
resourceId - 资源Idresource - 资源SQLExceptionboolean delResourceById(long resourceId)
throws SQLException
resourceId - 资源IdSQLExceptionboolean delResourceByIds(String ids) throws SQLException
SQLExceptionboolean desResourceByIds(String ids, boolean disabled) throws SQLException
SQLExceptionResource getResourceById(long resourceId) throws SQLException
resourceId - 资源IdSQLExceptionResource getResourceByGuid(String guid) throws SQLException
guid - guidSQLExceptionResource getResourceByCode(String resourceCode) throws SQLException
resourceCode - 资源代号SQLExceptionList<ResourceSpace> getSpaceList() throws SQLException
SQLExceptionList<Resource> getResourceListBySpace(long resourceId) throws SQLException
resourceId - 空间资源IdSQLExceptionList<ResourceGroup> getResourceGroupListBySpace(long resourceId) throws SQLException
resourceId - 空间资源IdSQLExceptionList<ResourceGroup> getResourceGroupListBySpaceAndIds(long resourceId, String ids) throws SQLException
resourceId - 空间资源Idids - 资源IdsSQLExceptionList<ResourceEntity> getResourceEntityListBySpace(long resourceId) throws SQLException
resourceId - 空间资源IdSQLExceptionboolean hasSubResourceByPid(long resourceId)
throws SQLException
resourceId - 资源IdSQLExceptionList<Resource> getSubResourceListByPid(long resourceId) throws SQLException
resourceId - 资源IdSQLExceptionList<Resource> getSubResourceListByPidAndIds(long resourceId, String ids) 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 © 2024. All rights reserved.