Examples of AgpSearchRequest


Examples of com.esri.gpt.agp.client.AgpSearchRequest

    destinationItem.setProperties(null);
   
    final String url = sourceItem.getProperties().getValue("url");
    String sQuery = "url:\""+url+"\"";
   
    AgpSearchRequest request = new AgpSearchRequest();
    AgpSearchCriteria criteria = new AgpSearchCriteria();
    criteria.setQ(sQuery);
    criteria.setNum(1);
    request.search(destination.getConnection(),criteria,
      new AgpItemListener() {
        @Override
        public void onItemLoaded(AgpConnection connection, AgpItem item)
          throws Exception {
          if (url.equals(item.getProperties().get("url").getValue()) && Ags2AgpCopy.this.destination.getDestinationOwner().equals(item.getProperties().get("owner").getValue())) {
View Full Code Here

Examples of com.esri.gpt.agp.client.AgpSearchRequest

    final AgpItem destItem = new AgpItem();
    destItem.setProperties(null);
   
    String sSrcId = sourceItem.getProperties().getValue("id");
    String sQuery = "id:"+sSrcId;
    AgpSearchRequest request = new AgpSearchRequest();
    AgpSearchCriteria criteria = new AgpSearchCriteria();
    criteria.setQ(sQuery);
    criteria.setNum(1);
    request.search(destination.getConnection(),criteria,
      new AgpItemListener() {
        @Override
        public void onItemLoaded(AgpConnection connection, AgpItem item)
          throws Exception {
          destItem.setProperties(item.getProperties());
View Full Code Here

Examples of com.esri.gpt.agp.client.AgpSearchRequest

    destinationItem.setProperties(null);
   
    String sSyncKey = this.makeSyncKey(sourceItem);
    String sQuery = "typekeywords:"+sSyncKey;
   
    AgpSearchRequest request = new AgpSearchRequest();
    AgpSearchCriteria criteria = new AgpSearchCriteria();
    criteria.setQ(sQuery);
    criteria.setNum(1);
    request.search(destination.getConnection(),criteria,
      new AgpItemListener() {
        @Override
        public void onItemLoaded(AgpConnection connection, AgpItem item)
          throws Exception {
          destinationItem.setProperties(item.getProperties());
View Full Code Here

Examples of com.esri.gpt.agp.client.AgpSearchRequest

   */
  protected AgpItem querySingleItem(AgpConnection connection, String query)
    throws Exception {
    final AgpItem qItem = new AgpItem();
    qItem.setProperties(null);
    AgpSearchRequest request = new AgpSearchRequest();
    AgpSearchCriteria criteria = new AgpSearchCriteria();
    criteria.setQ(query);
    criteria.setNum(1);
    request.search(connection,criteria,
      new AgpItemListener() {
        @Override
        public void onItemLoaded(AgpConnection connection, AgpItem item) throws Exception {
          qItem.setProperties(item.getProperties());
        }
View Full Code Here

Examples of com.esri.gpt.agp.client.AgpSearchRequest

   * @throws Exception if an exception occurs
   */
  private void processWebMaps() throws Exception {
    LOGGER.finer("Publishing "+this.webMaps.size()+" web map(s).");
    for (String sId: this.webMaps) {
      AgpSearchRequest request = new AgpSearchRequest();
      AgpSearchCriteria criteria = new AgpSearchCriteria();
      criteria.setQ("id:"+sId);
      criteria.setNum(1);
      request.search(this.source.getConnection(),criteria,
        new AgpItemListener() {
          @Override
          public void onItemLoaded(AgpConnection connection, AgpItem item)
            throws Exception {
            processWebMap(item);
View Full Code Here

Examples of com.esri.gpt.agp.client.AgpSearchRequest

    this.millisStart = System.currentTimeMillis();
    LOGGER.info("AgpPush: Starting synchronization...");
    try {
      this.source.getConnection().generateToken();
      this.destination.getConnection().generateToken();
      AgpSearchRequest sourceRequest = new AgpSearchRequest() {
        @Override
        protected boolean doContinue() {
          return AgpPush.this.doContinue();
        }
      };
      sourceRequest.search(this.source.getConnection(),this.source.getSearchCriteria(),
        new AgpItemListener() {
          @Override
          public void onItemLoaded(AgpConnection connection, AgpItem item) throws Exception {
            AgpPush.this.syncItem(item);
          }
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.