Package org.exoplatform.forum.rss
Class ForumFeedGenerator
java.lang.Object
org.exoplatform.forum.rss.RSSProcess
org.exoplatform.forum.rss.ForumFeedGenerator
- All Implemented Interfaces:
FeedContentProvider,FeedListener
public final class ForumFeedGenerator
extends RSSProcess
implements FeedContentProvider, FeedListener
- Version:
- $Revision$
- Author:
- Patrice Lamarque
-
Field Summary
FieldsFields inherited from class org.exoplatform.forum.rss.RSSProcess
dataLocator, maxSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidforumUpdated(String path, String linkItem, boolean updated) getFeedContent(String targetId) protected List<javax.jcr.Node>getListRemove(javax.jcr.Node removeNode, String childNodeType) voidvoiditemRemoved(String path) voiditemUpdated(String path) protected voidpostUpdated(String path, String linkItem, boolean updated) protected voidremoveItem(List<com.rometools.rome.feed.synd.SyndEntry> entries, List<javax.jcr.Node> listRemove) protected voidremoveItemInFeed(String itemId, javax.jcr.Node node, String feedDescription) Remove one item from RSS feed based on id of object which is changedprotected voidremoveRSSItem(String itemId, javax.jcr.Node node, String description) protected voidtopicUpdated(String path, String linkItem, boolean updated) Methods inherited from class org.exoplatform.forum.rss.RSSProcess
getCurrentSession, getDataLocator, getFeedStream, getForumServiceHome, getNodeById, getPageLink, loadOrCreateFeed, loadOrCreateFeed, setDataLocator
-
Field Details
-
FORUM_RSS_TYPE
-
KS_FORUM
-
FORUM_APP
-
-
Constructor Details
-
ForumFeedGenerator
public ForumFeedGenerator(org.exoplatform.forum.common.jcr.KSDataLocation locator) -
ForumFeedGenerator
public ForumFeedGenerator()
-
-
Method Details
-
itemAdded
- Specified by:
itemAddedin interfaceFeedListener
-
itemUpdated
- Specified by:
itemUpdatedin interfaceFeedListener
-
itemRemoved
- Specified by:
itemRemovedin interfaceFeedListener
-
removeItemInFeed
protected void removeItemInFeed(String itemId, javax.jcr.Node node, String feedDescription) throws Exception Remove one item from RSS feed based on id of object which is changed- Parameters:
itemId- id of objectnode- Node content RSS feedfeedDescription- description about RSS feed- Throws:
Exception
-
removeRSSItem
protected void removeRSSItem(String itemId, javax.jcr.Node node, String description) throws Exception - Throws:
Exception
-
removeItem
protected void removeItem(List<com.rometools.rome.feed.synd.SyndEntry> entries, List<javax.jcr.Node> listRemove) throws javax.jcr.RepositoryException - Throws:
javax.jcr.RepositoryException
-
getListRemove
protected List<javax.jcr.Node> getListRemove(javax.jcr.Node removeNode, String childNodeType) throws javax.jcr.RepositoryException - Throws:
javax.jcr.RepositoryException
-
topicUpdated
-
forumUpdated
-
postUpdated
-
getFeedContent
- Specified by:
getFeedContentin interfaceFeedContentProvider
-