fr.paris.lutece.plugins.rss.business
Interface IRssGeneratedFileDAO

All Known Implementing Classes:
RssGeneratedFileDAO

public interface IRssGeneratedFileDAO

IRssGeneratedFileDAO


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
 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
 

Method Detail

checkExistPushrssByPortlet

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

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

checkRssFileFileName

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

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

checkRssFilePortlet

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

Parameters:
nPortletId - The portlet identifier for this RSS file
Returns:
true il the portlet exist

delete

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

Parameters:
nRssFileId - The identifier of the rssFile object

insert

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

Parameters:
rssFile - The Instance of the object RssFile

load

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

Parameters:
nRssFileId - The identifier of the rssFile file
Returns:
The RSS file

selectAllRssPortlets

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

Returns:
the portlets in form of Collection

selectDocumentsByPortlet

java.util.List selectDocumentsByPortlet(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 documents

selectRssFileList

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

Returns:
the List of rss files

selectRssFilePortletName

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

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

selectRssPortlets

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

Returns:
the portlets in form of Collection

selectXslFile

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

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

store

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

Parameters:
rssFile - The Instance of the object rssFile

updateState

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

Parameters:
rssFile - The Instance of the object rssFile


Copyright © 2011 Mairie de Paris. All Rights Reserved.