fr.paris.lutece.plugins.whatsnew.business
Interface IWhatsNewDAO

All Known Implementing Classes:
WhatsNewDAO

public interface IWhatsNewDAO

IWhatsNewDAO


Method Summary
 boolean isDocumentOutOfDate(PortletDocumentLink pdLink, java.sql.Timestamp dateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if the given document is out of date
 boolean isPageOutOfDate(int nPageId, java.sql.Timestamp dateLimit)
          Check if the given page is out of date
 boolean isPortletOutOfDate(int nPortletId, java.sql.Timestamp dateLimit)
          Check if the given portlet is out of date
 java.util.Collection<IWhatsNew> selectDocuments(java.util.List<PortletDocumentLink> listPortletDocumentLinks, java.util.Locale locale)
          Returns the list of documents which correspond to the list of page IDs
 java.util.Collection<IWhatsNew> selectDocumentsByCriterias(java.sql.Timestamp dateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.Locale locale)
          Returns the list of the documents which correspond to the criteria given
 java.util.Collection<IWhatsNew> selectPages(java.util.List<java.lang.Integer> listPageIds, java.util.Locale locale)
          Returns the list of pages which correspond to the list of page IDs
 java.util.Collection<IWhatsNew> selectPagesByCriterias(java.sql.Timestamp dateLimit, java.util.Locale locale)
          Returns the list of the pages which correspond to the criteria given
 java.util.Collection<IWhatsNew> selectPortlets(java.util.List<java.lang.Integer> listPortletIds, java.util.Locale locale)
          Returns the list of portlets which correspond to the list of page IDs
 java.util.Collection<IWhatsNew> selectPortletsByCriterias(java.sql.Timestamp dateLimit, java.util.Locale locale)
          Returns the list of the portlets which correspond to the criteria given
 

Method Detail

selectPagesByCriterias

java.util.Collection<IWhatsNew> selectPagesByCriterias(java.sql.Timestamp dateLimit,
                                                       java.util.Locale locale)
Returns the list of the pages which correspond to the criteria given

Parameters:
dateLimit - the timestamp giving the beginning of the period to watch
locale - Locale
Returns:
the list in form of a Collection object

selectPortletsByCriterias

java.util.Collection<IWhatsNew> selectPortletsByCriterias(java.sql.Timestamp dateLimit,
                                                          java.util.Locale locale)
Returns the list of the portlets which correspond to the criteria given

Parameters:
dateLimit - the timestamp giving the beginning of the period to watch
locale - Locale
Returns:
the list in form of a Collection object

selectDocumentsByCriterias

java.util.Collection<IWhatsNew> selectDocumentsByCriterias(java.sql.Timestamp dateLimit,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                           java.util.Locale locale)
Returns the list of the documents which correspond to the criteria given

Parameters:
dateLimit - the timestamp giving the beginning of the period to watch
plugin - Plugin
locale - Locale
Returns:
the list in form of a Collection object

selectPages

java.util.Collection<IWhatsNew> selectPages(java.util.List<java.lang.Integer> listPageIds,
                                            java.util.Locale locale)
Returns the list of pages which correspond to the list of page IDs

Parameters:
listPageIds - the list of page IDs
locale - Locale
Returns:
a collection of IWhatsNew

selectPortlets

java.util.Collection<IWhatsNew> selectPortlets(java.util.List<java.lang.Integer> listPortletIds,
                                               java.util.Locale locale)
Returns the list of portlets which correspond to the list of page IDs

Parameters:
listPortletIds - the list of portlets IDs
locale - Locale
Returns:
a collection of IWhatsNew

selectDocuments

java.util.Collection<IWhatsNew> selectDocuments(java.util.List<PortletDocumentLink> listPortletDocumentLinks,
                                                java.util.Locale locale)
Returns the list of documents which correspond to the list of page IDs

Parameters:
listPortletDocumentLinks - the list of page IDs
locale - Locale
Returns:
a collection of IWhatsNew

isPageOutOfDate

boolean isPageOutOfDate(int nPageId,
                        java.sql.Timestamp dateLimit)
Check if the given page is out of date

Parameters:
nPageId - the page ID
dateLimit - the date limit
Returns:
true if it is out of date, false otherwise

isPortletOutOfDate

boolean isPortletOutOfDate(int nPortletId,
                           java.sql.Timestamp dateLimit)
Check if the given portlet is out of date

Parameters:
nPortletId - the portlet ID
dateLimit - the date limit
Returns:
true if it is out of date, false otherwise

isDocumentOutOfDate

boolean isDocumentOutOfDate(PortletDocumentLink pdLink,
                            java.sql.Timestamp dateLimit,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given document is out of date

Parameters:
pdLink - PortletDocumentLink
dateLimit - the date limit
plugin - Plugin
Returns:
true if it is out of date, false otherwise


Copyright © 2011 Mairie de Paris. All Rights Reserved.