Interface CalendarRepository
-
- All Superinterfaces:
EntityRepository<Calendar>
- All Known Implementing Classes:
DefaultCalendarRepository
public interface CalendarRepository extends EntityRepository<Calendar>
A persistence repository of calendars. It provides business methods to manage the calendars in the Silverpeas data source.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static CalendarRepository
get()
Gets an instance of the implementation of aCalendarRepository
.List<Calendar>
getAllSynchronized()
Gets all the calendars in Silverpeas synchronized with an external one.List<Calendar>
getByComponentInstanceId(String componentInstanceId)
Gets the calendars represented by the specified component instance.List<Calendar>
getByComponentInstanceIds(Collection<String> componentInstanceIds)
Gets the calendars represented by the specified component instances.-
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 CalendarRepository get()
Gets an instance of the implementation of aCalendarRepository
.- Returns:
- a persistence repository of calendars.
-
getByComponentInstanceId
List<Calendar> getByComponentInstanceId(String componentInstanceId)
Gets the calendars represented by the specified component instance.- Parameters:
componentInstanceId
- the unique identifier identifying an instance of a Silverpeas component. For instance, the component can be a collaborative application or a personal one.- Returns:
- a list containing the calendar instances which matched if any, empty list otherwise.
-
getByComponentInstanceIds
List<Calendar> getByComponentInstanceIds(Collection<String> componentInstanceIds)
Gets the calendars represented by the specified component instances.- Parameters:
componentInstanceIds
- the unique identifiers identifying instances of a Silverpeas component. For instance, a component can be a collaborative application or a personal one.- Returns:
- a list containing the calendar instances which matched if any, empty list otherwise.
-
-