Package com.esri.gpt.catalog.search

Examples of com.esri.gpt.catalog.search.ResourceLink


      url += "&resourceType=" + serviceType;
    }
    String infoUrl = baseContextPath + this.metadataPath + "?f=html&showRelativeUrl=true&id=" + encodeUrlParam(id);
    url += "&info=" + encodeUrlParam(infoUrl);
    String resourceKey = "catalog.rest.preview";
    ResourceLink link = this.makeLink(url, ResourceLink.TAG_PREVIEW, resourceKey);
    if (serviceType.length() > 0) {
      link.getParameters().add(new StringAttribute("resourceType", serviceType));
    }
    record.getResourceLinks().add(link);
  }
View Full Code Here


    if ((resourceUrl.length() == 0) || serviceType.equals("aims")) {
      return;
    }

    String resourceKey = "catalog.rest.open";
    ResourceLink link = this.makeLink(resourceUrl, ResourceLink.TAG_OPEN,
            resourceKey);
    if (serviceType.length() > 0) {
      link.getParameters().add(new StringAttribute("resourceType", serviceType));
    }
    record.getResourceLinks().add(link);
  }
View Full Code Here

      }
    }

    String url = baseContextPath + imagePath + "/ContentType_" + contentType + ".png";
    String resourceKey = "catalog.search.filterContentTypes." + contentType;
    ResourceLink link = this.makeLink(url, ResourceLink.TAG_CONTENTTYPE, resourceKey);
    record.getResourceLinks().setIcon(link);
    record.getResourceLinks().add(link);
  }
View Full Code Here

    if (thumbUrl != null && thumbUrl.getValue() instanceof List && !((List) thumbUrl.getValue()).isEmpty()) {
      Object oVal = ((List) thumbUrl.getValue()).get(0);
      if (oVal instanceof IFeedAttribute && ((IFeedAttribute) oVal).getValue() instanceof String) {
        String url = (String) ((IFeedAttribute) oVal).getValue();
        String resourceKey = "catalog.rest.thumbNail";
        ResourceLink link = this.makeLink(url, ResourceLink.TAG_THUMBNAIL, resourceKey);
        record.getResourceLinks().setThumbnail(link);
      }
    }
  }
View Full Code Here

   * @param tag tag
   * @param resourceKey resource key for the label
   * @return link
   */
  protected ResourceLink makeLink(String url, String tag, String resourceKey) {
    ResourceLink link = new ResourceLink();
    link.setUrl(url);
    link.setTag(tag);
    link.setLabelResourceKey(resourceKey);
    link.setLabel(Val.chkStr(makeLabel(resourceKey)));
    return link;
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.search.ResourceLink

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.