|
||||||||||
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. |
java.util.List<AgendaResource> |
findAgendaBetween(int nPortletId,
java.util.Date dateBegin,
java.util.Date dateEnd)
Find the list of agenda having events between two dates |
java.util.List<AgendaResource> |
findAgendasInPortlet(int nPortletId)
Returns all the sendings associated with a given portlet. |
java.lang.String |
getBeginDate(int nPortletId)
Returns the beginning date when the events will be displayed |
java.lang.String |
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,
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 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,
java.lang.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.IPortletInterfaceDAO
portlet
- the object to be insertedpublic void delete(int nPortletId)
delete
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
nPortletId
- the portlet idpublic fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
load
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
nPortletId
- the portlet id
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
store
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
portlet
- the instance of Portlet class to be updatedpublic void insertAgendaInterval(int nPortletId, java.lang.String strAgendaId, java.lang.String dDateBegin, java.lang.String dDateEnd)
insertAgendaInterval
in interface ICalendarPortletDAO
strAgendaId
- The identifier of an agendadDateBegin
- The beginning datedDateEnd
- The end datenPortletId
- The identifier of the portlet.public void removeAgenda(int nPortletId, java.lang.String strAgendaId)
removeAgenda
in interface ICalendarPortletDAO
strAgendaId
- The identifier of an agendanPortletId
- The identifier of the portlet.public java.util.List<AgendaResource> findAgendasInPortlet(int nPortletId)
findAgendasInPortlet
in interface ICalendarPortletDAO
nPortletId
- the identifier of the portlet.
public java.util.List<AgendaResource> findAgendaBetween(int nPortletId, java.util.Date dateBegin, java.util.Date dateEnd)
findAgendaBetween
in interface ICalendarPortletDAO
nPortletId
- The id of the portletdateBegin
- The start date of the events displaydateEnd
- The end date of the evenst display
public java.lang.String getBeginDate(int nPortletId)
getBeginDate
in interface ICalendarPortletDAO
nPortletId
- The id of the portlet
public java.lang.String getEndDate(int nPortletId)
getEndDate
in interface ICalendarPortletDAO
nPortletId
- The id of the portlet
public int getRepetitionDays(int nPortletId)
getRepetitionDays
in interface ICalendarPortletDAO
nPortletId
- The id of the portlet
public void insertCalendar(int nPortletId, java.lang.String strAgendaId, int nDays)
insertCalendar
in interface ICalendarPortletDAO
nPortletId
- 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 |