Spring Social Yammer

org.springframework.social.yammer.api
Interface SubscriptionOperations

All Known Implementing Classes:
SubscriptionTemplate

public interface SubscriptionOperations

Sub-API for subscriptions (following/unfollowing).

Author:
Morten Andersen-Gott

Method Summary
 void followTopic(long topicId)
          Follow a topic with the given id
 void followUser(long userId)
          Follow a user with the given id
 boolean isFollowingThread(long threadId)
          Check whether you are following the given thread
 boolean isFollowingTopic(long topicId)
          Check whether you are following the given topic
 boolean isFollowingUser(long userId)
          Check whether you are following the given user
 void unfollowTopic(long topicId)
          Stop following a topic
 void unfollowUser(long userId)
          Stop following a user
 

Method Detail

followUser

void followUser(long userId)
Follow a user with the given id

Parameters:
userId -
Throws:
org.springframework.social.OperationNotPermittedException - if user does not exist

followTopic

void followTopic(long topicId)
Follow a topic with the given id

Parameters:
topicId -
Throws:
org.springframework.social.OperationNotPermittedException - if user does not exist

isFollowingUser

boolean isFollowingUser(long userId)
Check whether you are following the given user

Parameters:
userId -
Returns:
true if you are following the user, otherwise false

isFollowingTopic

boolean isFollowingTopic(long topicId)
Check whether you are following the given topic

Parameters:
topicId -
Returns:
true if you are following the topic, otherwise false

isFollowingThread

boolean isFollowingThread(long threadId)
Check whether you are following the given thread

Parameters:
threadId -
Returns:
true if you are following the thread, otherwise false

unfollowTopic

void unfollowTopic(long topicId)
Stop following a topic

Parameters:
topicId -

unfollowUser

void unfollowUser(long userId)
Stop following a user

Parameters:
userId -

Spring Social Yammer