|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.business.portlet.CalendarPortletDAO
public final class CalendarPortletDAO
This class provides Data Access methods for CalendarPortlet objects
| Constructor Summary | |
|---|---|
CalendarPortletDAO()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarPortletDAO()
| Method Detail |
|---|
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 id
public 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 updated
public 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 display
public Date getBeginDate(int nPortletId)
getBeginDate in interface ICalendarPortletDAOnPortletId - The id of the portlet
public Date getEndDate(int nPortletId)
getEndDate in interface ICalendarPortletDAOnPortletId - The id of the portlet
public int getRepetitionDays(int nPortletId)
getRepetitionDays in interface ICalendarPortletDAOnPortletId - The id of the portlet
public 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 displayed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||