public final class RssGeneratorService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_RSS_STORAGE_FOLDER_PATH
The path which points the rss files are stored
|
static String |
PROPERTY_STORAGE_DIRECTORY_NAME |
| Modifier and Type | Method and Description |
|---|---|
static void |
createFileRss(String strRssFileName,
String strRssDocument)
Creates the pushrss file in the directory
|
static String |
createRssDocument(int nIdPortlet,
String strRssFileDescription,
String strEncoding,
String strFeedType,
int nMaxItems)
Creates the push RSS document corresponding to the given portlet
|
static String |
createRssDocument(int nIdPortlet,
String strRssFileDescription,
String strEncoding,
String strFeedType,
int nMaxItems,
javax.servlet.http.HttpServletRequest request)
Creates the push RSS document corresponding to the given portlet
|
static String |
createRssDocument(List listRssItem,
String strRssFileDescription)
Creates the push RSS document corresponding to the given portlet
|
static void |
deleteFileRss(String strRssFileName,
String strPluginName)
Deletes the pushrss file in the directory
|
static String |
generateAllRss()
Regenerate all Rss files in the file system
|
public static final String PROPERTY_RSS_STORAGE_FOLDER_PATH
public static final String PROPERTY_STORAGE_DIRECTORY_NAME
public static String createRssDocument(int nIdPortlet, String strRssFileDescription, String strEncoding, String strFeedType, int nMaxItems)
nIdPortlet - the portlet id for wich the file is createdstrRssFileDescription - the DescriptionstrEncoding - encodingstrFeedType - feed typenMaxItems - max itemspublic static String createRssDocument(int nIdPortlet, String strRssFileDescription, String strEncoding, String strFeedType, int nMaxItems, javax.servlet.http.HttpServletRequest request)
nIdPortlet - the portlet id for wich the file is createdstrRssFileDescription - the DescriptionstrEncoding - encodingstrFeedType - feed typenMaxItems - max itemsrequest - The HTTP requestpublic static String createRssDocument(List listRssItem, String strRssFileDescription)
listRssItem - The RSS ListstrRssFileDescription - the Descriptionpublic static void createFileRss(String strRssFileName, String strRssDocument)
strRssFileName - The file's name that must be deletedstrRssDocument - The content of the new RSS filepublic static void deleteFileRss(String strRssFileName, String strPluginName)
strRssFileName - The name of the RSS filestrPluginName - The plugin's namepublic static String generateAllRss()
Copyright © 2015 City of Paris. All rights reserved.