
org.bidib.wizard.script.node.SetCvCommand Maven / Gradle / Ivy
package org.bidib.wizard.script.node;
import java.util.Map;
import org.bidib.wizard.mvc.script.view.NodeScripting;
import org.bidib.wizard.script.AbstractScriptCommand;
import org.bidib.wizard.script.node.types.CvType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SetCvCommand extends AbstractScriptCommand {
private static final Logger LOGGER = LoggerFactory.getLogger(SetCvCommand.class);
public static final String KEY = "setCv";
private Long uuid;
private CvType cvType;
protected SetCvCommand() {
super(KEY);
}
public SetCvCommand(Long uuid, CvType cvType) {
super(KEY);
this.uuid = uuid;
this.cvType = cvType;
}
@Override
public void parse(String commandLine) {
// TODO Auto-generated method stub
LOGGER.info("Set the CV: {}", commandLine);
// label = commandLine;
}
@Override
protected void internalExecute(final NodeScripting scripting, final Map context) {
LOGGER.info("Set the label.");
scripting.setCv(uuid, cvType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy