fr.paris.lutece.plugins.calendar.business.portlet
Interface ICalendarPortletDAO

All Superinterfaces:
fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
All Known Implementing Classes:
CalendarPortletDAO

public interface ICalendarPortletDAO
extends fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

This class provides Data Access methods for CalendarPortlet objects


Method Summary
 java.util.List<AgendaResource> findAgendaBetween(int nPortletId, java.util.Date dateBegin, java.util.Date dateEnd)
          Finds the agenda which has events between the start and the end date
 java.util.List<AgendaResource> findAgendasInPortlet(int nPortletId)
          Returns all the agendas associated with a given portlet.
 java.lang.String getBeginDate(int nPortletId)
          The beginning date of event display
 java.lang.String getEndDate(int nPortletId)
          The finishing date of the event display
 int getRepetitionDays(int nPortletId)
          Returns the number of following days the event should be displayed
 void insertAgendaInterval(int nPortletId, java.lang.String strAgendaId, java.lang.String dDateBegin, java.lang.String dDateEnd)
          Associates a new agenda to a given portlet.
 void insertCalendar(int nPortletId, java.lang.String strAgendaId, int nDays)
          Inserts a calendar which will be displayed for the future n days
 void removeAgenda(int nPortletId, java.lang.String strAgendaId)
          De-associate an agenda from a given portlet.
 
Methods inherited from interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
delete, insert, load, store
 

Method Detail

insertAgendaInterval

void insertAgendaInterval(int nPortletId,
                          java.lang.String strAgendaId,
                          java.lang.String dDateBegin,
                          java.lang.String dDateEnd)
Associates a new agenda to a given portlet.

Parameters:
strAgendaId - The identifier of the agenda
dDateBegin - The beginning date
dDateEnd - The end date
nPortletId - the identifier of the portlet.

removeAgenda

void removeAgenda(int nPortletId,
                  java.lang.String strAgendaId)
De-associate an agenda from a given portlet.

Parameters:
strAgendaId - The identifier of an agenda resource
nPortletId - the identifier of the portlet.

findAgendasInPortlet

java.util.List<AgendaResource> findAgendasInPortlet(int nPortletId)
Returns all the agendas associated with a given portlet.

Parameters:
nPortletId - the identifier of the portlet.
Returns:
a list of unfiltered agenda resources.

findAgendaBetween

java.util.List<AgendaResource> findAgendaBetween(int nPortletId,
                                                 java.util.Date dateBegin,
                                                 java.util.Date dateEnd)
Finds the agenda which has events between the start and the end date

Parameters:
nPortletId - The id of the portlet
dateBegin - The starting date
dateEnd - The finishing date
Returns:
The agenda

getBeginDate

java.lang.String getBeginDate(int nPortletId)
The beginning date of event display

Parameters:
nPortletId - The id of the portlet
Returns:
The beginning date

getEndDate

java.lang.String getEndDate(int nPortletId)
The finishing date of the event display

Parameters:
nPortletId - The id of the portlet
Returns:
The finishing date

getRepetitionDays

int getRepetitionDays(int nPortletId)
Returns the number of following days the event should be displayed

Parameters:
nPortletId - The id of the portlet
Returns:
The number of days

insertCalendar

void insertCalendar(int nPortletId,
                    java.lang.String strAgendaId,
                    int nDays)
Inserts a calendar which will be displayed for the future n days

Parameters:
nPortletId - The id of the portlet
strAgendaId - The id of the calendar
nDays - The number of days the events are displayed


Copyright © 2007 Mairie de Paris. All Rights Reserved.