Class WhatsNewHome
java.lang.Object
fr.paris.lutece.plugins.whatsnew.business.WhatsNewHome
WhatsNewHome
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDocumentOutOfDate(PortletDocumentLink pdLink, Timestamp dateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the given document is out of datestatic booleanisPageOutOfDate(int nPageId, Timestamp dateLimit) Check if the given page is out of datestatic booleanisPortletOutOfDate(int nPortletId, Timestamp dateLimit) Check if the given portlet is out of datestatic Collection<IWhatsNew>selectDocuments(List<PortletDocumentLink> listPortletDocumentLinks, Locale locale) Returns the list of documents which correspond to the list of page IDsstatic Collection<IWhatsNew>selectDocumentsByCriterias(Timestamp dateLimit, Locale locale) Returns the list of the articles which correspond to the criteria givenstatic Collection<IWhatsNew>selectPages(List<Integer> listPageIds, Locale locale) Returns the list of pages which correspond to the list of page IDsstatic Collection<IWhatsNew>selectPagesByCriterias(Timestamp dateLimit, Locale locale) Returns the list of the pages which correspond to the criteria givenstatic Collection<IWhatsNew>selectPortlets(List<Integer> listPortletIds, Locale locale) Returns the list of portlets which correspond to the list of page IDsstatic Collection<IWhatsNew>selectPortletsByCriterias(Timestamp dateLimit, Locale locale) Returns the list of the portlets which correspond to the criteria given
-
Method Details
-
selectPagesByCriterias
Returns the list of the pages which correspond to the criteria given- 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- Parameters:
dateLimit- the timestamp giving the beginning of the period to watchlocale-Locale- Returns:
- the list in form of a Collection object
-
selectDocumentsByCriterias
Returns the list of the articles which correspond to the criteria given- Parameters:
dateLimit- the timestamp giving the beginning of the period to watchlocale-Locale- Returns:
- the list in form of a Collection object
-
selectPages
Returns the list of pages which correspond to the list of page IDs -
selectPortlets
Returns the list of portlets which correspond to the list of page IDs -
selectDocuments
public static Collection<IWhatsNew> selectDocuments(List<PortletDocumentLink> listPortletDocumentLinks, Locale locale) Returns the list of documents which correspond to the list of page IDs -
isPageOutOfDate
Check if the given page is out of date- 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- Parameters:
nPortletId- the portlet IDdateLimit- the date limit- Returns:
- true if it is out of date, false otherwise
-
isDocumentOutOfDate
public static boolean isDocumentOutOfDate(PortletDocumentLink pdLink, Timestamp dateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the given document is out of date- Parameters:
pdLink-PortletDocumentLinkdateLimit- the date limitplugin-Plugin- Returns:
- true if it is out of date, false otherwise
-