org.nuxeo.ecm.platform.syndication
Class FeedItemAdapter
java.lang.Object
org.nuxeo.ecm.platform.syndication.FeedItemAdapter
public class FeedItemAdapter
- extends Object
- Author:
- Brice Chaffangeon, Florent Guillaume
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
DocumentModel
s to a list of FeedItem
s.
- Parameters:
docList
- the list of document models
- Returns:
- the list of feed items
- Throws:
ClientException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.