Class DefaultCalendarEventOccurrenceRepository
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
-
- org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<CalendarEventOccurrence>
-
- org.silverpeas.core.calendar.repository.DefaultCalendarEventOccurrenceRepository
-
- All Implemented Interfaces:
CalendarEventOccurrenceRepository
,EntityRepository<CalendarEventOccurrence>
,WithSaveAndFlush<CalendarEventOccurrence>
@Singleton @Repository public class DefaultCalendarEventOccurrenceRepository extends BasicJpaEntityRepository<CalendarEventOccurrence> implements CalendarEventOccurrenceRepository
- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description DefaultCalendarEventOccurrenceRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 class org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository
deleteByComponentInstanceId, saveAndFlush
-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository
contains, countByCriteria, countFromJpqlString, delete, deleteById, deleteFromJpqlQuery, deleteFromNamedQuery, findByCriteria, findByNamedQuery, findFirstByNamedQuery, flush, getAll, getById, getById, getEntityClass, getEntityManager, getFromJpqlString, getFromJpqlString, getFromNamedQuery, getFromNamedQuery, getIdentifierConverter, getMaximumItemsInClause, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromNamedQuery, listFromNamedQuery, newNamedParameters, noParameter, save, setMaximumItemsInClause, split, streamByNamedQuery, streamByNamedQuery, streamFromJpqlString, streamFromJpqlString, updateFromJpqlQuery, updateFromNamedQuery
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
getAllByEvent
public List<CalendarEventOccurrence> getAllByEvent(CalendarEvent event)
Description copied from interface:CalendarEventOccurrenceRepository
Gets all the persisted occurrences of the specified event.- Specified by:
getAllByEvent
in interfaceCalendarEventOccurrenceRepository
- Returns:
- a list of the persisted occurrences of the given event. If no occurrences, then an empty list is returned.
-
getAll
public List<CalendarEventOccurrence> getAll(Collection<CalendarEvent> events, Period period)
Description copied from interface:CalendarEventOccurrenceRepository
Gets all the persisted occurrences of the specified events occurring in the specified period of time.- Specified by:
getAll
in interfaceCalendarEventOccurrenceRepository
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
public List<CalendarEventOccurrence> getAllSince(CalendarEventOccurrence occurrence)
Description copied from interface:CalendarEventOccurrenceRepository
Gets all the persisted occurrences of a given event since and including the specified one.- Specified by:
getAllSince
in interfaceCalendarEventOccurrenceRepository
- 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.
-
-