Package org.exoplatform.agenda.storage
Class AgendaEventStorage
- java.lang.Object
-
- org.exoplatform.agenda.storage.AgendaEventStorage
-
- Direct Known Subclasses:
CachedAgendaEventStorage
public class AgendaEventStorage extends Object
-
-
Constructor Summary
Constructors Constructor Description AgendaEventStorage(CalendarDAO calendarDAO, EventDAO eventDAO, EventRecurrenceDAO eventRecurrenceDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcountEventDatePolls(List<Long> ownerIds, List<Long> attendeeIds)longcountPendingEvents(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds)org.exoplatform.agenda.model.EventcreateEvent(org.exoplatform.agenda.model.Event event)voiddeleteCalendarEvents(long calendarId)voiddeleteEventById(long eventId)List<Long>deleteExceptionalOccurences(long parentRecurrentEventId)org.exoplatform.agenda.model.EventgetEventById(long eventId)List<Long>getEventDatePollIds(long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, ZonedDateTime start, ZonedDateTime end)List<Long>getEventDatePollIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, int offset, int limit)List<Long>getEventIds(org.exoplatform.agenda.model.EventFilter eventFilter)List<Long>getExceptionalOccurenceIds(long parentRecurrentEventId)List<Long>getExceptionalOccurenceIds(long parentRecurrentEventId, ZonedDateTime occurrenceId)List<Long>getExceptionalOccurenceIdsByPeriod(long parentRecurrentEventId, ZonedDateTime start, ZonedDateTime end)org.exoplatform.agenda.model.EventgetExceptionalOccurrenceEvent(long parentRecurrentEventId, ZonedDateTime occurrenceId)List<org.exoplatform.agenda.model.Event>getParentRecurrentEventIds(ZonedDateTime start, ZonedDateTime end)List<Long>getPendingEventIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, int offset, int limit)booleanisRecurrentEvent(long eventId)org.exoplatform.agenda.model.EventupdateEvent(org.exoplatform.agenda.model.Event event)
-
-
-
Constructor Detail
-
AgendaEventStorage
public AgendaEventStorage(CalendarDAO calendarDAO, EventDAO eventDAO, EventRecurrenceDAO eventRecurrenceDAO)
-
-
Method Detail
-
getPendingEventIds
public List<Long> getPendingEventIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, int offset, int limit)
-
countPendingEvents
public long countPendingEvents(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds)
-
getEventDatePollIds
public List<Long> getEventDatePollIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, int offset, int limit)
-
getEventDatePollIds
public List<Long> getEventDatePollIds(long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, ZonedDateTime start, ZonedDateTime end)
-
getParentRecurrentEventIds
public List<org.exoplatform.agenda.model.Event> getParentRecurrentEventIds(ZonedDateTime start, ZonedDateTime end)
-
getEventById
public org.exoplatform.agenda.model.Event getEventById(long eventId)
-
deleteEventById
public void deleteEventById(long eventId)
-
deleteCalendarEvents
public void deleteCalendarEvents(long calendarId)
-
getExceptionalOccurenceIds
public List<Long> getExceptionalOccurenceIds(long parentRecurrentEventId)
- Parameters:
parentRecurrentEventId- a parent recurrentEventtechnical identifier- Returns:
Listof Event identifiers corresponding to exceptional occurences events Identifiers of a parent recurrent event for a selected period of time
-
getExceptionalOccurenceIdsByPeriod
public List<Long> getExceptionalOccurenceIdsByPeriod(long parentRecurrentEventId, ZonedDateTime start, ZonedDateTime end)
- Parameters:
parentRecurrentEventId- a parent recurrentEventtechnical identifierstart- start DateTime of period to search onend- end DateTime of period to search on- Returns:
Listof Event identifiers corresponding to exceptional occurences events Identifiers of a parent recurrent event for a selected period of time
-
getExceptionalOccurenceIds
public List<Long> getExceptionalOccurenceIds(long parentRecurrentEventId, ZonedDateTime occurrenceId)
-
createEvent
public org.exoplatform.agenda.model.Event createEvent(org.exoplatform.agenda.model.Event event)
-
deleteExceptionalOccurences
public List<Long> deleteExceptionalOccurences(long parentRecurrentEventId)
-
getExceptionalOccurrenceEvent
public org.exoplatform.agenda.model.Event getExceptionalOccurrenceEvent(long parentRecurrentEventId, ZonedDateTime occurrenceId)
-
updateEvent
public org.exoplatform.agenda.model.Event updateEvent(org.exoplatform.agenda.model.Event event)
-
isRecurrentEvent
public boolean isRecurrentEvent(long eventId)
-
-