fr.paris.lutece.plugins.whatsnew.business
Class WhatsNewDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.whatsnew.business.WhatsNewDAO
All Implemented Interfaces:
IWhatsNewDAO

public class WhatsNewDAO
extends Object
implements IWhatsNewDAO

WhatsNewDAO


Constructor Summary
WhatsNewDAO()
           
 
Method Summary
 boolean isDocumentOutOfDate(PortletDocumentLink pdLink, Timestamp dateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if the given document is out of date
 boolean isPageOutOfDate(int nPageId, Timestamp dateLimit)
          Check if the given page is out of date
 boolean isPortletOutOfDate(int nPortletId, Timestamp dateLimit)
          Check if the given portlet is out of date
 Collection<IWhatsNew> selectDocuments(List<PortletDocumentLink> listPortletDocumentLinks, Locale locale)
          Returns the list of documents which correspond to the list of page IDs
 Collection<IWhatsNew> selectDocumentsByCriterias(Timestamp dateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin, Locale locale)
          Returns the list of the documents which correspond to the criteria given
 Collection<IWhatsNew> selectPages(List<Integer> listPageIds, Locale locale)
          Returns the list of pages which correspond to the list of page IDs
 Collection<IWhatsNew> selectPagesByCriterias(Timestamp dateLimit, Locale locale)
          Returns the list of the pages which correspond to the criteria given
 Collection<IWhatsNew> selectPortlets(List<Integer> listPortletIds, Locale locale)
          Returns the list of portlets which correspond to the list of page IDs
 Collection<IWhatsNew> selectPortletsByCriterias(Timestamp dateLimit, Locale locale)
          Returns the list of the portlets which correspond to the criteria given
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhatsNewDAO

public WhatsNewDAO()
Method Detail

selectPagesByCriterias

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

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

selectPortletsByCriterias

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

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

selectDocumentsByCriterias

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

Specified by:
selectDocumentsByCriterias in interface IWhatsNewDAO
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

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

Specified by:
selectPages in interface IWhatsNewDAO
Parameters:
listPageIds - the list of page IDs
locale - Locale
Returns:
a collection of IWhatsNew

selectPortlets

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

Specified by:
selectPortlets in interface IWhatsNewDAO
Parameters:
listPortletIds - the list of portlets IDs
locale - Locale
Returns:
a collection of IWhatsNew

selectDocuments

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

Specified by:
selectDocuments in interface IWhatsNewDAO
Parameters:
listPortletDocumentLinks - the list of page IDs
locale - Locale
Returns:
a collection of IWhatsNew

isPageOutOfDate

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

Specified by:
isPageOutOfDate in interface IWhatsNewDAO
Parameters:
nPageId - the page ID
dateLimit - the date limit
Returns:
true if it is out of date, false otherwise

isPortletOutOfDate

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

Specified by:
isPortletOutOfDate in interface IWhatsNewDAO
Parameters:
nPortletId - the portlet ID
dateLimit - the date limit
Returns:
true if it is out of date, false otherwise

isDocumentOutOfDate

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

Specified by:
isDocumentOutOfDate in interface IWhatsNewDAO
Parameters:
pdLink - PortletDocumentLink
dateLimit - the date limit
plugin - Plugin
Returns:
true if it is out of date, false otherwise


Copyright © 2013 Mairie de Paris. All Rights Reserved.