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

java.lang.Object
  extended by fr.paris.lutece.plugins.rss.business.RssGeneratedFileDAO
All Implemented Interfaces:
IRssGeneratedFileDAO

public final class RssGeneratedFileDAO
extends java.lang.Object
implements IRssGeneratedFileDAO

This class provides Data Access methods for RSS objects


Constructor Summary
RssGeneratedFileDAO()
           
 
Method Summary
 boolean checkExistPushrssByPortlet(int nPortletId)
          Checks if a rssFile file exist for this portlet identifier
 boolean checkRssFileFileName(java.lang.String strRssFileName)
          Tests if a push rss file exist with the same name
 boolean checkRssFilePortlet(int nPortletId)
          Tests if the portlet has not been deleted before update
 void delete(int nRssFileId)
          Deletes a record from the table
 void insert(RssGeneratedFile rssFile)
          Inserts a new record in the table rss_generation.
 RssGeneratedFile load(int nRssFileId)
          Loads the data of a rssFile file from the table
 java.util.Collection selectAllRssPortlets()
          Returns a collection of all portlets
 java.util.List selectDocumentsByPortlet(int nPortletId)
          Returns all the documents of a portlet whose identifier is specified in parameter
 fr.paris.lutece.util.ReferenceList selectDocumentTypePortlets()
          Returns the list of the portlets which are document portlets
 java.util.List<RssGeneratedFile> selectRssFileList()
          Returns the list of the rss_generation files
 java.lang.String selectRssFilePortletName(int nPortletId)
          Reads the portlet's name
 java.util.Collection selectRssPortlets()
          Returns a collection of portlets for which there isn't any RSS files
 fr.paris.lutece.portal.business.stylesheet.StyleSheet selectXslFile(int nStyleSheetId)
          Returns the stylesheet for RSS files
 void store(RssGeneratedFile rssFile)
          Updates the record in the table rss_generation
 void updateState(RssGeneratedFile rssFile)
          Updates the rssFile's state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssGeneratedFileDAO

public RssGeneratedFileDAO()
Method Detail

insert

public void insert(RssGeneratedFile rssFile)
Inserts a new record in the table rss_generation.

Specified by:
insert in interface IRssGeneratedFileDAO
Parameters:
pushRss - The Instance of the object RssFile
plugin - The plugin

delete

public void delete(int nRssFileId)
Deletes a record from the table

Specified by:
delete in interface IRssGeneratedFileDAO
Parameters:
nRssFileId - The identifier of the rssFile object

store

public void store(RssGeneratedFile rssFile)
Updates the record in the table rss_generation

Specified by:
store in interface IRssGeneratedFileDAO
Parameters:
rssFile - The Instance of the object rssFile

updateState

public void updateState(RssGeneratedFile rssFile)
Updates the rssFile's state

Specified by:
updateState in interface IRssGeneratedFileDAO
Parameters:
rssFile - The Instance of the object rssFile
plugin - The plugin

load

public RssGeneratedFile load(int nRssFileId)
Loads the data of a rssFile file from the table

Specified by:
load in interface IRssGeneratedFileDAO
Parameters:
nRssFileId - The identifier of the rssFile file
plugin - The plugin

checkExistPushrssByPortlet

public boolean checkExistPushrssByPortlet(int nPortletId)
Checks if a rssFile file exist for this portlet identifier

Specified by:
checkExistPushrssByPortlet in interface IRssGeneratedFileDAO
Parameters:
nPortletId - The identifier of the portlet
plugin - The plugin
Returns:
true if a rssFile file exist for this portlet

checkRssFileFileName

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

Specified by:
checkRssFileFileName in interface IRssGeneratedFileDAO
Parameters:
strRssFileName - The push RSS file's name
plugin - The plugin
Returns:
true if the name already exist

selectRssFileList

public java.util.List<RssGeneratedFile> selectRssFileList()
Returns the list of the rss_generation files

Specified by:
selectRssFileList in interface IRssGeneratedFileDAO
Parameters:
plugin - The plugin
Returns:
the List of rss files

selectDocumentTypePortlets

public fr.paris.lutece.util.ReferenceList selectDocumentTypePortlets()
Returns the list of the portlets which are document portlets

Specified by:
selectDocumentTypePortlets in interface IRssGeneratedFileDAO
Parameters:
plugin - The plugin
Returns:
the list in form of a Collection object

selectRssPortlets

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

Specified by:
selectRssPortlets in interface IRssGeneratedFileDAO
Returns:
the portlets in form of Collection

selectAllRssPortlets

public java.util.Collection selectAllRssPortlets()
Returns a collection of all portlets

Specified by:
selectAllRssPortlets in interface IRssGeneratedFileDAO
Returns:
the portlets in form of Collection

selectRssFilePortletName

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

Specified by:
selectRssFilePortletName in interface IRssGeneratedFileDAO
Parameters:
nPortletId - the identifier of the portlet
Returns:
The name of the portlet

checkRssFilePortlet

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

Specified by:
checkRssFilePortlet in interface IRssGeneratedFileDAO
Parameters:
nPortletId - The portlet identifier for this RSS file
plugin - The plugin
Returns:
true il the portlet exist

selectDocumentsByPortlet

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

Specified by:
selectDocumentsByPortlet in interface IRssGeneratedFileDAO
Parameters:
nPortletId - the identifier of the portlet
pluginName - the plugin name
Returns:
List of documents

selectXslFile

public fr.paris.lutece.portal.business.stylesheet.StyleSheet selectXslFile(int nStyleSheetId)
Returns the stylesheet for RSS files

Specified by:
selectXslFile in interface IRssGeneratedFileDAO
Parameters:
nStyleSheetId - the identifier of the Stylesheet
Returns:
the stylesheet


Copyright © 2007 Mairie de Paris. All Rights Reserved.