org.exoplatform.ks.rss
Class RSSProcess

java.lang.Object
  extended by org.exoplatform.ks.rss.RSSGenerate
      extended by org.exoplatform.ks.rss.RSSProcess

public class RSSProcess
extends RSSGenerate


Field Summary
protected  java.lang.String linkItem
           
 
Fields inherited from class org.exoplatform.ks.rss.RSSGenerate
appHomeNode, contentProperty, data, descriptionType, eXoLink, FAQ_APP, FAQ_RSS_TYPE, feedType, FORUM_APP, FORUM_RSS_TYPE, KS_FAQ, KS_FORUM, KS_RSS, maxSize, nodeHierarchyCreator_
 
Constructor Summary
RSSProcess(org.exoplatform.container.xml.InitParams params)
           
RSSProcess(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator)
           
RSSProcess(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String serviceType)
           
 
Method Summary
 void generateFAQRSS(java.lang.String path, int typeEvent, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
          Create RSS file for FAQ.
 void generateForumsRSS(java.lang.String path, int typeEvent, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
protected  void generatePostRSS(java.lang.String path, int typeEvent)
           
 boolean generateRSS(java.lang.String path, int typeEvent)
          Create RSS file for Applications in KS.
protected  java.util.List<java.lang.String> getAnswers(javax.jcr.Node questionNode)
           
protected  java.util.List<java.lang.String> getComments(javax.jcr.Node questionNode)
           
 java.util.List<java.lang.String> getForumSubscription(java.lang.String userId)
           
 java.io.InputStream getRSSNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String objectId, java.lang.String appType)
           
 java.io.InputStream getRSSOfMultiObjects(java.lang.String userId, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 
Methods inherited from class org.exoplatform.ks.rss.RSSGenerate
addNodeRSS, createNewEntry, createNewFedd, getKSServiceHome, getNodeById, getPageLink, getRSSData, removeRSSItem, updateRSSFeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linkItem

protected java.lang.String linkItem
Constructor Detail

RSSProcess

public RSSProcess(org.exoplatform.container.xml.InitParams params)
           throws java.lang.Exception
Throws:
java.lang.Exception

RSSProcess

public RSSProcess(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator)

RSSProcess

public RSSProcess(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                  java.lang.String serviceType)
Method Detail

generateRSS

public boolean generateRSS(java.lang.String path,
                           int typeEvent)
                    throws java.lang.Exception
Create RSS file for Applications in KS. System will be filter type of application automatically (for example: FAQ or FORUM) based on path of node is changed, after that, System will call function to create RSS for that application.

Parameters:
path - the path of node is changed
typeEvent - the type of event
Throws:
Exeption
java.lang.Exception

generateForumsRSS

public void generateForumsRSS(java.lang.String path,
                              int typeEvent,
                              org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                       throws java.lang.Exception
Specified by:
generateForumsRSS in class RSSGenerate
Throws:
java.lang.Exception

generatePostRSS

protected void generatePostRSS(java.lang.String path,
                               int typeEvent)

generateFAQRSS

public void generateFAQRSS(java.lang.String path,
                           int typeEvent,
                           org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
Create RSS file for FAQ. Only use this function when use sure that path is FAQ

Specified by:
generateFAQRSS in class RSSGenerate
Parameters:
path - the path of node is changed
typeEvent - the type of event
sProvider - the SessionProvider

getAnswers

protected java.util.List<java.lang.String> getAnswers(javax.jcr.Node questionNode)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

getComments

protected java.util.List<java.lang.String> getComments(javax.jcr.Node questionNode)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

getRSSNode

public java.io.InputStream getRSSNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                      java.lang.String objectId,
                                      java.lang.String appType)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getForumSubscription

public java.util.List<java.lang.String> getForumSubscription(java.lang.String userId)
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

getRSSOfMultiObjects

public java.io.InputStream getRSSOfMultiObjects(java.lang.String userId,
                                                org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.