public class EventListService extends Object
| Constructor and Description |
|---|
EventListService()
Private constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
doAddEvent(SimpleEvent event,
fr.paris.lutece.portal.service.security.LuteceUser user,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add an event and reset the caches
|
void |
doModifyOccurrenceEvent(OccurrenceEvent occurrenceEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify an OccurrenceEvent and reset the caches
|
void |
doModifySimpleEvent(SimpleEvent event,
boolean bPeriociteModify,
fr.paris.lutece.portal.service.security.LuteceUser user,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify a SimpleEvent and reset the caches
|
void |
doRemoveEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.security.LuteceUser user,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an event and reset the caches
|
SimpleEvent |
getEvent(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the event from a given event ID.
|
List<OccurrenceEvent> |
getOccurrenceEvents(int nAgendaId,
int nEventId,
int nIsAscSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of OccurrenceEvent.
|
int |
getRepititionDays(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number repitition days of an event from a given event ID
|
List<SimpleEvent> |
getSimpleEvents(int nAgendaId,
int nSortEvents)
Get the list of SimpleEvent.
|
List<SimpleEvent> |
getSimpleEventsByUserLogin(int nAgendaId,
fr.paris.lutece.portal.service.security.LuteceUser user)
Get the list of SimpleEvent from the user login.
|
EventList |
newEventList(int nViewType)
Load an eventlist object from its keyname
|
void |
setCalendarService(CalendarService calendarService)
Set the calendar service
|
void |
setEventListCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
Set the agenda cache key service
|
public EventList newEventList(int nViewType)
nViewType - The viewtype of the EventListpublic List<SimpleEvent> getSimpleEvents(int nAgendaId, int nSortEvents)
nAgendaId - the agenda IDnSortEvents - 1 if it must be sorted ascendly, 0 otherwisSimpleEventpublic List<SimpleEvent> getSimpleEventsByUserLogin(int nAgendaId, fr.paris.lutece.portal.service.security.LuteceUser user)
nAgendaId - the agenda IDuser - the LuteceUserSimpleEventpublic List<OccurrenceEvent> getOccurrenceEvents(int nAgendaId, int nEventId, int nIsAscSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId - the agenda IDnEventId - the event IDnIsAscSort - 1 if it must be sorted ascendly, 0 otherwisplugin - PluginOccurrenceEventpublic SimpleEvent getEvent(int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - the event IDplugin - PluginSimpleEventpublic int getRepititionDays(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - the event idplugin - Pluginpublic void doAddEvent(SimpleEvent event, fr.paris.lutece.portal.service.security.LuteceUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
event - the eventuser - the LuteceUserplugin - Pluginpublic void doModifyOccurrenceEvent(OccurrenceEvent occurrenceEvent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
occurrenceEvent - the eventplugin - Pluginpublic void doModifySimpleEvent(SimpleEvent event, boolean bPeriociteModify, fr.paris.lutece.portal.service.security.LuteceUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
event - the eventbPeriociteModify - true if the periodicity has to be updated, false
otherwiseuser - the LuteceUserplugin - Pluginpublic void doRemoveEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.security.LuteceUser user,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId - the agenda IDnEventId - the event IDuser - the LuteceUserplugin - Pluginpublic void setEventListCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
cacheKeyService - the cache key servicepublic void setCalendarService(CalendarService calendarService)
calendarService - The calendar serviceCopyright © 2015 City of Paris. All rights reserved.