Examples of Importer


Examples of org.jitterbit.integration.client.project.jitterpack.Importer

            if (!destinationChecker.isLocationOk(params, descriptor, destinationFolder)) {
                logDestinationDenied(destinationFolder);
                callback.unpackingCancelled(null);
                return;
            }
            Importer importer = createImporter(params);
            IntegrationProject project = importer.unpack(jitterpack, descriptor, destinationFolder, params,
                            loadingIssuesHandler);
            callback.unpackingCompleted(project);
        } catch (ProjectLoadingCancelledException ex) {
            logUnpackCancelled();
            callback.unpackingCancelled(null);
View Full Code Here

Examples of org.nasutekds.server.backends.ndb.importLDIF.Importer

                                   message);
    }

    try
    {
      Importer importer = new Importer(importConfig);
      if (rootContainer == null) {
        rootContainer = initializeRootContainer();
      }
      return importer.processImport(rootContainer);
    }
    catch (IOException ioe)
    {
      if (debugEnabled())
      {
View Full Code Here

Examples of org.openbp.jaspira.gui.interaction.Importer

    Rectangle localBounds = SwingUtil.convertBoundsToGlassCoords(pane.getViewport());
    if (localBounds.contains(p))
    {
      List result = new ArrayList();

      result.add(new Importer("addNode", this, new DataFlavor [] { ClientFlavors.NODE_PROVIDER }));
      result.add(new Importer("addTextElement", this, new DataFlavor [] { ClientFlavors.TEXT_ELEMENT }));
      result.add(new Importer("addHLine", this, new DataFlavor [] { ModelerFlavors.HLINE }));
      result.add(new Importer("addVLine", this, new DataFlavor [] { ModelerFlavors.VLINE }));

      return result;
    }

    return null;
View Full Code Here

Examples of org.opoo.press.importer.Importer

   */
  @Override
  public void doImport(Site site, String importer, Map<String, Object> params) throws Exception {
    @SuppressWarnings("unchecked")
    Map<String,String> importers = (Map<String, String>) site.getConfig().get("importers");
    Importer importerInstance = null;
    if(importers != null){
      String className = importers.get(importer);
      if(className != null){
        importerInstance = (Importer) ClassUtils.newInstance(className, site);
      }
    }
   
    if(importerInstance == null){
      throw new Exception("No valid importer: " + importer);
    }
   
    importerInstance.doImport(site, params);
  }
View Full Code Here

Examples of org.structr.web.Importer

    }

    if (!errorBuffer.hasError()) {

      Importer importer = new Importer(securityContext, _source, baseUrl, null, 1, true, true);

      importer.parse(true);
      importer.createChildNodes(parent, page);

    } else {

      // report error to ui
      throw new FrameworkException(422, errorBuffer);
View Full Code Here

Examples of org.zkoss.zss.model.Importer

    if (_book == null) {
      if (_src == null) {
        throw new UiException("Must specify the src of the spreadsheet to create a new book");
      }
      try {
        Importer importer = _importer;
        if(importer == null){
          importer = new ExcelImporter();
        }

        if(importer instanceof ExcelImporter){
          URL url = null;
         
          if(_src.startsWith("/")){//try to load by application context.
            File file = new File(Executions.getCurrent().getDesktop().getWebApp().getRealPath(_src));
            if(file.exists()){
              url = file.toURI().toURL();
            }
          }
          if(url==null){//try to load from class loader
            url = new ClassLocator().getResource(_src);
          }
          if(url==null){//try to load from file
            File f = new File(_src);
            if(f.exists()){
              url = f.toURI().toURL();
            }
          }
         
          if(url==null){
            throw new UiException("resource for "+_src+" not found.");
          }

          _book = ((ExcelImporter)importer).imports(url);
        }else{
          _book = importer.imports(_src);
        }
       
        _book.addSSDataListener(_dataListener);
        _book.addVariableResolver(_variableResolver);
        _book.addFunctionMapper(_functionMapper);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.