public final class CalendarHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
createAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new agenda in the table calendar_agendas.
|
static void |
createEvent(SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strUserLogin)
Insert a new event in the table calendar_events.
|
static AgendaResource |
findAgendaResource(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a AgendaResource whose identifier is specified in
parameter
|
static List<AgendaResource> |
findAgendaResourcesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources
|
static List<Integer> |
findCalendarIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of calendar IDs
|
static SimpleEvent |
findEvent(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table
|
static List<Event> |
findEventsByFilter(CalendarFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events
|
static List<SimpleEvent> |
findEventsList(int nAgendaId,
int nSortEvents,
int nNextDays,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of events
|
static List<SimpleEvent> |
findEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events
|
static List<SimpleEvent> |
findEventsListByUserLogin(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strUserLogin)
Load the list of Events
|
static OccurrenceEvent |
findOccurrence(int nOccurrenceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Occurrence from the table
|
static List<OccurrenceEvent> |
findOccurrencesByIdList(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences ordered by occurrences id
|
static List<OccurrenceEvent> |
findOccurrencesList(int nAgendaId,
int nEventId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences linked with an event
|
static List<OccurrenceEvent> |
findOccurrencesList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences
|
static List<SimpleEvent> |
findTopEventList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of top Events
|
static fr.paris.lutece.portal.service.image.ImageResource |
getImageResource(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the image resource for the specified category id
|
static int |
getOccurrenceNumber(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the number of occurrence for an event
|
static int |
getRepetitionDays(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the number of days within which the events will occur
|
static boolean |
hasOccurrenceEvent(Calendar calendar,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return 1 if the day contains an event 0 otherwise
|
static void |
removeAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an agenda from the table calendar_agendas
|
static void |
removeEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events
|
static void |
removeOccurrence(int nOccurrenceId,
int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events
|
static void |
updateAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the agenda in the table calendar_agendas
|
static void |
updateEvent(SimpleEvent event,
boolean bPeriodiciteUpdated,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the event in the table calendar_event
|
static void |
updateOccurrence(OccurrenceEvent occurrence,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the occurrence in the table calendar_events_occurrences
|
public static void createAgenda(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda
- The AgendaResource objectplugin
- The Plugin using this data access servicepublic static void updateAgenda(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda
- The reference of AgendaResourceplugin
- The Plugin using this data access servicepublic static void removeAgenda(int nAgendaId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId
- The agenda Idplugin
- The Plugin using this data access servicepublic static List<AgendaResource> findAgendaResourcesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginpublic static AgendaResource findAgendaResource(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The Primary key of the contactplugin
- The Plugin objectpublic static void createEvent(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
- AppExceptionpublic static void updateEvent(SimpleEvent event, boolean bPeriodiciteUpdated, fr.paris.lutece.portal.service.plugin.Plugin plugin)
event
- The reference of SimpleEventbPeriodiciteUpdated
- true if periodicite, false otherwiseplugin
- The Plugin using this data access servicepublic static void removeEvent(int nAgendaId, int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId
- The event idnAgendaId
- The agenda Idplugin
- The Plugin using this data access servicepublic static SimpleEvent findEvent(int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId
- The event idplugin
- The pluginpublic static List<SimpleEvent> findEventsList(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 agendapublic static List<SimpleEvent> findEventsListByUserLogin(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 loginpublic static List<OccurrenceEvent> findOccurrencesList(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 eventpublic static List<OccurrenceEvent> findOccurrencesList(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 agendapublic static List<OccurrenceEvent> findOccurrencesByIdList(int nAgendaId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginnAgendaId
- The identifier of the agendapublic static OccurrenceEvent findOccurrence(int nOccurrenceId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nOccurrenceId
- The occurrence idplugin
- The pluginpublic static void updateOccurrence(OccurrenceEvent occurrence, fr.paris.lutece.portal.service.plugin.Plugin plugin)
occurrence
- The reference of OccurrenceEventplugin
- The Plugin using this data access servicepublic static int getRepetitionDays(int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId
- The id of the eventplugin
- Pluginpublic static int getOccurrenceNumber(int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId
- The id of the eventplugin
- The Plugin using this data access servicepublic static void removeOccurrence(int nOccurrenceId, int nEventId, int nAgendaId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nOccurrenceId
- The occurrence idnEventId
- The identifier of an eventnAgendaId
- The id of the agendaplugin
- The Plugin using this data access servicepublic static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nCategoryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCategoryId
- The identifier of Category objectplugin
- Pluginpublic static List<Event> findEventsByFilter(CalendarFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginfilter
- The CalendarFilter Objectpublic static List<SimpleEvent> findTopEventList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginpublic static boolean hasOccurrenceEvent(Calendar calendar, fr.paris.lutece.portal.service.plugin.Plugin plugin)
calendar
- The dayplugin
- The pluginpublic static List<SimpleEvent> findEventsList(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.