Package org.exoplatform.agenda.service
Class CalendarSubscriptionAccess
java.lang.Object
org.exoplatform.agenda.service.CalendarSubscriptionAccess
Reads the calendars an owner's subscriptions fill (EXO-90373), from a Kernel
component that needs the Spring subscription service, and never fails the
read it serves: a listing that cannot ask keeps the events it already had.
The same shape as CalendarShareAccess, and for the same reason: the
event service is a Kernel component and the subscription service a Spring
bean, resolved on first use and replaceable in tests.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds a lookup that resolves the bean on first use.CalendarSubscriptionAccess(org.exoplatform.agenda.service.AgendaCalendarSubscriptionService subscriptionService) Builds a lookup over a known service, for tests and for the Spring side. -
Method Summary
Modifier and TypeMethodDescriptiongetSubscriptionCalendarIds(List<Long> ownerIds) The calendars the subscriptions of these owners fill.
-
Constructor Details
-
CalendarSubscriptionAccess
public CalendarSubscriptionAccess()Builds a lookup that resolves the bean on first use. -
CalendarSubscriptionAccess
public CalendarSubscriptionAccess(org.exoplatform.agenda.service.AgendaCalendarSubscriptionService subscriptionService) Builds a lookup over a known service, for tests and for the Spring side.- Parameters:
subscriptionService- the subscription service, may be null
-
-
Method Details
-
getSubscriptionCalendarIds
The calendars the subscriptions of these owners fill.- Parameters:
ownerIds- identity identifiers of the owners, may be empty- Returns:
- technical identifiers of their subscription calendars, empty when there is none or the service cannot be asked
-