Class CachedAgendaEventStorage

java.lang.Object
org.exoplatform.agenda.storage.AgendaEventStorage
org.exoplatform.agenda.storage.cached.CachedAgendaEventStorage

public class CachedAgendaEventStorage extends AgendaEventStorage
  • Field Details

  • Constructor Details

    • CachedAgendaEventStorage

      public CachedAgendaEventStorage(org.exoplatform.services.cache.CacheService cacheService, CalendarDAO calendarDAO, EventDAO eventDAO, EventRecurrenceDAO eventRecurrenceDAO)
  • Method Details

    • getEventById

      public org.exoplatform.agenda.model.Event getEventById(long eventId)
      Overrides:
      getEventById in class AgendaEventStorage
    • updateEvent

      public org.exoplatform.agenda.model.Event updateEvent(org.exoplatform.agenda.model.Event event)
      Overrides:
      updateEvent in class AgendaEventStorage
    • deleteEventById

      public void deleteEventById(long eventId)
      Overrides:
      deleteEventById in class AgendaEventStorage
    • deleteEventAfterRead

      public void deleteEventAfterRead(long eventId)
      Description copied from class: AgendaEventStorage
      Deletes an event whose attendees, conferences or reminders were read in the same request, which AgendaEventStorage.deleteEventById(long) cannot: the persistence context is cleared before the bulk deletion of its children.
      Overrides:
      deleteEventAfterRead in class AgendaEventStorage
      Parameters:
      eventId - the event to delete
    • deleteCalendarEvents

      public void deleteCalendarEvents(long calendarId)
      Overrides:
      deleteCalendarEvents in class AgendaEventStorage
    • moveCalendarEvents

      public List<Long> moveCalendarEvents(long fromCalendarId, long toCalendarId)
      Moves all events of a calendar to another calendar, keeping every event and its associated data (attendees, reminders, conferences, recurrences, remote identifiers) untouched apart from the calendar membership. In addition, evicts the moved events from the event cache so that subsequent reads return the new calendar membership.
      Overrides:
      moveCalendarEvents in class AgendaEventStorage
      Parameters:
      fromCalendarId - technical identifier of the calendar the events are moved away from
      toCalendarId - technical identifier of the calendar receiving the events
      Returns:
      List of technical identifiers of the moved events, empty when the source calendar had no events
    • deleteExceptionalOccurences

      public List<Long> deleteExceptionalOccurences(long parentRecurrentEventId)
      Overrides:
      deleteExceptionalOccurences in class AgendaEventStorage
    • clearCache

      public void clearCache()