public class HSQLCompanyRoleDAO extends HSQLRoleDAO implements CompanyRoleDAO
HSQLRoleDAO.CRN, HSQLRoleDAO.RE
限定符和类型 | 方法和说明 |
---|---|
protected void |
cache4Sort(long roleId,
int entryType,
long oldID,
long newID)
排序缓存
|
void |
checkAllJobInit()
确保所有部门,所有职位,所有部门所有职位角色初始化了(同步数据集使用hsql表会用到这个,
因为迁移的时候数据带了所有部门,但是新jar包第一次使用的时候不带所有部门,这边要检查一下,没有所有部门的话平台初始化会失败)
|
boolean |
delete(CompanyRole role)
删除部门角色
|
boolean |
deleteByID(long id)
删除部门角色
|
java.util.List |
findAll()
查找所有部门角色
|
java.util.List |
findByDepartment(java.lang.Long departmentID)
根据部门id查找部门角色
|
CompanyRole |
findByID(long id)
查找指定id的部门角色
|
java.util.List |
findByPost(Post post)
根据职位查找部门角色
|
java.util.List |
findByPostAndDepartment(java.lang.Long postId,
java.lang.Long[] departmentIDs)
根据部门id和职位id查找部门角色
|
protected RelationFCMapper |
getDataConnectionRelation() |
protected RelationFCMapper |
getDepAndCroleRelation() |
protected RelationFCMapper |
getEntryRelation() |
protected RelationFCMapper |
getESRelation() |
protected RelationFCMapper |
getHomePageRelation() |
static HSQLCompanyRoleDAO |
getInstance() |
protected RelationFCMapper |
getModuleRelation() |
protected RelationFCMapper |
getRelationFCMapperWithPlateName(java.lang.String plateName) |
protected java.lang.Class |
getRoleClass() |
protected java.lang.Class |
getRoleDataConnectionPrivilegeClass() |
protected java.lang.Class |
getRoleDepAndCrolePrivilegeClass() |
protected java.lang.Class |
getRoleEntryPrivilegeClass() |
protected java.lang.Class |
getRoleESPrivilegeClass() |
protected java.lang.Class |
getRoleHomePagePrivilegeClass() |
protected java.lang.Class |
getRoleModulePrivilegeClass() |
protected java.lang.Class |
getRoleTemplatePrivilegeClass() |
protected RelationFCMapper |
getTemplateRelation() |
void |
save(CompanyRole role)
保存部门角色
|
void |
transfer(CompanyRole role)
转移部门角色
|
boolean |
update(long id,
Department department,
Post post)
更新部门角色
|
boolean |
update(long id,
Department department,
Post post,
java.lang.String description)
更新部门角色包含描述
|
findByEntryTypeAndID, getDataConnectionPrivileges, getDepAndCrolePrivileges, getEntryPrivileges, getESPrivileges, getHomePagePrivileges, getModulePrivileges, getPrivilegesWithPlateName, getTemplatePrivileges, removeAllTemplatePrivileges, removeTemplatePrivileges, sortByEntryID, transferEntryPrivileges, transferHomePagePrivileges, transferModulePrivileges, transferRoleDataConnectionPrivileges, transferRoleDepAndCRolePrivileges, transferRoleESPrivileges, transferRoleTemplatePrivileges, updateDataConnectionPrivileges, updateDataConnPrivileges, updateDepAndCrolePrivilege, updateDepAndCrolePrivilege, updateEntryPrivileges, updateEntryPrivileges, updateESPrivileges, updateESPrivileges, updateHomePagePrivileges, updateHomePagePrivileges, updateModulePrivileges, updateModulePrivileges, updatePlatePrivileges, updateTemplatePrivileges, updateTemplatePrivileges
closeSession, createSession, createSession, rollbackSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataConnectionPrivileges, getDepAndCrolePrivileges, getEntryPrivileges, getESPrivileges, getHomePagePrivileges, getModulePrivileges, getPrivilegesWithPlateName, getTemplatePrivileges, removeAllTemplatePrivileges, removeTemplatePrivileges, transferEntryPrivileges, transferHomePagePrivileges, transferModulePrivileges, transferRoleDataConnectionPrivileges, transferRoleDepAndCRolePrivileges, transferRoleESPrivileges, transferRoleTemplatePrivileges, updateDataConnectionPrivileges, updateDepAndCrolePrivilege, updateEntryPrivileges, updateESPrivileges, updateHomePagePrivileges, updateModulePrivileges, updatePlatePrivileges, updateTemplatePrivileges
public static HSQLCompanyRoleDAO getInstance()
public void save(CompanyRole role) throws java.lang.Exception
save
在接口中 CompanyRoleDAO
role
- 部门角色java.lang.Exception
public void transfer(CompanyRole role) throws java.lang.Exception
transfer
在接口中 CompanyRoleDAO
role
- 部门角色java.lang.Exception
public boolean delete(CompanyRole role) throws java.lang.Exception
delete
在接口中 CompanyRoleDAO
role
- 部门角色java.lang.Exception
public boolean deleteByID(long id) throws java.lang.Exception
deleteByID
在接口中 CompanyRoleDAO
id
- 部门角色idjava.lang.Exception
public boolean update(long id, Department department, Post post) throws java.lang.Exception
update
在接口中 CompanyRoleDAO
id
- 部门角色权限iddepartment
- 部门idpost
- 职位idjava.lang.Exception
public boolean update(long id, Department department, Post post, java.lang.String description) throws java.lang.Exception
update
在接口中 CompanyRoleDAO
id
- 部门角色权限iddepartment
- 部门idpost
- 职位iddescription
- 描述java.lang.Exception
public CompanyRole findByID(long id) throws java.lang.Exception
findByID
在接口中 CompanyRoleDAO
id
- 部门角色idjava.lang.Exception
public java.util.List findAll() throws java.lang.Exception
findAll
在接口中 CompanyRoleDAO
java.lang.Exception
public java.util.List findByPost(Post post) throws java.lang.Exception
findByPost
在接口中 CompanyRoleDAO
post
- 职位java.lang.Exception
public java.util.List findByDepartment(java.lang.Long departmentID) throws java.lang.Exception
findByDepartment
在接口中 CompanyRoleDAO
departmentID
- 部门idjava.lang.Exception
public java.util.List findByPostAndDepartment(java.lang.Long postId, java.lang.Long[] departmentIDs) throws java.lang.Exception
findByPostAndDepartment
在接口中 CompanyRoleDAO
postId
- 职务iddepartmentIDs
- 部门idjava.lang.Exception
protected RelationFCMapper getEntryRelation()
getEntryRelation
在类中 HSQLRoleDAO
protected RelationFCMapper getESRelation()
getESRelation
在类中 HSQLRoleDAO
protected RelationFCMapper getDepAndCroleRelation()
getDepAndCroleRelation
在类中 HSQLRoleDAO
protected RelationFCMapper getModuleRelation()
getModuleRelation
在类中 HSQLRoleDAO
protected RelationFCMapper getHomePageRelation()
getHomePageRelation
在类中 HSQLRoleDAO
protected RelationFCMapper getTemplateRelation()
getTemplateRelation
在类中 HSQLRoleDAO
protected RelationFCMapper getDataConnectionRelation()
getDataConnectionRelation
在类中 HSQLRoleDAO
protected RelationFCMapper getRelationFCMapperWithPlateName(java.lang.String plateName)
protected java.lang.Class getRoleClass()
getRoleClass
在类中 HSQLRoleDAO
protected java.lang.Class getRoleEntryPrivilegeClass()
getRoleEntryPrivilegeClass
在类中 HSQLRoleDAO
protected java.lang.Class getRoleESPrivilegeClass()
getRoleESPrivilegeClass
在类中 HSQLRoleDAO
protected java.lang.Class getRoleDepAndCrolePrivilegeClass()
protected java.lang.Class getRoleModulePrivilegeClass()
getRoleModulePrivilegeClass
在类中 HSQLRoleDAO
protected java.lang.Class getRoleHomePagePrivilegeClass()
getRoleHomePagePrivilegeClass
在类中 HSQLRoleDAO
protected java.lang.Class getRoleTemplatePrivilegeClass()
getRoleTemplatePrivilegeClass
在类中 HSQLRoleDAO
protected java.lang.Class getRoleDataConnectionPrivilegeClass()
protected void cache4Sort(long roleId, int entryType, long oldID, long newID)
cache4Sort
在类中 HSQLRoleDAO
roleId
- 角色identryType
- 实体类型oldID
- 旧idnewID
- 新idpublic void checkAllJobInit()