Plumtree EDK (Enterprise Web Development Kit) 5.4.0

IDiscussionManager.SubscribeUsers Method 

Subscribe users of the given ids to the given discussion and all discussion posts within that discussion.

void SubscribeUsers(
   IDiscussion discussion,
   int[] userIDs
);

Parameters

discussion
The discussion to subcribe users to; cannot be null.
userIDs
The ids of the users to subscribe; cannot be null; all IDs must be positive.

Remarks

The calling user must have ADMIN access to the project containing this discussion, and the users to be subscribed have to have at least READ access to the discussion. The call will make a best attempt to subscribe all supplied, valid users. A MultipleObjectException will be thrown specifying the IDs that failed to be subscribed.

Exceptions

Exception TypeCondition
InvalidOperationException The discussion has not yet been stored or has already been removed.
MultipleObjectException Any users cannot be subscribed.
CollaborationException The method call resulted in an error.
ArgumentException Any of the userIDs is not > 0.
SoapException There is a communication problem during the execution of the remote method call.

See Also

IDiscussionManager Interface | Plumtree.Remote.PRC.Collaboration.Discussion Namespace