org.exoplatform.forum.rss
Class ForumFeedGenerator

java.lang.Object
  extended by org.exoplatform.forum.rss.RSSProcess
      extended by 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
static String FORUM_APP
           
static String FORUM_RSS_TYPE
           
static String KS_FORUM
           
 
Fields inherited from class org.exoplatform.forum.rss.RSSProcess
dataLocator, maxSize
 
Constructor Summary
ForumFeedGenerator()
           
ForumFeedGenerator(org.exoplatform.forum.common.jcr.KSDataLocation locator)
           
 
Method Summary
protected  void forumUpdated(String path, String linkItem, boolean updated)
           
 InputStream getFeedContent(String targetId)
           
protected  List<javax.jcr.Node> getListRemove(javax.jcr.Node removeNode, String childNodeType)
           
 void itemAdded(String path)
           
 void itemRemoved(String path)
           
 void itemUpdated(String path)
           
protected  void postUpdated(String path, String linkItem, boolean updated)
           
protected  void removeItem(List<com.sun.syndication.feed.synd.SyndEntry> entries, List<javax.jcr.Node> listRemove)
           
protected  void removeItemInFeed(String itemId, javax.jcr.Node node, String feedDescription)
          Remove one item from RSS feed based on id of object which is changed
protected  void removeRSSItem(String itemId, javax.jcr.Node node, String description)
           
protected  void topicUpdated(String path, String linkItem, boolean updated)
           
 
Methods inherited from class org.exoplatform.forum.rss.RSSProcess
getCurrentSession, getDataLocator, getFeedStream, getForumServiceHome, getNodeById, getPageLink, loadOrCreateFeed, loadOrCreateFeed, setDataLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORUM_RSS_TYPE

public static final String FORUM_RSS_TYPE

KS_FORUM

public static final String KS_FORUM

FORUM_APP

public static final String FORUM_APP
Constructor Detail

ForumFeedGenerator

public ForumFeedGenerator(org.exoplatform.forum.common.jcr.KSDataLocation locator)

ForumFeedGenerator

public ForumFeedGenerator()
Method Detail

itemAdded

public void itemAdded(String path)
Specified by:
itemAdded in interface FeedListener

itemUpdated

public void itemUpdated(String path)
Specified by:
itemUpdated in interface FeedListener

itemRemoved

public void itemRemoved(String path)
Specified by:
itemRemoved in interface FeedListener

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 object
node - Node content RSS feed
feedDescription - 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.sun.syndication.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

protected void topicUpdated(String path,
                            String linkItem,
                            boolean updated)

forumUpdated

protected void forumUpdated(String path,
                            String linkItem,
                            boolean updated)

postUpdated

protected void postUpdated(String path,
                           String linkItem,
                           boolean updated)

getFeedContent

public InputStream getFeedContent(String targetId)
Specified by:
getFeedContent in interface FeedContentProvider


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.