Package com.tridion.webservices.odata.model

Examples of com.tridion.webservices.odata.model.ODataFeed


  protected ODataBase resolveRelation(ODataEntry previouslyResolvedEntry) {
    return new ODataErrorResponse("", "Relation is not supported");
  }

  private ODataFeed buildQueryEntries(List<ComponentMeta> items) throws FeedBuildingException, JPQLExecutionException {
    ODataFeed feed = new ODataFeed(ODataFeed.COMPONENT_TITLE, getRequestUrl(), getBaseUrl());
    feed.setUpdated(new Date());
    feed.setId(getRequestUrl());
    for (ComponentMeta componentMeta : items) {
      feed.addEntry(buildEntry(componentMeta, false));
    }

    return feed;
  }
View Full Code Here


    return new ODataErrorResponse("", "Relation is not supported");
  }

  private ODataFeed buildQueryEntries(List<ComponentPresentation> items) throws FeedBuildingException,
      JPQLExecutionException {
    ODataFeed feed = new ODataFeed(ODataFeed.COMPONENT_PRESENTATION_FEED_TITLE, getRequestUrl(), getBaseUrl());
    feed.setUpdated(new Date());
    feed.setId(getRequestUrl());
    for (ComponentPresentation item : items) {
      feed.addEntry(buildEntry(item, false));
    }

    return feed;
  }
View Full Code Here

  protected ODataBase resolveRelation(ODataEntry previouslyResolvedEntry) {
    return new ODataErrorResponse("", "Relation is not supported");
  }

  private ODataFeed buildQueryEntries(List<PageMeta> items) throws FeedBuildingException, JPQLExecutionException {
    ODataFeed feed = new ODataFeed(ODataFeed.PAGE_TITLE, getRequestUrl(), getBaseUrl());
    feed.setUpdated(new Date());
    feed.setId(getRequestUrl());
    for (PageMeta pageMeta : items) {
      feed.addEntry(buildEntry(pageMeta, false));
    }

    return feed;
  }
View Full Code Here

TOP

Related Classes of com.tridion.webservices.odata.model.ODataFeed

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.