Interface BlueMindSubscriptions

All Superinterfaces:
org.exoplatform.caldav.plugin.SubscriptionEdits

public interface BlueMindSubscriptions extends org.exoplatform.caldav.plugin.SubscriptionEdits
The edits one open session, checked to be the colleague's own, can make.
  • Method Details

    • subscribe

      void subscribe(String containerUid)
      Subscribes the colleague to a container, with BlueMindSubscriptionClient.OFFLINE_SYNC and BlueMindSubscriptionClient.AUTOMOUNT. A no-op on the server when they already are.
      Specified by:
      subscribe in interface org.exoplatform.caldav.plugin.SubscriptionEdits
      Parameters:
      containerUid - the container uid, the last segment of the calendar collection's path
      Throws:
      org.exoplatform.caldav.client.CalDavAuthenticationException - when BlueMind refuses the session
      org.exoplatform.caldav.client.CalDavForbiddenException - when BlueMind refuses the edit
      org.exoplatform.caldav.client.CalDavNotFoundException - when BlueMind does not hold the container
      org.exoplatform.caldav.client.CalDavUnreachableException - when the server cannot be reached
      org.exoplatform.caldav.client.CalDavException - when the answer is anything else
    • unsubscribe

      void unsubscribe(String containerUid)
      Unsubscribes the colleague from a container. BlueMind removes the subscription row whether or not the container still exists (UserSubscriptionService.unsubscribe: "unsub anyway").
      Specified by:
      unsubscribe in interface org.exoplatform.caldav.plugin.SubscriptionEdits
      Parameters:
      containerUid - the container uid
      Throws:
      org.exoplatform.caldav.client.CalDavAuthenticationException - when BlueMind refuses the session
      org.exoplatform.caldav.client.CalDavForbiddenException - when BlueMind refuses the edit
      org.exoplatform.caldav.client.CalDavNotFoundException - when BlueMind answers not found
      org.exoplatform.caldav.client.CalDavUnreachableException - when the server cannot be reached
      org.exoplatform.caldav.client.CalDavException - when the answer is anything else