Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.opendynamic.ff.query.NodeQuery Maven / Gradle / Ivy
package com.opendynamic.ff.query;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.opendynamic.ff.service.FfNodeService;
import com.opendynamic.ff.vo.Node;
@Service
public class NodeQuery {
private FfNodeService ffNodeService;
private String nodeId;
private List nodeIdList;
private String parentNodeId;
private List parentNodeIdList;
private String previousNodeIds;
private String lastCompleteNodeIds;
private String subProcDefId;
private List subProcDefIdList;
private String adjustSubProcDefId;
private List adjustSubProcDefIdList;
private String nodeType;
private List nodeTypeList;
private String nodeCode;
private List nodeCodeList;
private String nodeName;
private List nodeNameList;
private String parentNodeCode;
private List parentNodeCodeList;
private String nodeEndUser;
private List nodeEndUserList;
private String nodeEndUserName;
private List nodeEndUserNameList;
private Date fromNodeEndDate;
private Date toNodeEndDate;
private String isolateSubProcDefCode;
private List isolateSubProcDefCodeList;
private String isolateSubProcStatus;
private List isolateSubProcStatusList;
private String nodeStatus;
private List nodeStatusList;
private Date fromCreationDate;
private Date toCreationDate;
private String procId;
private List procIdList;
private String adjustProcDefId;
private List adjustProcDefIdList;
private String isolateSubProcNodeId;
private List isolateSubProcNodeIdList;
private String bizId;
private List bizIdList;
private String bizType;
private List bizTypeList;
private String bizCode;
private List bizCodeList;
private String bizName;
private List bizNameList;
private String bizDesc;
private List bizDescList;
private String procStartUser;
private List procStartUserList;
private String procStartUserName;
private List procStartUserNameList;
private String procEndUser;
private List procEndUserList;
private String procEndUserName;
private List procEndUserNameList;
private Date fromProcEndDate;
private Date toProcEndDate;
private String procStatus;
private List procStatusList;
private Date fromProcCreationDate;
private Date toProcCreationDate;
private String procDefId;
private List procDefIdList;
private String procDefCode;
private List procDefCodeList;
private String procDefName;
private List procDefNameList;
private String procDefCat;
private List procDefCatList;
private Integer version;
private List versionList;
private String procDefStatus;
private List procDefStatusList;
private Boolean emptyParentNode;
private Boolean emptyPreviousNodes;
private Boolean emptyLastCompleteNodes;
private Integer page;
private Integer limit;
private String dataScope;
public NodeQuery(FfNodeService ffNodeService) {
super();
this.ffNodeService = ffNodeService;
}
public NodeQuery setNodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
public NodeQuery setNodeIdList(List nodeIdList) {
this.nodeIdList = nodeIdList;
return this;
}
public NodeQuery setParentNodeId(String parentNodeId) {
this.parentNodeId = parentNodeId;
return this;
}
public NodeQuery setParentNodeIdList(List parentNodeIdList) {
this.parentNodeIdList = parentNodeIdList;
return this;
}
public NodeQuery setPreviousNodeIds(String previousNodeIds) {
this.previousNodeIds = previousNodeIds;
return this;
}
public NodeQuery setLastCompleteNodeIds(String lastCompleteNodeIds) {
this.lastCompleteNodeIds = lastCompleteNodeIds;
return this;
}
public NodeQuery setSubProcDefId(String subProcDefId) {
this.subProcDefId = subProcDefId;
return this;
}
public NodeQuery setSubProcDefIdList(List subProcDefIdList) {
this.subProcDefIdList = subProcDefIdList;
return this;
}
public NodeQuery setAdjustSubProcDefId(String adjustSubProcDefId) {
this.adjustSubProcDefId = adjustSubProcDefId;
return this;
}
public NodeQuery setAdjustSubProcDefIdList(List adjustSubProcDefIdList) {
this.adjustSubProcDefIdList = adjustSubProcDefIdList;
return this;
}
public NodeQuery setNodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
public NodeQuery setNodeTypeList(List nodeTypeList) {
this.nodeTypeList = nodeTypeList;
return this;
}
public NodeQuery setNodeCode(String nodeCode) {
this.nodeCode = nodeCode;
return this;
}
public NodeQuery setNodeCodeList(List nodeCodeList) {
this.nodeCodeList = nodeCodeList;
return this;
}
public NodeQuery setNodeName(String nodeName) {
this.nodeName = nodeName;
return this;
}
public NodeQuery setNodeNameList(List nodeNameList) {
this.nodeNameList = nodeNameList;
return this;
}
public NodeQuery setParentNodeCode(String parentNodeCode) {
this.parentNodeCode = parentNodeCode;
return this;
}
public NodeQuery setParentNodeCodeList(List parentNodeCodeList) {
this.parentNodeCodeList = parentNodeCodeList;
return this;
}
public NodeQuery setNodeEndUser(String nodeEndUser) {
this.nodeEndUser = nodeEndUser;
return this;
}
public NodeQuery setNodeEndUserList(List nodeEndUserList) {
this.nodeEndUserList = nodeEndUserList;
return this;
}
public NodeQuery setNodeEndUserName(String nodeEndUserName) {
this.nodeEndUserName = nodeEndUserName;
return this;
}
public NodeQuery setNodeEndUserNameList(List nodeEndUserNameList) {
this.nodeEndUserNameList = nodeEndUserNameList;
return this;
}
public NodeQuery setFromNodeEndDate(Date fromNodeEndDate) {
this.fromNodeEndDate = fromNodeEndDate;
return this;
}
public NodeQuery setToNodeEndDate(Date toNodeEndDate) {
this.toNodeEndDate = toNodeEndDate;
return this;
}
public NodeQuery setIsolateSubProcDefCode(String isolateSubProcDefCode) {
this.isolateSubProcDefCode = isolateSubProcDefCode;
return this;
}
public NodeQuery setIsolateSubProcDefCodeList(List isolateSubProcDefCodeList) {
this.isolateSubProcDefCodeList = isolateSubProcDefCodeList;
return this;
}
public NodeQuery setIsolateSubProcStatus(String isolateSubProcStatus) {
this.isolateSubProcStatus = isolateSubProcStatus;
return this;
}
public NodeQuery setIsolateSubProcStatusList(List isolateSubProcStatusList) {
this.isolateSubProcStatusList = isolateSubProcStatusList;
return this;
}
public NodeQuery setNodeStatus(String nodeStatus) {
this.nodeStatus = nodeStatus;
return this;
}
public NodeQuery setNodeStatusList(List nodeStatusList) {
this.nodeStatusList = nodeStatusList;
return this;
}
public NodeQuery setFromCreationDate(Date fromCreationDate) {
this.fromCreationDate = fromCreationDate;
return this;
}
public NodeQuery setToCreationDate(Date toCreationDate) {
this.toCreationDate = toCreationDate;
return this;
}
public NodeQuery setProcId(String procId) {
this.procId = procId;
return this;
}
public NodeQuery setProcIdList(List procIdList) {
this.procIdList = procIdList;
return this;
}
public NodeQuery setAdjustProcDefId(String adjustProcDefId) {
this.adjustProcDefId = adjustProcDefId;
return this;
}
public NodeQuery setAdjustProcDefIdList(List adjustProcDefIdList) {
this.adjustProcDefIdList = adjustProcDefIdList;
return this;
}
public NodeQuery setIsolateSubProcNodeId(String isolateSubProcNodeId) {
this.isolateSubProcNodeId = isolateSubProcNodeId;
return this;
}
public NodeQuery setIsolateSubProcNodeIdList(List isolateSubProcNodeIdList) {
this.isolateSubProcNodeIdList = isolateSubProcNodeIdList;
return this;
}
public NodeQuery setBizId(String bizId) {
this.bizId = bizId;
return this;
}
public NodeQuery setBizIdList(List bizIdList) {
this.bizIdList = bizIdList;
return this;
}
public NodeQuery setBizType(String bizType) {
this.bizType = bizType;
return this;
}
public NodeQuery setBizTypeList(List bizTypeList) {
this.bizTypeList = bizTypeList;
return this;
}
public NodeQuery setBizCode(String bizCode) {
this.bizCode = bizCode;
return this;
}
public NodeQuery setBizCodeList(List bizCodeList) {
this.bizCodeList = bizCodeList;
return this;
}
public NodeQuery setBizName(String bizName) {
this.bizName = bizName;
return this;
}
public NodeQuery setBizNameList(List bizNameList) {
this.bizNameList = bizNameList;
return this;
}
public NodeQuery setBizDesc(String bizDesc) {
this.bizDesc = bizDesc;
return this;
}
public NodeQuery setBizDescList(List bizDescList) {
this.bizDescList = bizDescList;
return this;
}
public NodeQuery setProcStartUser(String procStartUser) {
this.procStartUser = procStartUser;
return this;
}
public NodeQuery setProcStartUserList(List procStartUserList) {
this.procStartUserList = procStartUserList;
return this;
}
public NodeQuery setProcStartUserName(String procStartUserName) {
this.procStartUserName = procStartUserName;
return this;
}
public NodeQuery setProcStartUserNameList(List procStartUserNameList) {
this.procStartUserNameList = procStartUserNameList;
return this;
}
public NodeQuery setProcEndUser(String procEndUser) {
this.procEndUser = procEndUser;
return this;
}
public NodeQuery setProcEndUserList(List procEndUserList) {
this.procEndUserList = procEndUserList;
return this;
}
public NodeQuery setProcEndUserName(String procEndUserName) {
this.procEndUserName = procEndUserName;
return this;
}
public NodeQuery setProcEndUserNameList(List procEndUserNameList) {
this.procEndUserNameList = procEndUserNameList;
return this;
}
public NodeQuery setFromProcEndDate(Date fromProcEndDate) {
this.fromProcEndDate = fromProcEndDate;
return this;
}
public NodeQuery setToProcEndDate(Date toProcEndDate) {
this.toProcEndDate = toProcEndDate;
return this;
}
public NodeQuery setProcStatus(String procStatus) {
this.procStatus = procStatus;
return this;
}
public NodeQuery setProcStatusList(List procStatusList) {
this.procStatusList = procStatusList;
return this;
}
public NodeQuery setFromProcCreationDate(Date fromProcCreationDate) {
this.fromProcCreationDate = fromProcCreationDate;
return this;
}
public NodeQuery setToProcCreationDate(Date toProcCreationDate) {
this.toProcCreationDate = toProcCreationDate;
return this;
}
public NodeQuery setProcDefId(String procDefId) {
this.procDefId = procDefId;
return this;
}
public NodeQuery setProcDefIdList(List procDefIdList) {
this.procDefIdList = procDefIdList;
return this;
}
public NodeQuery setProcDefCode(String procDefCode) {
this.procDefCode = procDefCode;
return this;
}
public NodeQuery setProcDefCodeList(List procDefCodeList) {
this.procDefCodeList = procDefCodeList;
return this;
}
public NodeQuery setProcDefName(String procDefName) {
this.procDefName = procDefName;
return this;
}
public NodeQuery setProcDefNameList(List procDefNameList) {
this.procDefNameList = procDefNameList;
return this;
}
public NodeQuery setProcDefCat(String procDefCat) {
this.procDefCat = procDefCat;
return this;
}
public NodeQuery setProcDefCatList(List procDefCatList) {
this.procDefCatList = procDefCatList;
return this;
}
public NodeQuery setVersion(Integer version) {
this.version = version;
return this;
}
public NodeQuery setVersionList(List versionList) {
this.versionList = versionList;
return this;
}
public NodeQuery setProcDefStatus(String procDefStatus) {
this.procDefStatus = procDefStatus;
return this;
}
public NodeQuery setProcDefStatusList(List procDefStatusList) {
this.procDefStatusList = procDefStatusList;
return this;
}
public NodeQuery setEmptyParentNode(Boolean emptyParentNode) {
this.emptyParentNode = emptyParentNode;
return this;
}
public NodeQuery setEmptyPreviousNodes(Boolean emptyPreviousNodes) {
this.emptyPreviousNodes = emptyPreviousNodes;
return this;
}
public NodeQuery setEmptyLastCompleteNodes(Boolean emptyLastCompleteNodes) {
this.emptyLastCompleteNodes = emptyLastCompleteNodes;
return this;
}
public NodeQuery setPage(Integer page) {
this.page = page;
return this;
}
public NodeQuery setLimit(Integer limit) {
this.limit = limit;
return this;
}
public NodeQuery setDataScope(String dataScope) {
this.dataScope = dataScope;
return this;
}
/**
* 查询对象列表。对象格式为Map。
*
* @return
*/
public List> queryForMapList() {
return ffNodeService.selectNode(nodeId, nodeIdList, parentNodeId, parentNodeIdList, previousNodeIds, lastCompleteNodeIds, subProcDefId, subProcDefIdList, adjustSubProcDefId, adjustSubProcDefIdList, nodeType, nodeTypeList, nodeCode, nodeCodeList, nodeName, nodeNameList, parentNodeCode, parentNodeCodeList, nodeEndUser, nodeEndUserList, nodeEndUserName, nodeEndUserNameList, fromNodeEndDate, toNodeEndDate, isolateSubProcDefCode, isolateSubProcDefCodeList, isolateSubProcStatus, isolateSubProcStatusList, nodeStatus, nodeStatusList, fromCreationDate, toCreationDate, procId, procIdList, adjustProcDefId, adjustProcDefIdList, isolateSubProcNodeId, isolateSubProcNodeIdList, bizId, bizIdList, bizType, bizTypeList, bizCode, bizCodeList, bizName, bizNameList, bizDesc, bizDescList, procStartUser,
procStartUserList, procStartUserName, procStartUserNameList, procEndUser, procEndUserList, procEndUserName, procEndUserNameList, fromProcEndDate, toProcEndDate, procStatus, procStatusList, fromProcCreationDate, toProcCreationDate, procDefId, procDefIdList, procDefCode, procDefCodeList, procDefName, procDefNameList, procDefCat, procDefCatList, version, versionList, procDefStatus, procDefStatusList, emptyParentNode, emptyPreviousNodes, emptyLastCompleteNodes, page, limit, dataScope);
}
/**
* 查询单个对象。对象格式为Map。
*
* @return
*/
public Map queryForMap() {
List> result = queryForMapList();
if (result.size() == 1) {
return result.get(0);
}
else {
return null;
}
}
/**
* 查询对象列表。对象格式为实体Bean。
*
* @return
*/
public List queryForObjectList() {
List> result = queryForMapList();
List nodeList = new ArrayList<>();
for (int i = 0; i < result.size(); i++) {
nodeList.add(new Node(result.get(i)));
}
return nodeList;
}
/**
* 查询单个对象。对象格式为实体Bean。
*
* @return
*/
public Node queryForObject() {
List> result = queryForMapList();
if (result.size() == 1) {
return new Node(result.get(0));
}
else {
return null;
}
}
/**
* 查询总数。
*
* @return
*/
public int count() {
return ffNodeService.countNode(nodeId, nodeIdList, parentNodeId, parentNodeIdList, previousNodeIds, lastCompleteNodeIds, subProcDefId, subProcDefIdList, adjustSubProcDefId, adjustSubProcDefIdList, nodeType, nodeTypeList, nodeCode, nodeCodeList, nodeName, nodeNameList, parentNodeCode, parentNodeCodeList, nodeEndUser, nodeEndUserList, nodeEndUserName, nodeEndUserNameList, fromNodeEndDate, toNodeEndDate, isolateSubProcDefCode, isolateSubProcDefCodeList, isolateSubProcStatus, isolateSubProcStatusList, nodeStatus, nodeStatusList, fromCreationDate, toCreationDate, procId, procIdList, adjustProcDefId, adjustProcDefIdList, isolateSubProcNodeId, isolateSubProcNodeIdList, bizId, bizIdList, bizType, bizTypeList, bizCode, bizCodeList, bizName, bizNameList, bizDesc, bizDescList, procStartUser,
procStartUserList, procStartUserName, procStartUserNameList, procEndUser, procEndUserList, procEndUserName, procEndUserNameList, fromProcEndDate, toProcEndDate, procStatus, procStatusList, fromProcCreationDate, toProcCreationDate, procDefId, procDefIdList, procDefCode, procDefCodeList, procDefName, procDefNameList, procDefCat, procDefCatList, version, versionList, procDefStatus, procDefStatusList, emptyParentNode, emptyPreviousNodes, emptyLastCompleteNodes, dataScope);
}
}