public abstract class HSQLRoleDAO extends PlatformDataAccessObject implements RoleDAO
限定符和类型 | 类和说明 |
---|---|
protected static class |
HSQLRoleDAO.CRN |
protected static class |
HSQLRoleDAO.RE |
构造器和说明 |
---|
HSQLRoleDAO() |
限定符和类型 | 方法和说明 |
---|---|
protected abstract void |
cache4Sort(long roleId,
int entryType,
long oldID,
long newID) |
protected java.util.List |
findByEntryTypeAndID(int entryType,
long id,
DataAccessObjectSession session) |
java.util.Set<RoleDataConnectionPrivilege> |
getDataConnectionPrivileges(long id)
返回角色的数据连接权限
|
protected abstract RelationFCMapper |
getDataConnectionRelation() |
java.util.Set<RoleDepAndCRolePrivilege> |
getDepAndCrolePrivileges(long id)
返回角色的可管理部门/自定义角色权限
|
protected abstract RelationFCMapper |
getDepAndCroleRelation() |
java.util.Set<RoleEntryPrivilege> |
getEntryPrivileges(long id)
返回角色的Entry权限
|
protected abstract RelationFCMapper |
getEntryRelation() |
java.util.Set<RoleESPrivilege> |
getESPrivileges(long id)
获取角色的excel_submit的权限
|
protected abstract RelationFCMapper |
getESRelation() |
java.util.Set<RoleHomePagePrivilege> |
getHomePagePrivileges(long id)
返回角色的首页权限
|
protected abstract RelationFCMapper |
getHomePageRelation() |
java.util.Set<RoleModulePrivilege> |
getModulePrivileges(long id)
返回角色的Module权限
|
protected abstract RelationFCMapper |
getModuleRelation() |
java.util.Set<RelationObject> |
getPrivilegesWithPlateName(long id,
java.lang.String plateName)
获取指定板块的权限信息
|
protected abstract RelationFCMapper |
getRelationFCMapperWithPlateName(java.lang.String plateName) |
protected abstract java.lang.Class |
getRoleClass() |
protected abstract java.lang.Class |
getRoleDataConnectionPrivilegeClass() |
protected abstract java.lang.Class |
getRoleDepAndCrolePrivilegeClass() |
protected abstract java.lang.Class |
getRoleEntryPrivilegeClass() |
protected abstract java.lang.Class |
getRoleESPrivilegeClass() |
protected abstract java.lang.Class |
getRoleHomePagePrivilegeClass() |
protected abstract java.lang.Class |
getRoleModulePrivilegeClass() |
protected abstract java.lang.Class |
getRoleTemplatePrivilegeClass() |
java.util.Set<RoleTemplatePrivilege> |
getTemplatePrivileges(long id)
返回角色的模板权限
|
protected abstract RelationFCMapper |
getTemplateRelation() |
void |
removeAllTemplatePrivileges()
删除所有模板权限配置
|
void |
removeTemplatePrivileges(long id)
根据角色id删除相关权限配置
|
void |
sortByEntryID(int entryType,
long[] ids,
DataAccessObjectSession session)
根据ID排序
|
void |
transferEntryPrivileges(long id,
java.util.Set<RoleEntryPrivilege> waitData)
转移节点信息
|
void |
transferHomePagePrivileges(long id,
java.util.Set<RoleHomePagePrivilege> waitData) |
void |
transferModulePrivileges(long id,
java.util.Set<RoleModulePrivilege> waitData) |
void |
transferRoleDataConnectionPrivileges(long id,
java.util.Set<RoleDataConnectionPrivilege> waitData) |
void |
transferRoleDepAndCRolePrivileges(long id,
java.util.Set<RoleDepAndCRolePrivilege> waitData) |
void |
transferRoleESPrivileges(long id,
java.util.Set<RoleESPrivilege> waitData) |
void |
transferRoleTemplatePrivileges(long id,
java.util.Set<RoleTemplatePrivilege> waitData) |
void |
updateDataConnectionPrivileges(long id,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
更新HSQL角色的数据连接权限
|
void |
updateDataConnPrivileges(DataAccessObjectSession session,
long id,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
更新HSQL角色的数据连接权限(带session参数)
|
void |
updateDepAndCrolePrivilege(DataAccessObjectSession session,
long id,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
更新角色的可管理部门/自定义角色权限(带session参数)
|
void |
updateDepAndCrolePrivilege(long id,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
更新角色的可管理部门/自定义角色权限
|
void |
updateEntryPrivileges(DataAccessObjectSession session,
long id,
java.util.List<EntryTypeAndID> addList,
java.util.List<EntryTypeAndID> removeList) |
void |
updateEntryPrivileges(long id,
java.util.List<EntryTypeAndID> addList,
java.util.List<EntryTypeAndID> removeList)
更新Entry的权限
|
void |
updateESPrivileges(DataAccessObjectSession session,
long id,
java.util.List<EntryTypeAndID> addList,
java.util.List<EntryTypeAndID> removeList)
更新ES的权限
|
void |
updateESPrivileges(long id,
java.util.List<EntryTypeAndID> addList,
java.util.List<EntryTypeAndID> removeList)
更新ES的权限
|
void |
updateHomePagePrivileges(DataAccessObjectSession session,
long id,
java.util.List<RoleHomePagePrivilege> addList,
java.util.List<RoleHomePagePrivilege> removeList)
更新首页权限(带session参数)
|
void |
updateHomePagePrivileges(long id,
java.util.List<RoleHomePagePrivilege> addList,
java.util.List<RoleHomePagePrivilege> removeList)
更新首页权限
|
void |
updateModulePrivileges(DataAccessObjectSession session,
long id,
java.util.List<RoleModulePrivilege> addList,
java.util.List<RoleModulePrivilege> removeList)
更新Module的权限(带sessionid)
|
void |
updateModulePrivileges(long id,
java.util.List<RoleModulePrivilege> addList,
java.util.List<RoleModulePrivilege> removeList)
更新Module的权限
|
void |
updatePlatePrivileges(long id,
java.util.List<RoleEntryPrivilege> addList,
java.util.List<RoleEntryPrivilege> removeList,
java.lang.String plateName)
更新Plate的权限
|
void |
updateTemplatePrivileges(DataAccessObjectSession session,
long id,
java.util.List<RoleTemplatePrivilege> addList,
java.util.List<RoleTemplatePrivilege> removeList)
更新Template的权限
|
void |
updateTemplatePrivileges(long id,
java.util.List<RoleTemplatePrivilege> addList,
java.util.List<RoleTemplatePrivilege> removeList)
更新Template的权限
|
closeSession, createSession, createSession, rollbackSession
public java.util.Set<RoleEntryPrivilege> getEntryPrivileges(long id) throws java.lang.Exception
RoleDAO
getEntryPrivileges
在接口中 RoleDAO
id
- 角色IDjava.lang.Exception
public java.util.Set<RoleDepAndCRolePrivilege> getDepAndCrolePrivileges(long id) throws java.lang.Exception
RoleDAO
getDepAndCrolePrivileges
在接口中 RoleDAO
id
- 角色IDjava.lang.Exception
public java.util.Set<RoleESPrivilege> getESPrivileges(long id) throws java.lang.Exception
RoleDAO
getESPrivileges
在接口中 RoleDAO
id
- 角色IDjava.lang.Exception
public java.util.Set<RoleModulePrivilege> getModulePrivileges(long id) throws java.lang.Exception
RoleDAO
getModulePrivileges
在接口中 RoleDAO
id
- 角色IDjava.lang.Exception
public java.util.Set<RoleHomePagePrivilege> getHomePagePrivileges(long id) throws java.lang.Exception
RoleDAO
getHomePagePrivileges
在接口中 RoleDAO
id
- 角色IDjava.lang.Exception
public java.util.Set<RelationObject> getPrivilegesWithPlateName(long id, java.lang.String plateName) throws java.lang.Exception
RoleDAO
getPrivilegesWithPlateName
在接口中 RoleDAO
id
- 角色IDplateName
- 板块名称java.lang.Exception
public java.util.Set<RoleTemplatePrivilege> getTemplatePrivileges(long id) throws java.lang.Exception
RoleDAO
getTemplatePrivileges
在接口中 RoleDAO
id
- 角色IDjava.lang.Exception
public java.util.Set<RoleDataConnectionPrivilege> getDataConnectionPrivileges(long id) throws java.lang.Exception
RoleDAO
getDataConnectionPrivileges
在接口中 RoleDAO
id
- 角色IDjava.lang.Exception
protected abstract RelationFCMapper getEntryRelation()
protected abstract RelationFCMapper getESRelation()
protected abstract RelationFCMapper getModuleRelation()
protected abstract RelationFCMapper getHomePageRelation()
protected abstract RelationFCMapper getTemplateRelation()
protected abstract RelationFCMapper getDataConnectionRelation()
protected abstract RelationFCMapper getDepAndCroleRelation()
protected abstract RelationFCMapper getRelationFCMapperWithPlateName(java.lang.String plateName)
protected abstract java.lang.Class getRoleClass()
protected abstract java.lang.Class getRoleEntryPrivilegeClass()
protected abstract java.lang.Class getRoleESPrivilegeClass()
protected abstract java.lang.Class getRoleDepAndCrolePrivilegeClass()
protected abstract java.lang.Class getRoleModulePrivilegeClass()
protected abstract java.lang.Class getRoleHomePagePrivilegeClass()
protected abstract java.lang.Class getRoleTemplatePrivilegeClass()
protected abstract java.lang.Class getRoleDataConnectionPrivilegeClass()
public void updateDepAndCrolePrivilege(long id, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList) throws java.lang.Exception
updateDepAndCrolePrivilege
在接口中 RoleDAO
id
- 角色IDaddList
- 增加的部门/自定义角色权限removeList
- 删除的部门/自定义角色权限java.lang.Exception
- 异常public void updateEntryPrivileges(long id, java.util.List<EntryTypeAndID> addList, java.util.List<EntryTypeAndID> removeList) throws java.lang.Exception
updateEntryPrivileges
在接口中 RoleDAO
id
- 角色IDaddList
- 增加的Entry权限removeList
- 删除的Entry权限java.lang.Exception
- 异常public void updateESPrivileges(long id, java.util.List<EntryTypeAndID> addList, java.util.List<EntryTypeAndID> removeList) throws java.lang.Exception
updateESPrivileges
在接口中 RoleDAO
id
- 角色IDaddList
- 增加的ES权限removeList
- 删除的ES权限java.lang.Exception
- 异常public void updateDataConnectionPrivileges(long id, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList) throws java.lang.Exception
updateDataConnectionPrivileges
在接口中 RoleDAO
id
- 角色IDaddList
- 增加的数据连接权限removeList
- 删除的数据连接权限java.lang.Exception
- 异常public void updateTemplatePrivileges(long id, java.util.List<RoleTemplatePrivilege> addList, java.util.List<RoleTemplatePrivilege> removeList) throws java.lang.Exception
updateTemplatePrivileges
在接口中 RoleDAO
id
- 角色IDaddList
- 增加的Template权限removeList
- 删除的Template权限java.lang.Exception
- 异常public void removeAllTemplatePrivileges() throws java.lang.Exception
removeAllTemplatePrivileges
在接口中 RoleDAO
java.lang.Exception
public void removeTemplatePrivileges(long id) throws java.lang.Exception
removeTemplatePrivileges
在接口中 RoleDAO
id
- 角色idjava.lang.Exception
- 异常public void updateModulePrivileges(long id, java.util.List<RoleModulePrivilege> addList, java.util.List<RoleModulePrivilege> removeList) throws java.lang.Exception
updateModulePrivileges
在接口中 RoleDAO
id
- 角色IDaddList
- 增加的Module权限removeList
- 删除的Module权限java.lang.Exception
- 异常public void updateHomePagePrivileges(long id, java.util.List<RoleHomePagePrivilege> addList, java.util.List<RoleHomePagePrivilege> removeList) throws java.lang.Exception
updateHomePagePrivileges
在接口中 RoleDAO
id
- 角色IDaddList
- 增加的首页权限removeList
- 删除的首页权限java.lang.Exception
- 异常public void updatePlatePrivileges(long id, java.util.List<RoleEntryPrivilege> addList, java.util.List<RoleEntryPrivilege> removeList, java.lang.String plateName) throws java.lang.Exception
updatePlatePrivileges
在接口中 RoleDAO
id
- 角色IDaddList
- 增加的Plate权限removeList
- 删除的Plate权限plateName
- plate名字java.lang.Exception
- 异常public void transferEntryPrivileges(long id, java.util.Set<RoleEntryPrivilege> waitData) throws java.lang.Exception
RoleDAO
transferEntryPrivileges
在接口中 RoleDAO
id
- 角色IDwaitData
- 待转移的节点集合java.lang.Exception
public void transferModulePrivileges(long id, java.util.Set<RoleModulePrivilege> waitData) throws java.lang.Exception
transferModulePrivileges
在接口中 RoleDAO
java.lang.Exception
public void transferHomePagePrivileges(long id, java.util.Set<RoleHomePagePrivilege> waitData) throws java.lang.Exception
transferHomePagePrivileges
在接口中 RoleDAO
java.lang.Exception
public void transferRoleESPrivileges(long id, java.util.Set<RoleESPrivilege> waitData) throws java.lang.Exception
transferRoleESPrivileges
在接口中 RoleDAO
java.lang.Exception
public void transferRoleDataConnectionPrivileges(long id, java.util.Set<RoleDataConnectionPrivilege> waitData) throws java.lang.Exception
transferRoleDataConnectionPrivileges
在接口中 RoleDAO
java.lang.Exception
public void transferRoleTemplatePrivileges(long id, java.util.Set<RoleTemplatePrivilege> waitData) throws java.lang.Exception
transferRoleTemplatePrivileges
在接口中 RoleDAO
java.lang.Exception
public void transferRoleDepAndCRolePrivileges(long id, java.util.Set<RoleDepAndCRolePrivilege> waitData) throws java.lang.Exception
transferRoleDepAndCRolePrivileges
在接口中 RoleDAO
java.lang.Exception
protected abstract void cache4Sort(long roleId, int entryType, long oldID, long newID)
public void sortByEntryID(int entryType, long[] ids, DataAccessObjectSession session) throws java.lang.Exception
entryType
- Entry的类型ids
- id集合session
- 数据库会话对象java.lang.Exception
- 异常protected java.util.List findByEntryTypeAndID(int entryType, long id, DataAccessObjectSession session)
public void updateModulePrivileges(DataAccessObjectSession session, long id, java.util.List<RoleModulePrivilege> addList, java.util.List<RoleModulePrivilege> removeList) throws java.lang.Exception
session
- 数据库会话id
- 角色IDaddList
- 增加的Module权限removeList
- 删除的Module权限java.lang.Exception
- 异常public void updateESPrivileges(DataAccessObjectSession session, long id, java.util.List<EntryTypeAndID> addList, java.util.List<EntryTypeAndID> removeList) throws java.lang.Exception
session
- 数据库会话id
- 角色IDaddList
- 增加的ES权限removeList
- 删除的ES权限java.lang.Exception
- 异常public void updateDepAndCrolePrivilege(DataAccessObjectSession session, long id, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList) throws java.lang.Exception
session
- 数据库会话id
- 角色IDaddList
- 增加的部门/自定义角色权限removeList
- 删除的部门/自定义角色权限java.lang.Exception
- 异常public void updateEntryPrivileges(DataAccessObjectSession session, long id, java.util.List<EntryTypeAndID> addList, java.util.List<EntryTypeAndID> removeList) throws java.lang.Exception
java.lang.Exception
public void updateHomePagePrivileges(DataAccessObjectSession session, long id, java.util.List<RoleHomePagePrivilege> addList, java.util.List<RoleHomePagePrivilege> removeList) throws java.lang.Exception
session
- 数据库会话id
- 角色IDaddList
- 增加的首页权限removeList
- 删除的首页权限java.lang.Exception
- 异常public void updateDataConnPrivileges(DataAccessObjectSession session, long id, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList) throws java.lang.Exception
session
- 角色IDid
- 角色IDaddList
- 增加的数据连接权限removeList
- 删除的数据连接权限java.lang.Exception
- 异常public void updateTemplatePrivileges(DataAccessObjectSession session, long id, java.util.List<RoleTemplatePrivilege> addList, java.util.List<RoleTemplatePrivilege> removeList) throws java.lang.Exception
id
- 角色IDaddList
- 增加的Template权限removeList
- 删除的Template权限java.lang.Exception
- 异常