|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.whatsnew.service.WhatsNewService
public class WhatsNewService
WhatsNewService
| Constructor Summary | |
|---|---|
WhatsNewService()
|
|
| Method Summary | |
|---|---|
fr.paris.lutece.util.ReferenceList |
getComboDays()
Initialize the number of days' combo |
Collection<IWhatsNew> |
getDocumentsByCriterias(Timestamp limitTimestamp,
Locale locale)
Get the documents by criteria |
static WhatsNewService |
getInstance()
Return the WhatsNewService singleton |
Collection<IWhatsNew> |
getModeratedDocuments(int nWhatsNewPortletId,
Locale locale)
Get the moderated document from the given whatsNewPortletId |
String |
getModeratedElementsListHtml(WhatsNewPortlet whatsNewPortlet,
Locale locale)
Get the HTML code of the moderated elements list |
Collection<IWhatsNew> |
getModeratedPages(int nWhatsNewPortletId,
Locale locale)
Get the moderated pages from the given whatsNewPortletId |
Collection<IWhatsNew> |
getModeratedPortlets(int nWhatsNewPortletId,
Locale locale)
Get the moderated portlets from the given whatsNewPortletId |
Collection<IWhatsNew> |
getPagesByCriterias(Timestamp limitTimestamp,
Locale locale)
Get the pages by criteria |
Collection<IWhatsNew> |
getPortletsByCriterias(Timestamp limitTimestamp,
Locale locale)
Get the portlets by criteria |
Timestamp |
getTimestampFromPeriodAndCurrentDate(int nDays,
Locale locale)
Get the timestamp correspnding to a given day in the past. |
List<WhatsNewType> |
getWhatsNewType(Locale locale)
Get the list of WhatsNewType |
void |
init()
Init |
boolean |
isDocumentOutOfDate(PortletDocumentLink pdLink,
Timestamp limitTimestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given document is out of date |
boolean |
isPageOutOfDate(int nPageId,
Timestamp limitTimestamp)
Check if the given page is out of date |
boolean |
isPluginDocumentActivated()
Check if the plugin-document is activated and its pool is not null |
boolean |
isPortletOutOfDate(int nPortletId,
Timestamp limitTimestamp)
Check if the given portlet is out of date |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WhatsNewService()
| Method Detail |
|---|
public static WhatsNewService getInstance()
public void init()
public boolean isPluginDocumentActivated()
public boolean isPageOutOfDate(int nPageId,
Timestamp limitTimestamp)
nPageId - the page IDlimitTimestamp - the date limit
public boolean isPortletOutOfDate(int nPortletId,
Timestamp limitTimestamp)
nPortletId - the portlet IDlimitTimestamp - the date limit
public boolean isDocumentOutOfDate(PortletDocumentLink pdLink,
Timestamp limitTimestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
pdLink - PortletDocumentLinklimitTimestamp - the date limitplugin - Plugin
public fr.paris.lutece.util.ReferenceList getComboDays()
public List<WhatsNewType> getWhatsNewType(Locale locale)
locale - Locale
WhatsNewType
public Timestamp getTimestampFromPeriodAndCurrentDate(int nDays,
Locale locale)
nDays - the number of days between the current day and the timestamp to calculate.locale - Locale
public Collection<IWhatsNew> getPagesByCriterias(Timestamp limitTimestamp,
Locale locale)
limitTimestamp - the limit timelocale - Locale
IWhatsNew
public Collection<IWhatsNew> getPortletsByCriterias(Timestamp limitTimestamp,
Locale locale)
limitTimestamp - the limit timelocale - Locale
IWhatsNew
public Collection<IWhatsNew> getDocumentsByCriterias(Timestamp limitTimestamp,
Locale locale)
limitTimestamp - the limit timelocale - Locale
IWhatsNew
public Collection<IWhatsNew> getModeratedPortlets(int nWhatsNewPortletId,
Locale locale)
nWhatsNewPortletId - the ID of the portletlocale - Locale
IWhatsNew
public Collection<IWhatsNew> getModeratedPages(int nWhatsNewPortletId,
Locale locale)
nWhatsNewPortletId - the ID of the pagelocale - Locale
IWhatsNew
public Collection<IWhatsNew> getModeratedDocuments(int nWhatsNewPortletId,
Locale locale)
nWhatsNewPortletId - the ID of the portletlocale - Locale
IWhatsNew
public String getModeratedElementsListHtml(WhatsNewPortlet whatsNewPortlet,
Locale locale)
whatsNewPortlet - the portletlocale - Locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||