org.exoplatform.forum.rss
Class RSSProcess

java.lang.Object
  extended by org.exoplatform.forum.rss.RSSProcess
Direct Known Subclasses:
AnswersFeedGenerator, ForumFeedGenerator, ForumUserFeedProvider

public abstract class RSSProcess
extends Object


Field Summary
protected  org.exoplatform.forum.common.jcr.KSDataLocation dataLocator
           
 int maxSize
           
 
Constructor Summary
RSSProcess()
           
RSSProcess(org.exoplatform.container.xml.InitParams params, org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
           
RSSProcess(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
           
 
Method Summary
protected  javax.jcr.Session getCurrentSession()
           
 org.exoplatform.forum.common.jcr.KSDataLocation getDataLocator()
           
protected  InputStream getFeedStream(javax.jcr.Node parentNode, String feedNodetype, String feedTitle)
           
protected  javax.jcr.Node getForumServiceHome()
           
protected  javax.jcr.Node getNodeById(String objectId)
          Get one node in FORUM application by id
protected  String getPageLink()
           
protected  RSS loadOrCreateFeed(javax.jcr.Node parentNode, String feedNodetype)
           
protected  RSS loadOrCreateFeed(javax.jcr.Node parentNode, String feedNodetype, String feedTitle)
           
 void setDataLocator(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxSize

public int maxSize

dataLocator

protected org.exoplatform.forum.common.jcr.KSDataLocation dataLocator
Constructor Detail

RSSProcess

public RSSProcess()

RSSProcess

public RSSProcess(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)

RSSProcess

public RSSProcess(org.exoplatform.container.xml.InitParams params,
                  org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
Method Detail

getCurrentSession

protected javax.jcr.Session getCurrentSession()

getPageLink

protected String getPageLink()
                      throws Exception
Throws:
Exception

getFeedStream

protected InputStream getFeedStream(javax.jcr.Node parentNode,
                                    String feedNodetype,
                                    String feedTitle)
                             throws Exception
Throws:
Exception

loadOrCreateFeed

protected RSS loadOrCreateFeed(javax.jcr.Node parentNode,
                               String feedNodetype)
                        throws Exception
Throws:
Exception

loadOrCreateFeed

protected RSS loadOrCreateFeed(javax.jcr.Node parentNode,
                               String feedNodetype,
                               String feedTitle)
                        throws Exception
Throws:
Exception

getNodeById

protected javax.jcr.Node getNodeById(String objectId)
                              throws Exception
Get one node in FORUM application by id

Parameters:
objectId - id of node which is got
sProvider - the session provider
Returns:
node
Throws:
Exception

getForumServiceHome

protected javax.jcr.Node getForumServiceHome()
                                      throws Exception
Throws:
Exception

getDataLocator

public org.exoplatform.forum.common.jcr.KSDataLocation getDataLocator()

setDataLocator

public void setDataLocator(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)


Copyright © 2013 eXo Platform SAS. All Rights Reserved.