public class PostControllerImpl extends AbstractController implements PostController
| 构造器和说明 |
|---|
PostControllerImpl(ControllerSession session) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Post record)
新增记录
|
void |
add(Post record,
java.lang.String departmentId)
新增职务记录,并将新增的职务添加到指定部门
|
void |
addPostToDepartment(java.lang.String postId,
java.lang.String departmentId)
将现有职务加入到部门中
|
java.util.List<Post> |
find(QueryCondition queryCondition)
查找记录
|
java.util.List<Post> |
findByAuthority(java.lang.String authorityId,
AuthorityQueryType queryType,
java.lang.String departmentId,
QueryCondition postCondition)
查找拥有指定权限的职务
|
java.util.List<Post> |
findByAuthority(java.lang.String authorityId,
java.lang.Class cls,
AuthorityQueryType queryType,
java.lang.String departmentId,
QueryCondition postCondition)
查找拥有指定权限的职务
|
java.util.List<Post> |
findByDepartment(java.lang.String departmentId,
QueryCondition postCondition)
查找指定部门下的职务
|
java.util.List<Post> |
findByUser(java.lang.String userId,
QueryCondition postCondition)
查找指定用户所属的职务
|
Post |
findOne(QueryCondition queryCondition)
查找一条记录,找不到返回null
|
DataList<Post> |
findWithTotalCount(QueryCondition queryCondition)
查找记录,附带返回该查询条件下的数据总条数
|
Post |
getById(java.lang.String id)
通过id获取记录
|
void |
remove(QueryCondition queryCondition)
删除记录,根据查询条件来删除
|
void |
remove(java.lang.String id)
删除记录
|
void |
removePostFromDepartment(java.lang.String postId,
java.lang.String departmentId)
将职务从部门中移除(不会删除职务,只会删除职务和部门的关系)
|
void |
update(Post record)
更新记录,根据记录id来更新
|
addDepRole, findDepRoleByUser, getSession, removeDepRolepublic PostControllerImpl(ControllerSession session)
public java.util.List<Post> findByDepartment(java.lang.String departmentId, QueryCondition postCondition) throws java.lang.Exception
PostControllerfindByDepartment 在接口中 PostControllerdepartmentId - 部门IDpostCondition - 部门查询条件java.lang.Exceptionpublic java.util.List<Post> findByUser(java.lang.String userId, QueryCondition postCondition) throws java.lang.Exception
PostControllerfindByUser 在接口中 PostControlleruserId - 用户IDpostCondition - 部门查询条件java.lang.Exceptionpublic java.util.List<Post> findByAuthority(java.lang.String authorityId, AuthorityQueryType queryType, java.lang.String departmentId, QueryCondition postCondition) throws java.lang.Exception
PostControllerfindByAuthority 在接口中 PostControllerauthorityId - 权限IDqueryType - 权限查询类型departmentId - 职务所在的部门IDpostCondition - 部门查询条件java.lang.Exceptionpublic java.util.List<Post> findByAuthority(java.lang.String authorityId, java.lang.Class cls, AuthorityQueryType queryType, java.lang.String departmentId, QueryCondition postCondition) throws java.lang.Exception
PostControllerfindByAuthority 在接口中 PostControllerauthorityId - 权限IDcls - 权限类queryType - 权限查询类型departmentId - 职务所在的部门IDpostCondition - 部门查询条件java.lang.Exceptionpublic void addPostToDepartment(java.lang.String postId,
java.lang.String departmentId)
throws java.lang.Exception
PostControlleraddPostToDepartment 在接口中 PostControllerpostId - 职务IDdepartmentId - 部门IDjava.lang.Exceptionpublic void removePostFromDepartment(java.lang.String postId,
java.lang.String departmentId)
throws java.lang.Exception
PostControllerremovePostFromDepartment 在接口中 PostControllerpostId - 职务IDdepartmentId - 部门IDjava.lang.Exceptionpublic void add(Post record) throws java.lang.Exception
DataOperatoradd 在接口中 DataOperator<Post>record - 记录对象java.lang.Exceptionpublic void add(Post record, java.lang.String departmentId) throws java.lang.Exception
PostControlleradd 在接口中 PostControllerrecord - 记录对象departmentId - 所属部门idjava.lang.Exceptionpublic Post getById(java.lang.String id) throws java.lang.Exception
DataOperatorgetById 在接口中 DataOperator<Post>id - 记录idjava.lang.Exceptionpublic void update(Post record) throws java.lang.Exception
DataOperatorupdate 在接口中 DataOperator<Post>record - 记录对象java.lang.Exceptionpublic void remove(java.lang.String id)
throws java.lang.Exception
DataOperatorremove 在接口中 DataOperator<Post>id - 记录idjava.lang.Exceptionpublic void remove(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorremove 在接口中 DataOperator<Post>queryCondition - 查询条件java.lang.Exceptionpublic java.util.List<Post> find(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorfind 在接口中 DataOperator<Post>queryCondition - 查询条件java.lang.Exceptionpublic Post findOne(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorfindOne 在接口中 DataOperator<Post>queryCondition - 查询条件java.lang.Exceptionpublic DataList<Post> findWithTotalCount(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorfindWithTotalCount 在接口中 DataOperator<Post>queryCondition - 查询条件java.lang.Exception