Package com.esri.gpt.framework.resource.api

Examples of com.esri.gpt.framework.resource.api.Publishable


public Publishable next() {
  if (!hasNext()) {
    throw new NoSuchElementException("No more publishables.");
  }
  Publishable publishable = next;
  next = null;
  return publishable;
}
View Full Code Here


        }
      }
     
      // check for the next available data
      while (iterator.hasNext()) {
        Publishable next = iterator.next();
        if (totalCount==0) {
          totalCount++;
          continue;
        }
        resource = next;
View Full Code Here

    for (Node nd : new NodeListAdapter(nodeList)) {
      recs++;
      maxReached = criteria!=null && criteria.getMaxRecords()!=null && recs>criteria.getMaxRecords();
      if (maxReached) break;
      final String id = (String) xPath.evaluate("identifier/text()", nd, XPathConstants.STRING);
      Publishable publishable = new CommonPublishable() {
        private StringUri uri = new StringUri(id);
       
        @Override
        public SourceUri getSourceUri() {
          return uri;
View Full Code Here

          Date modifiedDate = ii.getModifiedDate();
         
          if (criteria!=null && criteria.getFromDate()!=null && modifiedDate!=null && criteria.getFromDate().before(modifiedDate)) {
            continue;
          }
          Publishable publishable = new CommonPublishable() {

            private String itemInfoUrl = info.getUrl().replaceAll("/$", "") + "/content/items/" + ii.getId() + "/info/iteminfo.xml";
            private StringUri uri = new StringUri(formatUuid(ii.getId()));

            @Override
View Full Code Here

      maxReached = criteria!=null && criteria.getMaxRecords()!=null && recs>criteria.getMaxRecords();
      if (maxReached) break;
     
      final String id = (String) xPath.evaluate("atom:id/text()", entry, XPathConstants.STRING);
     
      Publishable publishable = new CommonPublishable() {
        private StringUri uri = new StringUri(id);
       
        public SourceUri getSourceUri() {
          return uri;
        }
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.resource.api.Publishable

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.