|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.service.EventListService
public class EventListService
This class provides an event list service.
| Constructor Summary | |
|---|---|
EventListService()
Private constructor |
|
| Method Summary | |
|---|---|
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. |
java.util.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 |
java.util.List<SimpleEvent> |
getSimpleEvents(int nAgendaId,
int nSortEvents)
Get the list of SimpleEvent. |
java.util.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)
|
void |
setEventListCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
Set the agenda cache key service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventListService()
| Method Detail |
|---|
public EventList newEventList(int nViewType)
strKeyName - The keyname of the EventList
public java.util.List<SimpleEvent> getSimpleEvents(int nAgendaId,
int nSortEvents)
nAgendaId - the agenda IDnSortEvents - 1 if it must be sorted ascendly, 0 otherwis
SimpleEvent
public java.util.List<SimpleEvent> getSimpleEventsByUserLogin(int nAgendaId,
fr.paris.lutece.portal.service.security.LuteceUser user)
nAgendaId - the agenda IDuser - the LuteceUser
SimpleEvent
public java.util.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 LuteceUserplugin - 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 LuteceUserplugin - 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 LuteceUserplugin - Pluginpublic void setEventListCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
cacheKeyService - the cache key servicepublic void setCalendarService(CalendarService calendarService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||