2010-05-05 01:24:48 +02:00
|
|
|
package com.metaweb.gridworks.commands.recon;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
import org.json.JSONObject;
|
|
|
|
|
|
|
|
import com.metaweb.gridworks.commands.EngineDependentCommand;
|
|
|
|
import com.metaweb.gridworks.model.AbstractOperation;
|
|
|
|
import com.metaweb.gridworks.model.Project;
|
|
|
|
import com.metaweb.gridworks.model.ReconCandidate;
|
2010-05-21 20:15:13 +02:00
|
|
|
import com.metaweb.gridworks.operations.recon.ReconMatchSpecificTopicOperation;
|
2010-05-05 01:24:48 +02:00
|
|
|
|
|
|
|
public class ReconMatchSpecificTopicCommand extends EngineDependentCommand {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected AbstractOperation createOperation(Project project,
|
|
|
|
HttpServletRequest request, JSONObject engineConfig) throws Exception {
|
|
|
|
|
|
|
|
String columnName = request.getParameter("columnName");
|
|
|
|
ReconCandidate match = new ReconCandidate(
|
|
|
|
request.getParameter("topicID"),
|
|
|
|
request.getParameter("topicGUID"),
|
|
|
|
request.getParameter("topicName"),
|
|
|
|
request.getParameter("types").split(","),
|
|
|
|
100
|
|
|
|
);
|
|
|
|
|
|
|
|
return new ReconMatchSpecificTopicOperation(engineConfig, columnName, match);
|
|
|
|
}
|
|
|
|
}
|