public interface SubjectAdminService
| 限定符和类型 | 方法和说明 |
|---|---|
long |
addSubject(SubjectDo subject)
添加主体
|
long |
addSubjectEntity(SubjectDo subject,
long subjectGroupId)
添加主体,并关联分组
|
long |
addSubjectLink(long subjectId,
long subjectGroupId)
添加主体连接
|
boolean |
delSubjectById(long subjectId)
删除主体
|
boolean |
delSubjectLinkBySubjects(Collection<Long> subjectIds,
long subjectGroupId)
删除主体连接
|
List<SubjectGroup> |
getGroupList()
获取管理用的资源空间列表
|
Subject |
getSubjectByGuid(String guid)
获取主体
|
Subject |
getSubjectById(long subjectId)
获取主体
|
List<SubjectEntity> |
getSubjectEntityListByAll()
获取管理用的资源实体列表
|
List<SubjectEntity> |
getSubjectEntityListByFind(String key)
获取管理用的资源实体列表
|
List<SubjectEntity> |
getSubjectEntityListByGroup(long subjectGroupId)
获取管理用的资源实体列表
|
List<Long> |
getSubjectGroupIdListByEntity(long subjectId)
获取主体实体关联的主体分组列表
|
boolean |
hasSubjectLink(long subjectId,
long subjectGroupId)
检查是否存在主体连接
|
boolean |
updSubjectById(long subjectId,
SubjectDo subject)
更新主体
|
long addSubject(SubjectDo subject) throws SQLException
subject - 主体SQLExceptionlong addSubjectEntity(SubjectDo subject, long subjectGroupId) throws SQLException
subject - 主体实体subjectGroupId - 分组的主体IdSQLExceptionboolean updSubjectById(long subjectId,
SubjectDo subject)
throws SQLException
subjectId - 主体Idsubject - 主体SQLExceptionboolean delSubjectById(long subjectId)
throws SQLException
subjectId - 主体IdSQLExceptionSubject getSubjectById(long subjectId) throws SQLException
subjectId - 主体IdSQLExceptionSubject getSubjectByGuid(String guid) throws SQLException
guid - guidSQLExceptionList<SubjectGroup> getGroupList() throws SQLException
SQLExceptionList<SubjectEntity> getSubjectEntityListByAll() throws SQLException
SQLExceptionList<SubjectEntity> getSubjectEntityListByFind(String key) throws SQLException
SQLExceptionList<SubjectEntity> getSubjectEntityListByGroup(long subjectGroupId) throws SQLException
subjectGroupId - 主体组IdSQLExceptionList<Long> getSubjectGroupIdListByEntity(long subjectId) throws SQLException
subjectId - 主体IdSQLExceptionlong addSubjectLink(long subjectId,
long subjectGroupId)
throws SQLException
subjectId - 主体IdsubjectGroupId - 分组的主体IdSQLExceptionboolean hasSubjectLink(long subjectId,
long subjectGroupId)
throws SQLException
subjectId - 主体IdsubjectGroupId - 分组的主体IdSQLExceptionboolean delSubjectLinkBySubjects(Collection<Long> subjectIds, long subjectGroupId) throws SQLException
subjectIds - 主体IdssubjectGroupId - 分组的主体IdSQLExceptionCopyright © 2022. All rights reserved.