Package edu.isi.karma.controller.command

Examples of edu.isi.karma.controller.command.JSONInputCommandFactory


        .getExecutionController(workspace.getId());
    JSONArray inputParamArr = this.createMultiCellCmd(rvco, selectedPath
        .getLeaf().getId());
    CommandFactory cf = ctrl.getCommandFactoryMap().get(
        MultipleValueEditColumnCommand.class.getSimpleName());
    JSONInputCommandFactory scf = (JSONInputCommandFactory) cf;

    // TODO handle exceptions intelligently
    Command comm = scf.createCommand(inputParamArr, workspace);
    if (comm != null) {
      // logger.info("Executing command: " +
      // commObject.get(HistoryArguments.commandName.name()));
      workspace.getCommandHistory().doCommand(comm, workspace);
    }
View Full Code Here


        hTableId, colnameString);
    ExecutionController ctrl = WorkspaceRegistry.getInstance()
        .getExecutionController(workspace.getId());
    CommandFactory cf0 = ctrl.getCommandFactoryMap().get(
        AddColumnCommand.class.getSimpleName());
    JSONInputCommandFactory scf1 = (JSONInputCommandFactory) cf0;
    Command comm1 = null;

    // TODO handle exceptions intelligently
    try {
      comm1 = scf1.createCommand(inputParamArr0, workspace);
    } catch (JSONException e1) {
      logger.error(
          "Error creating new "
              + AddColumnCommand.class.getSimpleName(), e1);
    } catch (KarmaException e1) {
View Full Code Here

        {
          JSONArray inputParamArr = (JSONArray) commObject.get(HistoryArguments.inputParameters.name());
          CommandFactory cf = commandFactoryMap.get(commObject.get(HistoryArguments.commandName.name()));
          if(cf != null && cf instanceof JSONInputCommandFactory) {

            JSONInputCommandFactory scf = (JSONInputCommandFactory)cf;
            Command comm = null;
            try {
              comm = scf.createCommand(inputParamArr, workspace);
            } catch (JSONException | KarmaException e) {
              logger.error("Unable to parse command from worksheet history");
            }
            if(comm != null){
              if(comm instanceof PythonTransformationCommand)
View Full Code Here

TOP

Related Classes of edu.isi.karma.controller.command.JSONInputCommandFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.