fr.paris.lutece.plugins.calendar.business
Interface ICalendarDAO

All Known Implementing Classes:
CalendarDAO

public interface ICalendarDAO

AN interface used to access the calendar business layer


Method Summary
 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(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.
 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
 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.util.List<OccurrenceEvent> selectOccurrencesByIdList(int nAgendaI, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of Occurrences ordered by occurence id
 java.util.List<OccurrenceEvent> selectOccurrencesList(int nAgendaId, int nEventId, int nSortEvents, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of Occurrences
 java.util.List<OccurrenceEvent> selectOccurrencesList(int nAgendaId, int nSortEvents, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of Occurrences
 java.util.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
 

Method Detail

deleteEvent

void deleteEvent(int nAgendaId,
                 int nEventId,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events

Parameters:
nEventId - The id of the event
nAgendaId - The Agenda Id
plugin - The Plugin using this data access service

deleteAgenda

void deleteAgenda(int nAgendaId,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a Agenda from the table calendar_agendas

Parameters:
nAgendaId - The agenda Id
plugin - The Plugin using this data access service

insertEvent

void insertEvent(SimpleEvent event,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin,
                 java.lang.String strUserLogin)
                 throws fr.paris.lutece.portal.service.util.AppException
Insert a new event in the table calendar_events.

Parameters:
event - The event
plugin - The Plugin using this data access service
strUserLogin - user login
Throws:
fr.paris.lutece.portal.service.util.AppException - An AppException error

insertAgenda

void insertAgenda(AgendaResource agenda,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new agenda in the table calendar_agendas.

Parameters:
agenda - The AgendaResource object
plugin - The Plugin using this data access service

loadAgenda

AgendaResource loadAgenda(int nId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of AgendaResource from the table

Parameters:
nId - The identifier of AgendaResource
plugin - The plugin
Returns:
the instance of the AgendaResource

loadEvent

SimpleEvent loadEvent(int nEventId,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table

Parameters:
nEventId - The id of the event
plugin - The plugin
Returns:
the instance of the SimpleEvent

selectAgendaResourceList

java.util.List<AgendaResource> selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources

Parameters:
plugin - The plugin
Returns:
The Collection of the AgendaResources

selectEventsList

java.util.List<SimpleEvent> selectEventsList(int nAgendaId,
                                             int nSortEvents,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events

Parameters:
nSortEvents - Parameter used for event sorting
plugin - The plugin
nAgendaId - The identifier of the agenda
Returns:
The Collection of the Events

selectEventsListByUserLogin

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

Parameters:
nSortEvents - An integer used for sorting issues
plugin - The plugin
nAgendaId - The identifier of the agenda
strUserLogin - user login
Returns:
The Collection of the Events

storeAgenda

void storeAgenda(AgendaResource agenda,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the agenda in the table calendar_agendas

Parameters:
agenda - The reference of AgendaResource
plugin - The Plugin using this data access service

storeEvent

void storeEvent(SimpleEvent event,
                fr.paris.lutece.portal.service.plugin.Plugin plugin,
                boolean periodiciteUpdated)
                throws fr.paris.lutece.portal.service.util.AppException
Update the event in the table calendar_event

Parameters:
event - The reference of SimpleEvent
plugin - The Plugin using this data access service
boolean - 1 if periodicite is to Update, 0 if not
Throws:
fr.paris.lutece.portal.service.util.AppException - An AppException

getRepetitionDays

int getRepetitionDays(int nEventId,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the number of following days the event should be displayed

Parameters:
nEventId - The id of the event
plugin - Plugin
Returns:
The number of days

selectOccurrencesList

java.util.List<OccurrenceEvent> selectOccurrencesList(int nAgendaId,
                                                      int nEventId,
                                                      int nSortEvents,
                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences

Parameters:
nSortEvents - An integer used for sorting issues
plugin - The plugin
nAgendaId - The identifier of the agenda
nEventId - The identifier of an event
Returns:
The Collection of the Occurrences

selectOccurrencesList

java.util.List<OccurrenceEvent> selectOccurrencesList(int nAgendaId,
                                                      int nSortEvents,
                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences

Parameters:
nSortEvents - An integer used for sorting issues
plugin - The plugin
nAgendaId - The identifier of the agenda
Returns:
The Collection of the Occurrences

selectOccurrencesByIdList

java.util.List<OccurrenceEvent> selectOccurrencesByIdList(int nAgendaI,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences ordered by occurence id

Parameters:
nSortEvents - An integer used for sorting issues
plugin - The plugin
nAgendaId - The identifier of the agenda
Returns:
The Collection of the Occurrences

loadOccurrence

OccurrenceEvent loadOccurrence(int nOccurenceId,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table

Parameters:
nEventId - The id of the event
plugin - The plugin
Returns:
the instance of the SimpleEvent

storeOccurrence

void storeOccurrence(OccurrenceEvent occurrence,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the occurrence in the table calendar_events_occurrences

Parameters:
occurrence - The reference of OccurrenceEvent
plugin - The Plugin using this data access service

deleteAllOccurrence

void deleteAllOccurrence(int nAgendaId,
                         int nEventId,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events_occurrences

Parameters:
nEventId - The id of the occurrence
nAgendaId - The agenda Id
plugin - The Plugin using this data access service

deleteOccurrence

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

Parameters:
nEventId - The id of the occurrence
nOccurrenceId - The occurrence Id
plugin - The Plugin using this data access service

updateNumberOccurrence

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

Parameters:
nEventId - The id of the occurrence
nAgendaId - The agenda Id
plugin - The Plugin using this data access service
nNewNumberOccurrence - the new number of occurrence for the event

getOccurrenceNumber

int getOccurrenceNumber(int nEventId,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the occurrence number for an event

Parameters:
nEventId - The id of the event
plugin - Plugin
Returns:
the occurrence number

loadImageResource

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

Parameters:
nEventId - The event id
plugin - Plugin
Returns:
The image resource

selectByFilter

java.util.List<Event> selectByFilter(CalendarFilter filter,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events

Parameters:
plugin - The plugin
filter - The CalendarFilter Object
Returns:
The Collection of the Events

selectTopEventsList

java.util.List<SimpleEvent> selectTopEventsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of top Events

Parameters:
plugin - The plugin

hasOccurenceEvent

boolean hasOccurenceEvent(java.util.Calendar calendar,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return 1 if the day contains an event 0 otherwise

Parameters:
calendar - The day
plugin - The plugin
Returns:
1 if the day contains an event 0 otherwise

deleteEventUser

void deleteEventUser(int nEventId,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the link between event and user

Parameters:
nEventId - ID event
plugin - plugin

selectEventsList

java.util.List<SimpleEvent> selectEventsList(int nAgendaId,
                                             int nSortEvents,
                                             int nNextDays,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of events

Parameters:
nAgendaId - the agenda ID
nSortEvents - An integer used for sorting issues
nNextDays - the number of days
plugin - plugin
Returns:
the list of events

selectCalendarIds

java.util.List<java.lang.Integer> selectCalendarIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of calendar IDs

Parameters:
plugin - Plugin
Returns:
the list of calendar ids


Copyright © 2011 Mairie de Paris. All Rights Reserved.