Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.syndication
Class FeedItemAdapter

java.lang.Object
  extended by org.nuxeo.ecm.platform.syndication.FeedItemAdapter

public class FeedItemAdapter
extends java.lang.Object

Author:
Brice Chaffangeon, Florent Guillaume

Method Summary
static FeedItem toFeedItem(DocumentModel doc, javax.servlet.http.HttpServletRequest req)
          Convert a DocumentModel to a FeedItem.
static java.util.List<FeedItem> toFeedItemList(java.util.List<DocumentModel> docList, javax.servlet.http.HttpServletRequest req)
          Convert a list of DocumentModels to a list of FeedItems.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toFeedItem

public static FeedItem toFeedItem(DocumentModel doc,
                                  javax.servlet.http.HttpServletRequest req)
                           throws ClientException
Convert a DocumentModel to a FeedItem.

Parameters:
doc - the document model to convert
Returns:
a feed item, ready to be syndicate by ROME
Throws:
ClientException

toFeedItemList

public static java.util.List<FeedItem> toFeedItemList(java.util.List<DocumentModel> docList,
                                                      javax.servlet.http.HttpServletRequest req)
                                               throws ClientException
Convert a list of DocumentModels to a list of FeedItems.

Parameters:
docList - the list of document models
Returns:
the list of feed items
Throws:
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.