Class WhatsNewDAO
java.lang.Object
fr.paris.lutece.plugins.whatsnew.business.WhatsNewDAO
- All Implemented Interfaces:
IWhatsNewDAO
WhatsNewDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDocumentOutOfDate(PortletDocumentLink pdLink, Timestamp dateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the given document is out of datebooleanisPageOutOfDate(int nPageId, Timestamp dateLimit) Check if the given page is out of datebooleanisPortletOutOfDate(int nPortletId, Timestamp dateLimit) Check if the given portlet is out of dateselectDocuments(List<PortletDocumentLink> listPortletDocumentLinks, Locale locale) Returns the list of documents which correspond to the list of page IDsselectDocumentsByCriterias(Timestamp dateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin, Locale locale) Returns the list of the documents which correspond to the criteria givenselectPages(List<Integer> listPageIds, Locale locale) Returns the list of pages which correspond to the list of page IDsselectPagesByCriterias(Timestamp dateLimit, Locale locale) Returns the list of the pages which correspond to the criteria givenselectPortlets(List<Integer> listPortletIds, Locale locale) Returns the list of portlets which correspond to the list of page IDsselectPortletsByCriterias(Timestamp dateLimit, Locale locale) Returns the list of the portlets which correspond to the criteria given
-
Constructor Details
-
WhatsNewDAO
public WhatsNewDAO()
-
-
Method Details
-
selectPagesByCriterias
Returns the list of the pages which correspond to the criteria given- Specified by:
selectPagesByCriteriasin interfaceIWhatsNewDAO- Parameters:
dateLimit- the timestamp giving the beginning of the period to watchlocale-Locale- Returns:
- the list in form of a Collection object
-
selectPortletsByCriterias
Returns the list of the portlets which correspond to the criteria given- Specified by:
selectPortletsByCriteriasin interfaceIWhatsNewDAO- Parameters:
dateLimit- the timestamp giving the beginning of the period to watchlocale-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:
selectDocumentsByCriteriasin interfaceIWhatsNewDAO- Parameters:
dateLimit- the timestamp giving the beginning of the period to watchplugin-Pluginlocale-Locale- Returns:
- the list in form of a Collection object
-
selectPages
Returns the list of pages which correspond to the list of page IDs- Specified by:
selectPagesin interfaceIWhatsNewDAO- Parameters:
listPageIds- the list of page IDslocale-Locale- Returns:
- a collection of
IWhatsNew
-
selectPortlets
Returns the list of portlets which correspond to the list of page IDs- Specified by:
selectPortletsin interfaceIWhatsNewDAO- Parameters:
listPortletIds- the list of portlets IDslocale-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:
selectDocumentsin interfaceIWhatsNewDAO- Parameters:
listPortletDocumentLinks- the list of page IDslocale-Locale- Returns:
- a collection of
IWhatsNew
-
isPageOutOfDate
Check if the given page is out of date- Specified by:
isPageOutOfDatein interfaceIWhatsNewDAO- Parameters:
nPageId- the page IDdateLimit- the date limit- Returns:
- true if it is out of date, false otherwise
-
isPortletOutOfDate
Check if the given portlet is out of date- Specified by:
isPortletOutOfDatein interfaceIWhatsNewDAO- Parameters:
nPortletId- the portlet IDdateLimit- 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:
isDocumentOutOfDatein interfaceIWhatsNewDAO- Parameters:
pdLink-PortletDocumentLinkdateLimit- the date limitplugin-Plugin- Returns:
- true if it is out of date, false otherwise
-