@Service public class SubjectAdminServiceImpl extends Object implements SubjectAdminService
| 构造器和说明 |
|---|
SubjectAdminServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
更新主体
|
public long addSubject(SubjectDo subject) throws SQLException
addSubject 在接口中 SubjectAdminServicesubject - 主体SQLExceptionpublic long addSubjectEntity(SubjectDo subject, long subjectGroupId) throws SQLException
SubjectAdminServiceaddSubjectEntity 在接口中 SubjectAdminServicesubject - 主体实体subjectGroupId - 分组的主体IdSQLExceptionpublic boolean updSubjectById(long subjectId,
SubjectDo subject)
throws SQLException
updSubjectById 在接口中 SubjectAdminServicesubjectId - 主体Idsubject - 主体SQLExceptionpublic boolean delSubjectById(long subjectId)
throws SQLException
SubjectAdminServicedelSubjectById 在接口中 SubjectAdminServicesubjectId - 主体IdSQLExceptionpublic Subject getSubjectById(long subjectId) throws SQLException
getSubjectById 在接口中 SubjectAdminServicesubjectId - 主体IdSQLExceptionpublic Subject getSubjectByGuid(String guid) throws SQLException
SubjectAdminServicegetSubjectByGuid 在接口中 SubjectAdminServiceguid - guidSQLExceptionpublic List<SubjectGroup> getGroupList() throws SQLException
SubjectAdminServicegetGroupList 在接口中 SubjectAdminServiceSQLExceptionpublic List<SubjectEntity> getSubjectEntityListByAll() throws SQLException
SubjectAdminServicegetSubjectEntityListByAll 在接口中 SubjectAdminServiceSQLExceptionpublic List<SubjectEntity> getSubjectEntityListByFind(String key) throws SQLException
SubjectAdminServicegetSubjectEntityListByFind 在接口中 SubjectAdminServiceSQLExceptionpublic List<SubjectEntity> getSubjectEntityListByGroup(long subjectGroupId) throws SQLException
SubjectAdminServicegetSubjectEntityListByGroup 在接口中 SubjectAdminServicesubjectGroupId - 主体组IdSQLExceptionpublic List<Long> getSubjectGroupIdListByEntity(long subjectId) throws SQLException
getSubjectGroupIdListByEntity 在接口中 SubjectAdminServicesubjectId - 主体IdSQLExceptionpublic long addSubjectLink(long subjectId,
long subjectGroupId)
throws SQLException
addSubjectLink 在接口中 SubjectAdminServicesubjectId - 主体IdsubjectGroupId - 分组的主体IdSQLExceptionpublic boolean hasSubjectLink(long subjectId,
long subjectGroupId)
throws SQLException
hasSubjectLink 在接口中 SubjectAdminServicesubjectId - 主体IdsubjectGroupId - 分组的主体IdSQLExceptionpublic boolean delSubjectLinkBySubjects(Collection<Long> subjectIds, long subjectGroupId) throws SQLException
delSubjectLinkBySubjects 在接口中 SubjectAdminServicesubjectIds - 主体IdssubjectGroupId - 分组的主体IdSQLExceptionCopyright © 2023. All rights reserved.