public interface ICalendarDAO
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a 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 |
deleteOccurrence(int nOccurrenceId,
int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events_occurrences
|
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)
Returns the number of following days the event should be displayed
|
boolean |
hasOccurenceEvent(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,
String strUserLogin)
Insert a new event in the table calendar_events.
|
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 nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the image resource corresponding to the category id
|
OccurrenceEvent |
loadOccurrence(int nOccurenceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table
|
List<AgendaResource> |
selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources
|
List<Event> |
selectByFilter(CalendarFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events
|
List<Integer> |
selectCalendarIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of calendar IDs
|
List<SimpleEvent> |
selectEventsList(int nAgendaId,
int nSortEvents,
int nNextDays,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of events
|
List<SimpleEvent> |
selectEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events
|
List<SimpleEvent> |
selectEventsListByUserLogin(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strUserLogin)
Load the list of Events
|
List<OccurrenceEvent> |
selectOccurrencesByIdList(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences ordered by occurence id
|
List<OccurrenceEvent> |
selectOccurrencesList(int nAgendaId,
int nEventId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences
|
List<OccurrenceEvent> |
selectOccurrencesList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences
|
List<SimpleEvent> |
selectTopEventsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of top 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 periodiciteUpdated)
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 |
updateNumberOccurrence(int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nNewNumberOccurrence)
UPDATE the occurrence number from the table calendar_events
|
void deleteEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The id of the eventnAgendaId - The Agenda Idplugin - The Plugin using this data access servicevoid deleteAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId - The agenda Idplugin - The Plugin using this data access servicevoid insertEvent(SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin, String strUserLogin) throws fr.paris.lutece.portal.service.util.AppException
event - The eventplugin - The Plugin using this data access servicestrUserLogin - user loginfr.paris.lutece.portal.service.util.AppException - An AppException
errorvoid insertAgenda(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda - The AgendaResource objectplugin - The Plugin using this data access serviceAgendaResource loadAgenda(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nId - The identifier of AgendaResourceplugin - The pluginSimpleEvent loadEvent(int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The id of the eventplugin - The pluginList<AgendaResource> selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The pluginList<SimpleEvent> selectEventsList(int nAgendaId, int nSortEvents, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSortEvents - Parameter used for event sortingplugin - The pluginnAgendaId - The identifier of the agendaList<SimpleEvent> selectEventsListByUserLogin(int nAgendaId, int nSortEvents, fr.paris.lutece.portal.service.plugin.Plugin plugin, String strUserLogin)
nSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agendastrUserLogin - user loginvoid storeAgenda(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda - The reference of AgendaResourceplugin - The Plugin using this data access servicevoid storeEvent(SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin, boolean periodiciteUpdated) throws fr.paris.lutece.portal.service.util.AppException
event - The reference of SimpleEventplugin - The Plugin using this data access serviceperiodiciteUpdated - true if periodicity must be updated, 0
otherwhisefr.paris.lutece.portal.service.util.AppException - An AppExceptionint getRepetitionDays(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The id of the eventplugin - PluginList<OccurrenceEvent> selectOccurrencesList(int nAgendaId, int nEventId, int nSortEvents, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agendanEventId - The identifier of an eventList<OccurrenceEvent> selectOccurrencesList(int nAgendaId, int nSortEvents, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agendaList<OccurrenceEvent> selectOccurrencesByIdList(int nAgendaId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The pluginnAgendaId - The identifier of the agendaOccurrenceEvent loadOccurrence(int nOccurenceId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nOccurenceId - The id of the occurenceplugin - The pluginvoid storeOccurrence(OccurrenceEvent occurrence, fr.paris.lutece.portal.service.plugin.Plugin plugin)
occurrence - The reference of OccurrenceEventplugin - The Plugin using this data access servicevoid deleteAllOccurrence(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The id of the occurrencenAgendaId - The agenda Idplugin - The Plugin using this data access servicevoid deleteOccurrence(int nOccurrenceId,
int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The id of the occurrencenOccurrenceId - The occurrence IdnAgendaId - the agenda idplugin - The Plugin using this data access servicevoid updateNumberOccurrence(int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nNewNumberOccurrence)
nEventId - The id of the occurrencenAgendaId - The agenda Idplugin - The Plugin using this data access servicenNewNumberOccurrence - the new number of occurrence for the eventint getOccurrenceNumber(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The id of the eventplugin - Pluginfr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The event idplugin - PluginList<Event> selectByFilter(CalendarFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The pluginfilter - The CalendarFilter ObjectList<SimpleEvent> selectTopEventsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The pluginboolean hasOccurenceEvent(Calendar calendar, fr.paris.lutece.portal.service.plugin.Plugin plugin)
calendar - The dayplugin - The pluginvoid deleteEventUser(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - ID eventplugin - pluginList<SimpleEvent> selectEventsList(int nAgendaId, int nSortEvents, int nNextDays, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId - the agenda IDnSortEvents - An integer used for sorting issuesnNextDays - the number of daysplugin - pluginCopyright © 2015 City of Paris. All rights reserved.