public class CalendarPortletHome
extends fr.paris.lutece.portal.business.portlet.PortletHome
Constructor and Description |
---|
CalendarPortletHome()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static List<AgendaResource> |
findAgendaBetween(int nPortletId,
Date dateBegin,
Date dateEnd)
Returns all the agenda associated with a given portlet.
|
static List<AgendaResource> |
findAgendasInPortlet(int nPortletId)
Returns all the agenda associated with a given portlet.
|
static Date |
getBeginDate(int nPortletId)
Returns the beginning date of the display of corresponding events
|
fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO |
getDAO()
Returns the instance of the portlet DAO singleton
|
static Date |
getEndDate(int nPortletId)
Returns the last date of the display
|
static fr.paris.lutece.portal.business.portlet.PortletHome |
getInstance()
Returns the instance of NewsLetterArchive Portlet
|
String |
getPortletTypeId()
Returns the identifier of the portlet type
|
static int |
getRepetitionDays(int nPortletId)
Returns the number of days within which the events will occur
|
static void |
insertAgendaInterval(int nPortletId,
String strAgendaId,
String strDateBegin,
String strDateEnd)
Associates a new agenda to a given portlet.
|
static void |
insertCalendar(int nPortletId,
String strAgendaId,
int nDays)
Associates a new calendar to a given portlet.
|
static void |
removeAgenda(int nPortletId,
String strAgenda)
De-associate an agenda from a given portlet.
|
static void |
removeAllAgendas(int nPortletId)
De-associate an agenda from a given portlet.
|
create, findByPrimaryKey, findByType, getAliasList, getLastModifiedPortlet, getPortletListByStyle, getPortletsByRoleKey, getPortletsListbyName, getPortletType, getStylesList, getUsedOrdersForColumns, hasAlias, invalidate, invalidate, notifyListeners, remove, update, updateStatus
public String getPortletTypeId()
public static fr.paris.lutece.portal.business.portlet.PortletHome getInstance()
public fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
public static void insertAgendaInterval(int nPortletId, String strAgendaId, String strDateBegin, String strDateEnd)
strAgendaId
- The identifier of the agendastrDateBegin
- The beginning datestrDateEnd
- The end datenPortletId
- The identifier of the portlet.public static void removeAgenda(int nPortletId, String strAgenda)
nPortletId
- the identifier of the portlet.strAgenda
- the identifier of the agendapublic static void removeAllAgendas(int nPortletId)
nPortletId
- the identifier of the portlet.public static List<AgendaResource> findAgendasInPortlet(int nPortletId)
nPortletId
- the identifier of the portlet.public static List<AgendaResource> findAgendaBetween(int nPortletId, Date dateBegin, Date dateEnd)
dateBegin
- The start datedateEnd
- The end datenPortletId
- the identifier of the portlet.public static void insertCalendar(int nPortletId, String strAgendaId, int nDays)
strAgendaId
- The id of the agendanDays
- The number of daysnPortletId
- the identifier of the portlet.public static Date getBeginDate(int nPortletId)
nPortletId
- The id portletpublic static Date getEndDate(int nPortletId)
nPortletId
- The id of the portletpublic static int getRepetitionDays(int nPortletId)
nPortletId
- The id of the portletCopyright © 2015 City of Paris. All rights reserved.