Package com.esri.gpt.agp.client

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


   
    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 {
View Full Code Here


    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 {
View Full Code Here

   
    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 {
View Full Code Here

  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

   */
  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 {
View Full Code Here

    con1.setTokenCriteria(new AgpTokenCriteria());
    con1.getTokenCriteria().setCredentials(new AgpCredentials(
            attrs.getValue("src-u"), attrs.getValue("src-p")));
    con1.getTokenCriteria().setReferer(getReferrer());
    source.setConnection(con1);
    AgpSearchCriteria searchCriteria = new AgpSearchCriteria();
    searchCriteria.setSortField("title");
    searchCriteria.setQ(attrs.getValue("src-q"));
    searchCriteria.setDeepTotal(Long.valueOf(attrs.getValue("src-m")));
    source.setSearchCriteria(searchCriteria);

    return source;
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.agp.client.AgpSearchCriteria

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.