Interface SubscriptionService


public interface SubscriptionService
The service to create and to retrieve subscriptions for subscribable events in the repository.
  • Method Details

    • setSubscriptions

      Set<Subscription> setSubscriptions(String path, Set<SubscriptionEvent> events) throws SubscriptionException
      Sets the subscriptions for the path for the current user. Existing subscriptions for the path are overwritten. Specifying null or empty for events removes subscriptions for the path.
      Parameters:
      path - the path to which to subscribe.
      events - the events to which to subscribe.
      Returns:
      subscriptions The subscriptions for the path.
      Throws:
      SubscriptionException - thrown when there is an issue setting the subscriptions.
    • getSubscriptionsByPath

      Set<Subscription> getSubscriptionsByPath(String path) throws SubscriptionException
      Gets the subscriptions for the path.
      Parameters:
      path - the path from which to get subscriptions.
      Returns:
      Subscriptions for the path.
      Throws:
      SubscriptionException - thrown when there is an issue getting th subscriptions.
    • getSubscriptions

      Set<Subscription> getSubscriptions()
      Gets all the subscriptions for the current user.
      Returns:
      The subscriptions for the current user.