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 otherwisSimpleEvent
public List<SimpleEvent> getSimpleEventsByUserLogin(int nAgendaId, fr.paris.lutece.portal.service.security.LuteceUser user)
nAgendaId
- the agenda IDuser
- the LuteceUser
SimpleEvent
public 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
- Plugin
OccurrenceEvent
public SimpleEvent getEvent(int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId
- the event IDplugin
- Plugin
SimpleEvent
public int getRepititionDays(int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId
- the event idplugin
- Plugin
public void doAddEvent(SimpleEvent event, fr.paris.lutece.portal.service.security.LuteceUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
event
- the eventuser
- the LuteceUser
plugin
- Plugin
public void doModifyOccurrenceEvent(OccurrenceEvent occurrenceEvent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
occurrenceEvent
- the eventplugin
- Plugin
public 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 LuteceUser
plugin
- Plugin
public 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 LuteceUser
plugin
- Plugin
public 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.