public interface CompanyRoleDAO extends RoleDAO
限定符和类型 | 方法和说明 |
---|---|
boolean |
delete(CompanyRole role)
删除部门角色
|
boolean |
deleteByID(long id)
根据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<CompanyRole> |
findByPostAndDepartment(java.lang.Long postId,
java.lang.Long[] departmentIDs)
同时根据部门和职位返回部门角色内容(唯一)
|
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)
更新部门角色包含描述
|
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
void save(CompanyRole role) throws java.lang.Exception
role
- 部门角色java.lang.Exception
void transfer(CompanyRole role) throws java.lang.Exception
role
- 部门角色java.lang.Exception
boolean delete(CompanyRole role) throws java.lang.Exception
role
- 部门角色java.lang.Exception
boolean deleteByID(long id) throws java.lang.Exception
id
- 部门角色idjava.lang.Exception
boolean update(long id, Department department, Post post) throws java.lang.Exception
id
- 部门角色权限iddepartment
- 部门idpost
- 职位idjava.lang.Exception
boolean update(long id, Department department, Post post, java.lang.String description) throws java.lang.Exception
id
- 部门角色权限iddepartment
- 部门idpost
- 职位iddescription
- 描述java.lang.Exception
CompanyRole findByID(long id) throws java.lang.Exception
id
- 部门角色idjava.lang.Exception
java.util.List findAll() throws java.lang.Exception
java.lang.Exception
java.util.List findByPost(Post post) throws java.lang.Exception
post
- 职位java.lang.Exception
java.util.List findByDepartment(java.lang.Long departmentID) throws java.lang.Exception
departmentID
- 部门idjava.lang.Exception
java.util.List<CompanyRole> findByPostAndDepartment(java.lang.Long postId, java.lang.Long[] departmentIDs) throws java.lang.Exception
postId
- 职务iddepartmentIDs
- 部门idjava.lang.Exception