public final class CalendarPortletDAO extends Object implements ICalendarPortletDAO
| Constructor and Description |
|---|
CalendarPortletDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nPortletId)
Deletes a record from the table.
|
List<AgendaResource> |
findAgendaBetween(int nPortletId,
Date dateBegin,
Date dateEnd)
Find the list of agenda having events between two dates
|
List<AgendaResource> |
findAgendasInPortlet(int nPortletId)
Returns all the sendings associated with a given portlet.
|
Date |
getBeginDate(int nPortletId)
Returns the beginning date when the events will be displayed
|
Date |
getEndDate(int nPortletId)
Returns the end date of the events display
|
int |
getRepetitionDays(int nPortletId)
Fetches the number of future days during which the events of the agenda
will be displayed
|
void |
insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Inserts a new record in the table.
|
void |
insertAgendaInterval(int nPortletId,
String strAgendaId,
String dDateBegin,
String dDateEnd)
Associates a new agenda to a given portlet.
|
void |
insertCalendar(int nPortletId,
String strAgendaId,
int nDays)
Inserts a calendar which will be displayed into the portlet for the
following n days
|
fr.paris.lutece.portal.business.portlet.Portlet |
load(int nPortletId)
Loads the data of the portlet from the table.
|
void |
removeAgenda(int nPortletId,
String strAgendaId)
De-associate a agenda from a given portlet.
|
void |
store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Updates the record in the table.
|
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOportlet - the object to be insertedpublic void delete(int nPortletId)
delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOnPortletId - the portlet idpublic fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOnPortletId - the portlet idpublic void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOportlet - the instance of Portlet class to be updatedpublic void insertAgendaInterval(int nPortletId,
String strAgendaId,
String dDateBegin,
String dDateEnd)
insertAgendaInterval in interface ICalendarPortletDAOstrAgendaId - The identifier of an agendadDateBegin - The beginning datedDateEnd - The end datenPortletId - The identifier of the portlet.public void removeAgenda(int nPortletId,
String strAgendaId)
removeAgenda in interface ICalendarPortletDAOstrAgendaId - The identifier of an agendanPortletId - The identifier of the portlet.public List<AgendaResource> findAgendasInPortlet(int nPortletId)
findAgendasInPortlet in interface ICalendarPortletDAOnPortletId - the identifier of the portlet.public List<AgendaResource> findAgendaBetween(int nPortletId, Date dateBegin, Date dateEnd)
findAgendaBetween in interface ICalendarPortletDAOnPortletId - The id of the portletdateBegin - The start date of the events displaydateEnd - The end date of the event displaypublic Date getBeginDate(int nPortletId)
getBeginDate in interface ICalendarPortletDAOnPortletId - The id of the portletpublic Date getEndDate(int nPortletId)
getEndDate in interface ICalendarPortletDAOnPortletId - The id of the portletpublic int getRepetitionDays(int nPortletId)
getRepetitionDays in interface ICalendarPortletDAOnPortletId - The id of the portletpublic void insertCalendar(int nPortletId,
String strAgendaId,
int nDays)
insertCalendar in interface ICalendarPortletDAOnPortletId - The id of the portletstrAgendaId - The id of the agendanDays - The number of days the events will be displayedCopyright © 2015 City of Paris. All rights reserved.