|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.business.CalendarDAO
public class CalendarDAO
This DAO class used to fetch the calendars in the database
| Constructor Summary | |
|---|---|
CalendarDAO()
|
|
| Method Summary | |
|---|---|
void |
deleteAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an agenda from the table calendar_agendas |
void |
deleteAllOccurrence(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events_occurrences |
void |
deleteEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events |
void |
deleteEventUser(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the link between event and user |
void |
deleteFeature(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nEventId)
|
void |
deleteLinkCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nEventId)
|
void |
deleteOccurrence(int nOccurrenceId,
int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an occurrence from the table calendar_events_occurrences |
void |
getFeature(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nIdEvent,
SimpleEvent event)
|
SimpleEvent |
getNextOccurrence(SimpleEvent occurrence,
java.lang.String strDateRef,
int nCptDate)
Return the next occurrence of an event regarding the frequency choisen |
int |
getOccurrenceNumber(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the occurrence number for an event |
int |
getRepetitionDays(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the frequency of an event |
boolean |
hasOccurenceEvent(java.util.Calendar calendar,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return 1 if the day contains an event 0 otherwise |
void |
insertAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new agenda in the table calendar_agendas. |
void |
insertEvent(SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
java.lang.String strUserLogin)
Insert a new event in the table calendar_events. |
void |
insertFeature(fr.paris.lutece.portal.service.plugin.Plugin plugin,
SimpleEvent event)
|
void |
insertOccurrence(SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new set of occurrence in the table calendar_events_occurrences. |
AgendaResource |
loadAgenda(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of AgendaResource from the table |
SimpleEvent |
loadEvent(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table |
fr.paris.lutece.portal.service.image.ImageResource |
loadImageResource(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the image resource corresponding to the event id |
OccurrenceEvent |
loadOccurrence(int nOccurenceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table |
java.util.List<AgendaResource> |
selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources |
java.util.List<Event> |
selectByFilter(CalendarFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
java.util.List<java.lang.Integer> |
selectCalendarIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of calendar IDs |
java.util.List<SimpleEvent> |
selectEventsList(int nAgendaId,
int nSortEvents,
int nNextDays,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of events |
java.util.List<SimpleEvent> |
selectEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
java.util.List<SimpleEvent> |
selectEventsListByUserLogin(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
java.lang.String strUserLogin)
Load the list of Events |
java.sql.Date |
selectOccurrenceDateMin(int nIdEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
SELECT the minimum date from a set of occurrences from table calendar_events_occurrences |
java.util.List<OccurrenceEvent> |
selectOccurrencesByIdList(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of all Occurrences of a given calendar |
java.util.List<OccurrenceEvent> |
selectOccurrencesList(int nAgendaId,
int nEventId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences related with a given calendar and event |
java.util.List<OccurrenceEvent> |
selectOccurrencesList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of all Occurrences |
java.util.List<SimpleEvent> |
selectTopEventsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
void |
storeAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the agenda in the table calendar_agendas |
void |
storeEvent(SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
boolean bPeriodiciteUpdated)
Update the event in the table calendar_event |
void |
storeOccurrence(OccurrenceEvent occurrence,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the occurrence in the table calendar_events_occurrences |
void |
updateDateEvent(int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
java.sql.Date newDateEvent)
UPDATE the event date from the table calendar_events |
void |
updateFeature(fr.paris.lutece.portal.service.plugin.Plugin plugin,
SimpleEvent event)
|
void |
updateNumberOccurrence(int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nNewNumberOccurrence)
UPDATE the occurrence number from the table calendar_events |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarDAO()
| Method Detail |
|---|
public void insertAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertAgenda in interface ICalendarDAOagenda - The AgendaResource objectplugin - The Plugin using this data access service
public void storeAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
storeAgenda in interface ICalendarDAOagenda - The reference of AgendaResourceplugin - The Plugin using this data access service
public void deleteAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAgenda in interface ICalendarDAOnAgendaId - The Agenda Idplugin - The Plugin using this data access service
public void insertEvent(SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
java.lang.String strUserLogin)
insertEvent in interface ICalendarDAOevent - The event to be insertedplugin - The Plugin using this data access servicestrUserLogin - user login
public void storeEvent(SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
boolean bPeriodiciteUpdated)
storeEvent in interface ICalendarDAOevent - The reference of SimpleEventnAgendaId - The identifier of the agendaplugin - The Plugin using this data access service
public void deleteEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteEvent in interface ICalendarDAOnEventId - The id of the eventnAgendaId - The agenda Idplugin - The Plugin using this data access service
public AgendaResource loadAgenda(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadAgenda in interface ICalendarDAOnId - The identifier of AgendaResourceplugin - The plugin
public java.util.List<AgendaResource> selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAgendaResourceList in interface ICalendarDAOplugin - The plugin
public SimpleEvent loadEvent(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadEvent in interface ICalendarDAOnEventId - The id of the eventplugin - The plugin
public java.util.List<SimpleEvent> selectEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectEventsList in interface ICalendarDAOnSortEvents - An integer used for sortingplugin - The pluginnAgendaId - The identifier of the agenda
public void insertOccurrence(SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
event - The event to be insertedplugin - The Plugin using this data access servicearrayExcludedDays - list of excluded days
public void storeOccurrence(OccurrenceEvent occurrence,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
storeOccurrence in interface ICalendarDAOoccurrence - The reference of OccurrenceEventplugin - The Plugin using this data access service
public java.util.List<OccurrenceEvent> selectOccurrencesList(int nAgendaId,
int nEventId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectOccurrencesList in interface ICalendarDAOnSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agendanEventId - The identifier of an event
public java.util.List<OccurrenceEvent> selectOccurrencesList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectOccurrencesList in interface ICalendarDAOnSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agenda
public java.util.List<OccurrenceEvent> selectOccurrencesByIdList(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectOccurrencesByIdList in interface ICalendarDAOnSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agenda
public OccurrenceEvent loadOccurrence(int nOccurenceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadOccurrence in interface ICalendarDAOnEventId - The id of the eventplugin - The plugin
public void deleteAllOccurrence(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAllOccurrence in interface ICalendarDAOnEventId - The id of the occurrencenAgendaId - The agenda Idplugin - The Plugin using this data access service
public void deleteOccurrence(int nOccurrenceId,
int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteOccurrence in interface ICalendarDAOnOccurrenceId - The id of the occurrencenAgendaId - The agenda Idplugin - The Plugin using this data access servicenEventId - The id of the occurrence
public void updateDateEvent(int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
java.sql.Date newDateEvent)
nEventId - The id of the occurrencenAgendaId - The agenda Idplugin - The Plugin using this data access servicenewDateEvent - the new java.sql.Date object
public java.sql.Date selectOccurrenceDateMin(int nIdEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The id of the occurrenceplugin - The Plugin using this data access service
public void updateNumberOccurrence(int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nNewNumberOccurrence)
updateNumberOccurrence in interface ICalendarDAOnEventId - The id of the occurrencenAgendaId - The agenda Idplugin - The Plugin using this data access servicenNewNumberOccurrence - the new number of occurrence for the event
public int getRepetitionDays(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getRepetitionDays in interface ICalendarDAOnEventId - The id of the eventplugin - Plugin
public int getOccurrenceNumber(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getOccurrenceNumber in interface ICalendarDAOnEventId - The id of the eventplugin - Plugin
public SimpleEvent getNextOccurrence(SimpleEvent occurrence,
java.lang.String strDateRef,
int nCptDate)
occurrence - an Event instance to be updatedstrDateRef - The reference datenCptDate - The number to add
public void insertFeature(fr.paris.lutece.portal.service.plugin.Plugin plugin,
SimpleEvent event)
public void updateFeature(fr.paris.lutece.portal.service.plugin.Plugin plugin,
SimpleEvent event)
public void deleteFeature(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nEventId)
public void getFeature(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nIdEvent,
SimpleEvent event)
public void deleteLinkCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nEventId)
public fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadImageResource in interface ICalendarDAOnEventId - The identifier of event objectplugin - Plugin
public java.util.List<Event> selectByFilter(CalendarFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByFilter in interface ICalendarDAOplugin - The pluginfilter - The CalendarFilter Object
public java.util.List<SimpleEvent> selectTopEventsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTopEventsList in interface ICalendarDAOnSortEvents - An integer used for sortingplugin - The pluginnAgendaId - The identifier of the agenda
public boolean hasOccurenceEvent(java.util.Calendar calendar,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasOccurenceEvent in interface ICalendarDAOcalendar - The dayplugin - The plugin
public java.util.List<SimpleEvent> selectEventsListByUserLogin(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
java.lang.String strUserLogin)
selectEventsListByUserLogin in interface ICalendarDAOnSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agendastrUserLogin -
public void deleteEventUser(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteEventUser in interface ICalendarDAOnEventId - ID eventplugin - plugin
public java.util.List<SimpleEvent> selectEventsList(int nAgendaId,
int nSortEvents,
int nNextDays,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectEventsList in interface ICalendarDAOnAgendaId - the agenda IDnSortEvents - An integer used for sorting issuesnNextDays - the number of daysplugin - plugin
public java.util.List<java.lang.Integer> selectCalendarIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCalendarIds in interface ICalendarDAOplugin - Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||