Examples of Importer


Examples of com.asakusafw.bulkloader.importer.Importer

                return Constants.EXIT_CODE_ERROR;
            }
            if (RuntimeContext.get().isSimulation()) {
                return Constants.EXIT_CODE_SUCCESS;
            }
            Importer importer = new Importer();
            int exitCode = importer.importTables(bean);
            if (exitCode == Constants.EXIT_CODE_SUCCESS) {
                LOG.info("TG-BUILDCACHE-01007", targetName, batchId, flowId, executionId, tableName);
                int releaseExit = new ReleaseCacheLock().execute(targetName, executionId);
                if (releaseExit != Constants.EXIT_CODE_SUCCESS) {
                    LOG.error("TG-BUILDCACHE-01008", targetName, batchId, flowId, executionId, tableName);
View Full Code Here

Examples of com.evasion.plugin.geoloc.dataimport.Importer

       
    }
   
    @Override
    public boolean importData(String file, String format) throws EvasionException {
        Importer geo = new Importer(em, utx);
        geo.setFile(file);
        return geo.importData(format, Mode.UPDATE);
    }
View Full Code Here

Examples of com.liferay.resourcesimporter.util.Importer

      long companyId = CompanyThreadLocal.getCompanyId();

      try {
        CompanyThreadLocal.setCompanyId(company.getCompanyId());

        Importer importer = null;

        if ((privateLARURL != null) || (publicLARURL != null)) {
          LARImporter larImporter = getLARImporter();

          URLConnection privateLARURLConnection = null;

          if (privateLARURL != null) {
            privateLARURLConnection =
              privateLARURL.openConnection();

            larImporter.setPrivateLARInputStream(
              privateLARURLConnection.getInputStream());
          }

          URLConnection publicLARURLConnection = null;

          if (publicLARURL != null) {
            publicLARURLConnection = publicLARURL.openConnection();

            larImporter.setPublicLARInputStream(
              publicLARURLConnection.getInputStream());
          }

          importer = larImporter;
        }
        else if ((resourcePaths != null) && !resourcePaths.isEmpty()) {
          importer = getResourceImporter();

          importer.setResourcesDir(_RESOURCES_DIR);
        }
        else {
          String resourcesDir = pluginPackageProperties.getProperty(
            "resources-importer-external-dir");

          if (Validator.isNotNull(resourcesDir)) {
            importer = getFileSystemImporter();

            importer.setResourcesDir(resourcesDir);
          }
        }

        if (importer == null) {
          throw new ImporterException("No valid importer found");
        }

        importer.setCompanyId(company.getCompanyId());
        importer.setServletContext(servletContext);
        importer.setServletContextName(servletContextName);
        importer.setTargetClassName(targetClassName);

        String targetValue = pluginPackageProperties.getProperty(
          "resources-importer-target-value");

        if (Validator.isNull(targetValue)) {
          targetValue = TextFormatter.format(
            servletContextName, TextFormatter.J);
        }

        importer.setTargetValue(targetValue);

        importer.afterPropertiesSet();

        boolean developerModeEnabled = GetterUtil.getBoolean(
          pluginPackageProperties.getProperty(
            "resources-importer-developer-mode-enabled"));

        if (!developerModeEnabled && importer.isExisting()) {
          if (_log.isInfoEnabled()) {
            _log.info(
              "Group or layout set prototype already exists " +
                "for company " + company.getWebId());
          }

          continue;
        }

        long startTime = 0;

        if (_log.isInfoEnabled()) {
          startTime = System.currentTimeMillis();
        }

        importer.importResources();

        if (_log.isInfoEnabled()) {
          long endTime = System.currentTimeMillis() - startTime;

          _log.info(
            "Importing resources from " + servletContextName +
              " to group " + importer.getGroupId() + " takes " +
                endTime + " ms");
        }

        Message newMessage = new Message();

        newMessage.put("companyId", company.getCompanyId());
        newMessage.put("servletContextName", servletContextName);
        newMessage.put("targetClassName", targetClassName);
        newMessage.put("targetClassPK", importer.getTargetClassPK());

        if (message.getResponseId() != null) {
          Map<String, Object> responseMap =
            new HashMap<String, Object>();

          responseMap.put("groupId", importer.getTargetClassPK());

          newMessage.setPayload(responseMap);

          newMessage.setResponseId(message.getResponseId());
        }
View Full Code Here

Examples of com.mossle.auth.support.Importer

        return exporter.execute();
    }

    public void doImport(String text) {
        Importer importer = new Importer();
        importer.setJdbcTemplate(jdbcTemplate);
        importer.execute(text);
    }
View Full Code Here

Examples of com.salas.bbutilities.opml.Importer

        throws ServerServiceException, ImporterException
    {
        String opml = ServerService.syncRestore(email, password);

        // parse output from server w/ possible empty guides
        final Importer im = new Importer();
        im.setAllowEmptyGuides(true);

        OPMLGuideSet set = im.processFromString(opml, false);

        GuidesSet remoteSet = Helper.createGuidesSet(null, set);
        final GuidesSet localSet = model.getGuidesSet();
        final Changes changes = evaluateChanges(localSet, remoteSet, copyServiceLayout);
View Full Code Here

Examples of de.komoot.photon.importer.elasticsearch.Importer

      return;
    }

    if(args.isNominatimImport()) {
      esServer.recreateIndex(); // dump previous data
      Importer importer = new Importer(esNodeClient);
      NominatimConnector nominatimConnector = new NominatimConnector(args.getHost(), args.getPort(), args.getDatabase(), args.getUser(), args.getPassword());
      nominatimConnector.setImporter(importer);
      nominatimConnector.readEntireDatabase();
      log.info("imported data from nominatim to photon.");
      return;
View Full Code Here

Examples of de.willuhn.jameica.hbci.io.Importer

    settings.setAttribute("lastdir",file.getParent());

    // Dialog schliessen
    close();

    final Importer importer = imp.importer;
    final IOFormat format = imp.format;

    BackgroundTask t = new BackgroundTask() {
      public void run(ProgressMonitor monitor) throws ApplicationException
      {
        try
        {
          InputStream is = new BufferedInputStream(new FileInputStream(file));
          importer.doImport(context,format,is,monitor);
          monitor.setPercentComplete(100);
          monitor.setStatus(ProgressMonitor.STATUS_DONE);
          GUI.getStatusBar().setSuccessText(i18n.tr("Daten importiert aus {0}",s));
          GUI.getCurrentView().reload();
        }
View Full Code Here

Examples of edu.uga.galileo.voci.importer.Importer

      ArrayList<Importer> importerCollection = new ArrayList<Importer>();
      String arrayElement;
      for (int m = 0; m < importerArray.length; m++) {
        arrayElement = importerArray[m].trim();
        if (arrayElement.length() > 0) {
          Importer importer = iman.getImporter(arrayElement, errors);
          importerCollection.add(importer);
        }
      }

      if (importerCollection.size() > 0) {
View Full Code Here

Examples of gov.nara.nwts.ftapp.importer.Importer

  JCheckBox forceKey;
  DirectoryTable parent;
  FileSelectChooser fsc;
 
  void updateDesc() {
    Importer i = (Importer)importers.getSelectedItem();
    importerDesc.setText(i.getDescription());
    forceKey.setEnabled(i.allowForceKey());
  }
View Full Code Here

Examples of net.sf.collabreview.importing.Importer

    logger.debug("AuthorManager created by its factory");
    collabReview.setAuthorManager(authorManager);
  }

  private void configureImporter(ConfigurationConfigurableCollabReview collabReview, ConfigurationData config) throws Exception {
    Importer importer = new Importer(collabReview.getWorkerDaemon()); //((ImportWorkerFactory)getFactory(config)).create();
    collabReview.setImporter(importer);
    importer.setCollabReview(collabReview);
    ImportWorkerFactory factory = (ImportWorkerFactory) getFactory(config);
    factory.setCollabReview(collabReview);
    importer.setImportWorker(factory.create());
  }
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.