com.opendynamic.ff.query.NodeVarQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freeflow Show documentation
Show all versions of freeflow Show documentation
a flexible workflow engine
package com.opendynamic.ff.query;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import com.opendynamic.OdUtils;
import com.opendynamic.ff.service.FfNodeVarService;
import com.opendynamic.ff.service.FfService;
import com.opendynamic.ff.vo.NodeVar;
@Service
public class NodeVarQuery {
private FfNodeVarService ffNodeVarService;
private String nodeVarId;
private String nodeId;
private List varTypeList;
private String varName;
private Boolean recursive;
private Integer page;
private Integer limit;
public NodeVarQuery(FfNodeVarService ffNodeVarService) {
super();
this.ffNodeVarService = ffNodeVarService;
}
public NodeVarQuery setNodeVarId(String nodeVarId) {
this.nodeVarId = nodeVarId;
return this;
}
public NodeVarQuery setNodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
public NodeVarQuery setVarType(String varType) {
if (StringUtils.isNotEmpty(varType)) {
this.varTypeList = new ArrayList<>();
this.varTypeList.add(varType);
}
return this;
}
public NodeVarQuery setVarTypeList(List varTypeList) {
this.varTypeList = varTypeList;
return this;
}
public NodeVarQuery setVarName(String varName) {
this.varName = varName;
return this;
}
public NodeVarQuery setRecursive(Boolean recursive) {
this.recursive = recursive;
return this;
}
public NodeVarQuery setPage(Integer page) {
this.page = page;
return this;
}
public NodeVarQuery setLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 查询对象列表。对象格式为Map。
*
* @return
*/
public List