Class CalendarSubscriptionAccess

java.lang.Object
org.exoplatform.agenda.service.CalendarSubscriptionAccess

public class CalendarSubscriptionAccess extends Object
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 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

      public List<Long> getSubscriptionCalendarIds(List<Long> ownerIds)
      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