Package com.cbe
Class SubscribeManager
java.lang.Object
com.cbe.SubscribeManager
For managing subscriptions.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubscribeManager(long cPtr, boolean cMemoryOwn) SubscribeManager(DefaultCtor arg0) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()voidfinalize()static longgetCPtr(SubscribeManager obj) voidgetSubscriptions(GetSubscriptionsDelegate subscribeDelegate) List your current subscriptions.voidsubscribe(long sharingUserId, long publishId, String subscribeName, SubscribeDelegate subscribeDelegate) Subscribes to a Publish using ids.voidsubscribe(long sharingUserId, String sharingUserName, long publishId, String publishName, String password, String subscribeName, SubscribeDelegate subscribeDelegate) Subscribes to a Publish using all parameters.voidsubscribe(String sharingUserName, String publishName, SubscribeDelegate subscribeDelegate) Subscribes to a Publish using names.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
SubscribeManager
public SubscribeManager(long cPtr, boolean cMemoryOwn) -
SubscribeManager
-
-
Method Details
-
getCPtr
-
finalize
public void finalize() -
delete
public void delete() -
getSubscriptions
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 insteadsharingUserName- User name of the owner of the publish
or empty if sharingUserId should be used insteadpublishId- Publish id or 0 if publishName should be used insteadpublishName- Publish name or empty if publishId should be used insteadpassword- Required password or an empty string if no passwordsubscribeName- 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 publishpublishName- 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 publishpublishId- publish id (publish id)subscribeName- Name of created subscribe
(usually same as the publish)subscribeDelegate- Gets notified of the result
-