Package com.cbe

Class SubscribeManager

java.lang.Object
com.cbe.SubscribeManager

public class SubscribeManager extends Object
For managing subscriptions.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • SubscribeManager

      public SubscribeManager(long cPtr, boolean cMemoryOwn)
    • SubscribeManager

      public SubscribeManager(DefaultCtor arg0)
  • Method Details

    • getCPtr

      public static long getCPtr(SubscribeManager obj)
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • getSubscriptions

      public void getSubscriptions(GetSubscriptionsDelegate subscribeDelegate)
      List your current subscriptions.

      Listing is done independently of where in the actual directory tree
      the files are located.

      Parameters:
      subscribeDelegate - Pointer to a delegate::GetSubscriptionsDelegate
      instance that is implemented by the user.
    • subscribe

      public void subscribe(long sharingUserId, String sharingUserName, long publishId, String publishName, String password, String subscribeName, SubscribeDelegate subscribeDelegate)
      Subscribes to a Publish using all parameters.

      Subscribe to a Publish that was issued by some other user (or yourself).

      A Publish must not require a password,
      if required it should be provided by the publisher.

      The retrieved subscription may be revoked with
      cbe::Object::unSubscribe() or cbe::Container::unSubscribe().

      Subscribes to a publish shared by some other user (or yourself).
      Parameters:
      sharingUserId - User id of the owner of the publish
      or 0 if sharingUserName should be used instead
      sharingUserName - User name of the owner of the publish
      or empty if sharingUserId should be used instead
      publishId - Publish id or 0 if publishName should be used instead
      publishName - Publish name or empty if publishId should be used instead
      password - Required password or an empty string if no password
      subscribeName - Name of created favorite (usually same as the publish)
      subscribeDelegate - Gets notified of the result
    • subscribe

      public void subscribe(String sharingUserName, String publishName, SubscribeDelegate subscribeDelegate)
      Subscribes to a Publish using names.

      Overload of subscribe()

      Parameters:
      sharingUserName - User name of the owner of the publish
      publishName - Publish name that will also be the name of created
      favorite.
      subscribeDelegate - Gets notified of the result
    • subscribe

      public void subscribe(long sharingUserId, long publishId, String subscribeName, SubscribeDelegate subscribeDelegate)
      Subscribes to a Publish using ids.

      Overload of subscribe()

      Parameters:
      sharingUserId - User id of the owner of the publish
      publishId - publish id (publish id)
      subscribeName - Name of created subscribe
      (usually same as the publish)
      subscribeDelegate - Gets notified of the result