fr.paris.lutece.plugins.rss.business
Class RssGeneratedFileHome

java.lang.Object
  extended by fr.paris.lutece.plugins.rss.business.RssGeneratedFileHome

public final class RssGeneratedFileHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for rss objects.


Method Summary
static boolean checkExistPushrssByPortlet(int nPortletId)
          Checks if a pushrss object exist for this portlet identifier
static boolean checkRssFileFileName(java.lang.String strRssFileName)
          Tests before create if a push rss object exist with the same name
static boolean checkRssFilePortlet(int nPortletId)
          Tests if the portlet has not been deleted
static RssGeneratedFile create(RssGeneratedFile pushRss)
          Creates a new push RSS object in the database.
static java.util.Collection findAllArticlesPortlets()
          Returns a collection of portlets for which there isn't any RSS files
static java.util.Collection findArticlesPortlets()
          Returns a collection of portlets for which there isn't any RSS files
static RssGeneratedFile findByPrimaryKey(int nKey)
          Loads the data of a pushrss object from the table
static java.util.List findDocumentsByPortlet(int nPortletId)
          Returns all the documents of a portlet whose identifier is specified in parameter
static fr.paris.lutece.util.ReferenceList findDocumentTypePortlets()
          Returns a collection any portlet containing at least a published document
static java.lang.String getPortletName(int nPortletId)
          Reads the portlet's name
static java.util.List<RssGeneratedFile> getRssFileList()
          Returns the list of the RSS Files
static fr.paris.lutece.portal.business.stylesheet.StyleSheet getRssXsl(int nStylesheetId)
          Returns the stylesheet for RSS files
static void remove(int nRssFileId)
          Removes the push RSS object whose identifier is specified in parameter
static void update(RssGeneratedFile pushRss)
          Updates the record in the rss_generation table
static void updateState(RssGeneratedFile pushRss)
          Updates pushrss's state in the table and doesn't modify the update date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findByPrimaryKey

public static RssGeneratedFile findByPrimaryKey(int nKey)
Loads the data of a pushrss object from the table

Parameters:
nKey - The identifier of the pushrss file
Returns:
pushRss The instance of an RssFile's object

update

public static void update(RssGeneratedFile pushRss)
Updates the record in the rss_generation table

Parameters:
pushRss - The Instance of the object RssFile

updateState

public static void updateState(RssGeneratedFile pushRss)
Updates pushrss's state in the table and doesn't modify the update date

Parameters:
pushRss - The Instance of the object RssFile

create

public static RssGeneratedFile create(RssGeneratedFile pushRss)
Creates a new push RSS object in the database.

Parameters:
pushRss - The Instance of the object RssFile
Returns:
pushRss The object

remove

public static void remove(int nRssFileId)
Removes the push RSS object whose identifier is specified in parameter

Parameters:
nRssFileId - The identifier of the pushRss object

getRssFileList

public static java.util.List<RssGeneratedFile> getRssFileList()
Returns the list of the RSS Files

Returns:
the list in form of a List object

getPortletName

public static java.lang.String getPortletName(int nPortletId)
Reads the portlet's name

Parameters:
nPortletId - the identifier of the portlet
Returns:
The name of the portlet

getRssXsl

public static fr.paris.lutece.portal.business.stylesheet.StyleSheet getRssXsl(int nStylesheetId)
Returns the stylesheet for RSS files

Parameters:
nStylesheetId - the identifier of the Stylesheet
Returns:
the stylesheet

findArticlesPortlets

public static java.util.Collection findArticlesPortlets()
Returns a collection of portlets for which there isn't any RSS files

Returns:
the portlets in form of Collection

findAllArticlesPortlets

public static java.util.Collection findAllArticlesPortlets()
Returns a collection of portlets for which there isn't any RSS files

Returns:
the portlets in form of Collection

findDocumentTypePortlets

public static fr.paris.lutece.util.ReferenceList findDocumentTypePortlets()
Returns a collection any portlet containing at least a published document

Returns:
the portlets in form of Collection

findDocumentsByPortlet

public static java.util.List findDocumentsByPortlet(int nPortletId)
Returns all the documents of a portlet whose identifier is specified in parameter

Parameters:
nPortletId - the identifier of the portlet
Returns:
List of articles objects

checkExistPushrssByPortlet

public static boolean checkExistPushrssByPortlet(int nPortletId)
Checks if a pushrss object exist for this portlet identifier

Parameters:
nPortletId - The identifier of the portlet
Returns:
true if a pushRss file exist for this portlet

checkRssFileFileName

public static boolean checkRssFileFileName(java.lang.String strRssFileName)
Tests before create if a push rss object exist with the same name

Parameters:
strRssFileName - The push RSS file's name
Returns:
true if the name already exists

checkRssFilePortlet

public static boolean checkRssFilePortlet(int nPortletId)
Tests if the portlet has not been deleted

Parameters:
nPortletId - The portlet identifier for this RSS file
Returns:
true if the name already exists


Copyright © 2007 Mairie de Paris. All Rights Reserved.