Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.syndication
Class FeedItemAdapter

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

public class FeedItemAdapter
extends Object

Author:
Brice Chaffangeon, Florent Guillaume

Method Summary
static FeedItem toFeedItem(DocumentModel doc, HttpServletRequest req)
          Convert a DocumentModel to a FeedItem.
static List<FeedItem> toFeedItemList(List<DocumentModel> docList, 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,
                                  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 List<FeedItem> toFeedItemList(List<DocumentModel> docList,
                                            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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.