Examples of execute()


Examples of com.esri.gpt.catalog.management.MmdActionRequest.execute()

      criteria.getActionCriteria().setMetadataAccessPolicy(defaultAcl);
    }

    MmdActionRequest request = new MmdActionRequest(context,publisherForAction,criteria,getResult());
    if (!applyToAll) {
      request.execute();
    } else {
      if (!_queryCriteriaForAction.getIsEmpty()) {
        request.execute(_queryCriteriaForAction);
      }
    }
View Full Code Here

Examples of com.esri.gpt.catalog.management.MmdQueryRequest.execute()

  }

  // execute the request
  MmdQueryRequest request;
  request = new MmdQueryRequest(context, publisher, getCriteria(), getResult());
  request.execute();
 
  // determine if collections are in use
  CollectionDao colDao = new CollectionDao(context);
  boolean useCollections = colDao.getUseCollections();
View Full Code Here

Examples of com.esri.gpt.catalog.publication.CollectSourceUrisRequest.execute()

      @Override
      protected void onSourceUri(String sourceUri, String uuid) throws IOException {
        sourceUris.add(new String[]{sourceUri, uuid});
      }
    };
    request.execute();
  }

  /**
   * Sends email notification about completed harvest.
   * @param context request context
View Full Code Here

Examples of com.esri.gpt.catalog.publication.DeleteSourceUrisRequest.execute()

          boolean webharvesterCleanup = Val.chkBool(appCfg.getCatalogConfiguration().getParameters().getValue("webharvester.cleanup"), true);
          if (webharvesterCleanup) {
            LOGGER.info("[SYNCHRONIZER] Attempting to clean non-existend records from: "+unit);
            DeleteSourceUrisRequest deleteSourceUrisRequest = new DeleteSourceUrisRequest(context, unit.getPublisher(), iterable);
            try {
              deleteSourceUrisRequest.execute();
              LOGGER.info("[SYNCHRONIZER] Cleaned "+deleteSourceUrisRequest.getDeletedCount()+" records from: "+unit);
              return deleteSourceUrisRequest.getDeletedCount();
            } catch (Exception ex) {
              LOGGER.log(Level.SEVERE, "[SYNCHRONIZER] Error when attempting to clean non-existend records from: "+unit, ex);
            }
View Full Code Here

Examples of com.esri.gpt.control.georss.dcatcache.DcatCacheUpdateRequest.execute()

    } catch (FileNotFoundException ex) {
      writer.println("[]");

      DcatCacheUpdateRequest cureq = new DcatCacheUpdateRequest();
      cureq.execute();
    } finally {
      if (cacheStream != null) {
        try {
          cacheStream.close();
        } catch (IOException ex) {
View Full Code Here

Examples of com.esri.gpt.framework.http.HttpClientRequest.execute()

    }
    http.setContentProvider(contentProvider);
    http.setContentHandler(contentHandler);
   
    try {
      http.execute();
    } catch (HttpClientException ex) {
      boolean doThrow = true;
      if (ex.getHttpStatusCode()==302) {
        // This part of the code deals with redirect issue which accurs when
        // harvesting from arcgis.com
View Full Code Here

Examples of com.esri.gpt.framework.resource.query.Query.execute()

      System.out.println("newQuery");
      CommonCriteria crt = new CommonCriteria();
      crt.setMaxRecords(5);
      Query query = instance.newQuery(crt);
      assertNotNull(query);
      Result result = query.execute();
      assertNotNull(result);
      Iterable<Resource> resources = result.getResources();
      assertNotNull(resources);
      int count = 0;
      for (Resource resource : resources) {
View Full Code Here

Examples of com.esri.sde.sdk.client.SeInsert.execute()

                    insertStream.intoTable(typeName, rowColumnNames);
                    insertStream.setWriteMode(true);
                    row = insertStream.getRowToSet();

                    setRowProperties(newFeature, seCoordRef, insertColumns, row);
                    insertStream.execute();

                    if (fidReader instanceof FIDReader.SdeManagedFidReader) {
                        SeObjectId newRowId = insertStream.lastInsertedRowId();
                        newId = Long.valueOf(newRowId.longValue());
                    }
View Full Code Here

Examples of com.esri.sde.sdk.client.SeQuery.execute()

      String[] tables = {METADATA_TABLE };
      sqlConstruct.setTables(tables);
      String[] propertyNames = { METADATA_COLUMN };     
      SeQuery query = new SeQuery(seConnection);
      query.prepareQuery(propertyNames, sqlConstruct);
      query.execute();
     
      // it is not documented in the ArcSDE API how you know there are no more rows to fetch!
      // I'm assuming: query.fetch returns null (empiric tests indicate this assumption is correct).
      boolean allRowsFetched = false;
      while(! allRowsFetched) {
View Full Code Here

Examples of com.esri.sde.sdk.client.SeUpdate.execute()

                    IOException {
                try {
                    final SeRow row = updateStream.singleRow(seObjectId, typeName, rowColumnNames);

                    setRowProperties(modifiedFeature, seCoordRef, mutableColumns, row);
                    updateStream.execute();
                    // updateStream.flushBufferedWrites();
                } finally {
                    updateStream.close();
                }
                return null;
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.