Interface CalendarEventOccurrenceRepository
-
- All Superinterfaces:
EntityRepository<CalendarEventOccurrence>
- All Known Implementing Classes:
DefaultCalendarEventOccurrenceRepository
public interface CalendarEventOccurrenceRepository extends EntityRepository<CalendarEventOccurrence>
A repository to persist occurrences of recurrent calendar events when they have changed from the event or from their planning in the timeline of a calendar.- Author:
- mmoquillon
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static CalendarEventOccurrenceRepository
get()
Gets an instance of the implementation of aCalendarEventOccurrenceRepository
.List<CalendarEventOccurrence>
getAll(Collection<CalendarEvent> events, Period period)
Gets all the persisted occurrences of the specified events occurring in the specified period of time.List<CalendarEventOccurrence>
getAllByEvent(CalendarEvent event)
Gets all the persisted occurrences of the specified event.List<CalendarEventOccurrence>
getAllSince(CalendarEventOccurrence occurrence)
Gets all the persisted occurrences of a given event since and including the specified one.-
Methods inherited from interface org.silverpeas.core.persistence.datasource.repository.EntityRepository
contains, delete, delete, deleteByComponentInstanceId, deleteById, deleteById, findByCriteria, flush, getAll, getById, getById, getById, save, save, save
-
-
-
-
Method Detail
-
get
static CalendarEventOccurrenceRepository get()
Gets an instance of the implementation of aCalendarEventOccurrenceRepository
.- Returns:
- a persistence repository of event occurrences.
-
getAllByEvent
List<CalendarEventOccurrence> getAllByEvent(CalendarEvent event)
Gets all the persisted occurrences of the specified event.- Returns:
- a list of the persisted occurrences of the given event. If no occurrences, then an empty list is returned.
-
getAll
List<CalendarEventOccurrence> getAll(Collection<CalendarEvent> events, Period period)
Gets all the persisted occurrences of the specified events occurring in the specified period of time.- Parameters:
period
- the period of time into which the instances of the event should occur.- Returns:
- a list of the persisted occurrences of the given event and occurring in the given period of time. If no occurrences of the events and in the given period of time were persisted, then an empty list is returned.
-
getAllSince
List<CalendarEventOccurrence> getAllSince(CalendarEventOccurrence occurrence)
Gets all the persisted occurrences of a given event since and including the specified one.- Parameters:
occurrence
- the occurrence since which all the others occurrences, including iself, have to be get.- Returns:
- a list of persisted occurrences since and including the specified one. All of them are from the same event.
-
-