public class DepartmentControllerImpl extends AbstractController implements DepartmentController
构造器和说明 |
---|
DepartmentControllerImpl(ControllerSession session) |
限定符和类型 | 方法和说明 |
---|---|
void |
add(Department record)
新增记录
|
java.util.List<Department> |
find(QueryCondition queryCondition)
查找记录
|
java.util.List<Department> |
findByAuthority(java.lang.String authorityId,
AuthorityQueryType queryType,
boolean addFakeRoot,
QueryCondition departmentCondition)
查找拥有指定权限的部门
|
java.util.List<Department> |
findByAuthority(java.lang.String authorityId,
AuthorityQueryType queryType,
QueryCondition departmentCondition)
查找拥有指定权限的部门
|
java.util.List<Department> |
findByAuthority(java.lang.String authorityId,
java.lang.Class cls,
AuthorityQueryType queryType,
boolean addFakeRoot,
QueryCondition departmentCondition)
查找拥有指定权限的部门
|
java.util.List<Department> |
findByAuthority(java.lang.String authorityId,
java.lang.Class cls,
AuthorityQueryType queryType,
QueryCondition departmentCondition)
查找拥有指定权限的部门
|
java.util.List<Department> |
findByPost(java.lang.String postId,
QueryCondition departmentCondition)
查找指定职务所属的部门
|
java.util.List<Department> |
findByUser(java.lang.String userId,
QueryCondition departmentCondition)
查找指定用户所属的部门
|
java.util.List<Department> |
findChildren(java.lang.String departmentId,
QueryCondition departmentCondition)
查找指定部门的子部门
|
java.util.List<Department> |
findDepartmentTree(QueryCondition departmentCondition)
查找部门,返回带id和pid的完整路径的树结构数据,用于模糊查找,跟
DepartmentController.findDepTree(com.fr.stable.query.condition.QueryCondition) 的区别是本方法只会返回部门节点而没有职务节点 |
java.util.List<DepRole> |
findDepRoleByUser(java.lang.String userId)
查找指定用户所属的部门职务角色
|
java.util.List<DepItem> |
findDepTree(QueryCondition depItemCondition)
查找部门职务,返回带id和pid的完整路径的树结构数据,用于模糊查找
|
Department |
findOne(QueryCondition queryCondition)
查找一条记录,找不到返回null
|
Department |
findParent(java.lang.String departmentId)
获取指定部门的父部门
|
DataList<Department> |
findWithTotalCount(QueryCondition queryCondition)
查找记录,附带返回该查询条件下的数据总条数
|
Department |
getById(java.lang.String id)
通过id获取记录
|
DepRole |
getDepRole(java.lang.String departmentId,
java.lang.String postId)
根据部门职务ID获取部门职务角色
|
DepRole |
getDepRoleById(java.lang.String depRoleId)
根据部门职务角色ID获取部门职务角色
|
void |
remove(QueryCondition queryCondition)
删除记录,根据查询条件来删除
|
void |
remove(java.lang.String id)
删除记录
|
void |
update(Department record)
更新记录,根据记录id来更新
|
addDepRole, getSession, removeDepRole
public DepartmentControllerImpl(ControllerSession session)
public java.util.List<Department> findByPost(java.lang.String postId, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentController
findByPost
在接口中 DepartmentController
postId
- 职务IDdepartmentCondition
- 部门查询条件java.lang.Exception
public java.util.List<Department> findChildren(java.lang.String departmentId, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentController
findChildren
在接口中 DepartmentController
departmentId
- 部门IDdepartmentCondition
- 子部门查询条件java.lang.Exception
public Department findParent(java.lang.String departmentId) throws java.lang.Exception
DepartmentController
findParent
在接口中 DepartmentController
departmentId
- 部门IDjava.lang.Exception
public java.util.List<Department> findByUser(java.lang.String userId, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentController
findByUser
在接口中 DepartmentController
userId
- 用户IDdepartmentCondition
- 部门查询条件java.lang.Exception
public java.util.List<DepRole> findDepRoleByUser(java.lang.String userId) throws java.lang.Exception
DepartmentController
findDepRoleByUser
在接口中 DepartmentController
findDepRoleByUser
在类中 AbstractController
userId
- 用户IDjava.lang.Exception
public java.util.List<Department> findByAuthority(java.lang.String authorityId, AuthorityQueryType queryType, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentController
findByAuthority
在接口中 DepartmentController
authorityId
- 权限IDqueryType
- 权限查询类型departmentCondition
- 部门查询条件java.lang.Exception
public java.util.List<Department> findByAuthority(java.lang.String authorityId, AuthorityQueryType queryType, boolean addFakeRoot, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentController
findByAuthority
在接口中 DepartmentController
authorityId
- 权限IDqueryType
- 权限查询类型addFakeRoot
- 添加假的根部门departmentCondition
- 部门查询条件java.lang.Exception
public java.util.List<Department> findByAuthority(java.lang.String authorityId, java.lang.Class cls, AuthorityQueryType queryType, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentController
findByAuthority
在接口中 DepartmentController
authorityId
- 权限IDcls
- 权限类queryType
- 权限查询类型departmentCondition
- 部门查询条件java.lang.Exception
public java.util.List<Department> findByAuthority(java.lang.String authorityId, java.lang.Class cls, AuthorityQueryType queryType, boolean addFakeRoot, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentController
findByAuthority
在接口中 DepartmentController
authorityId
- 权限IDcls
- 权限类queryType
- 权限查询类型addFakeRoot
- 添加假的根部门departmentCondition
- 部门查询条件java.lang.Exception
public void add(Department record) throws java.lang.Exception
DataOperator
add
在接口中 DataOperator<Department>
record
- 记录对象java.lang.Exception
public Department getById(java.lang.String id) throws java.lang.Exception
DataOperator
getById
在接口中 DataOperator<Department>
id
- 记录idjava.lang.Exception
public void update(Department record) throws java.lang.Exception
DataOperator
update
在接口中 DataOperator<Department>
record
- 记录对象java.lang.Exception
public void remove(java.lang.String id) throws java.lang.Exception
DataOperator
remove
在接口中 DataOperator<Department>
id
- 记录idjava.lang.Exception
public void remove(QueryCondition queryCondition) throws java.lang.Exception
DataOperator
remove
在接口中 DataOperator<Department>
queryCondition
- 查询条件java.lang.Exception
public java.util.List<Department> find(QueryCondition queryCondition) throws java.lang.Exception
DataOperator
find
在接口中 DataOperator<Department>
queryCondition
- 查询条件java.lang.Exception
public Department findOne(QueryCondition queryCondition) throws java.lang.Exception
DataOperator
findOne
在接口中 DataOperator<Department>
queryCondition
- 查询条件java.lang.Exception
public DataList<Department> findWithTotalCount(QueryCondition queryCondition) throws java.lang.Exception
DataOperator
findWithTotalCount
在接口中 DataOperator<Department>
queryCondition
- 查询条件java.lang.Exception
public java.util.List<DepItem> findDepTree(QueryCondition depItemCondition) throws java.lang.Exception
DepartmentController
findDepTree
在接口中 DepartmentController
depItemCondition
- 查询条件java.lang.Exception
public java.util.List<Department> findDepartmentTree(QueryCondition departmentCondition) throws java.lang.Exception
DepartmentController
DepartmentController.findDepTree(com.fr.stable.query.condition.QueryCondition)
的区别是本方法只会返回部门节点而没有职务节点findDepartmentTree
在接口中 DepartmentController
departmentCondition
- 部门查询条件java.lang.Exception
public DepRole getDepRole(java.lang.String departmentId, java.lang.String postId) throws java.lang.Exception
DepartmentController
getDepRole
在接口中 DepartmentController
departmentId
- 部门IDpostId
- 职务IDjava.lang.Exception
public DepRole getDepRoleById(java.lang.String depRoleId) throws java.lang.Exception
DepartmentController
getDepRoleById
在接口中 DepartmentController
depRoleId
- 部门职务角色IDjava.lang.Exception