Spring Social Yammer

org.springframework.social.yammer.api.impl
Class SubscriptionTemplate

java.lang.Object
  extended by org.springframework.social.yammer.api.impl.AbstractYammerOperations
      extended by org.springframework.social.yammer.api.impl.SubscriptionTemplate
All Implemented Interfaces:
SubscriptionOperations

public class SubscriptionTemplate
extends AbstractYammerOperations
implements SubscriptionOperations

Author:
Morten Andersen-Gott

Constructor Summary
SubscriptionTemplate(org.springframework.web.client.RestTemplate restTemplate)
           
 
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
 
Methods inherited from class org.springframework.social.yammer.api.impl.AbstractYammerOperations
buildUri, buildUri, buildUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionTemplate

public SubscriptionTemplate(org.springframework.web.client.RestTemplate restTemplate)
Method Detail

followUser

public void followUser(long userId)
Description copied from interface: SubscriptionOperations
Follow a user with the given id

Specified by:
followUser in interface SubscriptionOperations

followTopic

public void followTopic(long topicId)
Description copied from interface: SubscriptionOperations
Follow a topic with the given id

Specified by:
followTopic in interface SubscriptionOperations

unfollowUser

public void unfollowUser(long userId)
Description copied from interface: SubscriptionOperations
Stop following a user

Specified by:
unfollowUser in interface SubscriptionOperations

unfollowTopic

public void unfollowTopic(long topicId)
Description copied from interface: SubscriptionOperations
Stop following a topic

Specified by:
unfollowTopic in interface SubscriptionOperations

isFollowingUser

public boolean isFollowingUser(long userId)
Description copied from interface: SubscriptionOperations
Check whether you are following the given user

Specified by:
isFollowingUser in interface SubscriptionOperations
Returns:
true if you are following the user, otherwise false

isFollowingTopic

public boolean isFollowingTopic(long topicId)
Description copied from interface: SubscriptionOperations
Check whether you are following the given topic

Specified by:
isFollowingTopic in interface SubscriptionOperations
Returns:
true if you are following the topic, otherwise false

isFollowingThread

public boolean isFollowingThread(long threadId)
Description copied from interface: SubscriptionOperations
Check whether you are following the given thread

Specified by:
isFollowingThread in interface SubscriptionOperations
Returns:
true if you are following the thread, otherwise false

Spring Social Yammer