Package edu.isi.karma.controller.update

Examples of edu.isi.karma.controller.update.InfoUpdate


    try {
      if (service != null) {
        WebServicePublisher servicePublisher = new WebServicePublisher(service);
        servicePublisher.publish(Repository.Instance().LANG, true);
        logger.info("Service model has successfully been published to repository: " + service.getId());
        return new UpdateContainer(new InfoUpdate(
        "Service model has successfully been published to repository: " + service.getId()));
      } else { //if (source != null) {
        DataSourcePublisher sourcePublisher = new DataSourcePublisher(source, workspace.getFactory(), wk.getMetadataContainer().getSourceInformation());
        sourcePublisher.publish(Repository.Instance().LANG, true);
        logger.info("Source model has successfully been published to repository: " + source.getId());
        return new UpdateContainer(new InfoUpdate(
        "Source model has successfully been published to repository: " + source.getId()));
      }

    } catch (IOException e) {
      logger.error("Error occured while publishing the source/service ", e);
View Full Code Here


          outputObject.put(JsonKeys.updateType.name(), "PublishJSONUpdate");
          outputObject.put(JsonKeys.fileUrl.name(), relFilename);
          outputObject.put(JsonKeys.worksheetId.name(), worksheetId);
          pw.println(outputObject.toString(4));
          pw.println(",");
          new InfoUpdate("Succesfully exported to JSON").generateJson(prefix, pw, vWorkspace);
          boolean showCleaningCharts = UIConfiguration.Instance().isD3ChartsEnabled();
          if(importAsWorksheet && newWSId != null) {
            pw.println(",");
            new WorksheetListUpdate().generateJson(prefix, pw, vWorkspace);
            pw.println(",");
View Full Code Here

          outputObject.put(JsonKeys.updateType.name(), "PublishJSONUpdate");
          outputObject.put(JsonKeys.fileUrl.name(), relFilename);
          outputObject.put(JsonKeys.worksheetId.name(), worksheetId);
          pw.println(outputObject.toString(4));
          pw.println(",");
          new InfoUpdate("Succesfully exported to JSON").generateJson(prefix, pw, vWorkspace);
          boolean showCleaningCharts = UIConfiguration.Instance().isD3ChartsEnabled();
          if(importAsWorksheet && newWSId != null) {
            pw.println(",");
            new WorksheetListUpdate().generateJson(prefix, pw, vWorkspace);
            pw.println(",");
View Full Code Here

          outputObject.put(JsonKeys.updateType.name(), "PublishReportUpdate");
          outputObject.put(JsonKeys.fileUrl.name(), relFilename);
          outputObject.put(JsonKeys.worksheetId.name(), worksheetId);
          pw.println(outputObject.toString(4));
          pw.println(",");
          new InfoUpdate("Succesfully generated report").generateJson(prefix, pw, vWorkspace);
        } catch(Exception e) {
          pw.println("Error generting report");
          logger.error("Error generating report", e);
        }
       
View Full Code Here

            // Create a new Database Import Command. The interface allows the user to import
            // multiple tables
            ImportSQLCommand comm = new ImportSQLCommand(workspace.getFactory().getNewId("C"),
                    dbType.name(), hostname, portnumber, username, password, dBorSIDName, query);
            workspace.getCommandHistory().addPreviewCommand(comm);
            c.add(new InfoUpdate("Sucessfully imported data using SQL"));
            c.add(new SQLCommandUpdate(comm.getId()));
        } catch (Throwable e) {
            String message = e.getMessage().replaceAll("\n", "").replaceAll("\"", "\\\"");
            ErrorUpdate errUpdt = new ErrorUpdate(message);
            c.add(errUpdt);
View Full Code Here

TOP

Related Classes of edu.isi.karma.controller.update.InfoUpdate

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.