|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFollowable
An interface to support user to follow/unfollow a document related StreamWork feeds
| Method Summary | |
|---|---|
boolean |
follow(int userID)
Allow a user to follow the StreamWork topic related to the current document |
java.util.Set |
getFollowers()
Returns the IDs of the users who follow the current document To read this value, this object must contain the SI_DOC_FOLLOWERS property. |
java.util.Set |
getFollowers(IInfoObject parent)
Returns the IDs of the users who follow the current document To read this value, this object must contain the SI_DOC_FOLLOWERS property. |
boolean |
hasStreamWorkDiscussion()
|
boolean |
unfollow(int userID)
Stop a user from follow the StreamWork topic related to the current document |
| Method Detail |
|---|
boolean follow(int userID)
throws SDKException
userID - The ID of the user to add to the list of followers
SDKException - This is thrown if the process is unsuccessful.
boolean unfollow(int userID)
throws SDKException
userID - The ID of the user to remove from the list of followers.
true if the user is successfully removed from the followers list, false otherwise.
SDKException - This is thrown if the process is unsuccessful.
java.util.Set getFollowers()
throws SDKException
To read this value, this object must contain the SI_DOC_FOLLOWERS property.
SDKException - This is thrown if the process is unsuccessful.
java.util.Set getFollowers(IInfoObject parent)
throws SDKException
To read this value, this object must contain the SI_DOC_FOLLOWERS property.
This method, compared with the overloaded version without the parent parameter, is more efficient
when current object is an instance and the parent contains SI_DOC_FOLLOWERS property bag because it does not
require a back query to the CMS to retrieve the inherited follower info
parent - The parent of the current object
SDKException - This is thrown if the process is unsuccessful.boolean hasStreamWorkDiscussion()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||