com.atlassian.gadgets.refimpl
Class SubscribedGadgetFeedStoreImpl

java.lang.Object
  extended by com.atlassian.gadgets.refimpl.SubscribedGadgetFeedStoreImpl
All Implemented Interfaces:
SubscribedGadgetFeedStore

public class SubscribedGadgetFeedStoreImpl
extends Object
implements SubscribedGadgetFeedStore


Constructor Summary
SubscribedGadgetFeedStoreImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory factory)
           
 
Method Summary
 SubscribedGadgetFeed addFeed(URI feedUri)
          Add the gadget feed to those that are subscribed to.
 boolean containsFeed(String feedId)
          Returns true if a feed with the given ID has been subscribed to, false otherwise.
 Iterable<SubscribedGadgetFeed> getAllFeeds()
          Returns the feeds that have been subscribed to
 SubscribedGadgetFeed getFeed(String feedId)
          Returns the feed with the given ID, if it exists.
 void removeFeed(String feedId)
          Remove the subscribed feed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscribedGadgetFeedStoreImpl

public SubscribedGadgetFeedStoreImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory factory)
Method Detail

addFeed

public SubscribedGadgetFeed addFeed(URI feedUri)
Description copied from interface: SubscribedGadgetFeedStore
Add the gadget feed to those that are subscribed to.

Specified by:
addFeed in interface SubscribedGadgetFeedStore
Parameters:
feedUri - the gadget spec URI to store. Must not be null.
Returns:
the persisted Subscribed Gadget Feed as represented by the application.

containsFeed

public boolean containsFeed(String feedId)
Description copied from interface: SubscribedGadgetFeedStore
Returns true if a feed with the given ID has been subscribed to, false otherwise.

Specified by:
containsFeed in interface SubscribedGadgetFeedStore
Parameters:
feedId - ID of the feed to check for existence
Returns:
true if the feed with the given id has been subscribed to.

getFeed

public SubscribedGadgetFeed getFeed(String feedId)
Description copied from interface: SubscribedGadgetFeedStore
Returns the feed with the given ID, if it exists. null otherwise.

Specified by:
getFeed in interface SubscribedGadgetFeedStore
Parameters:
feedId - ID of the feed to retrieve
Returns:
feed with the given ID, if it exists, null otherwise

getAllFeeds

public Iterable<SubscribedGadgetFeed> getAllFeeds()
Description copied from interface: SubscribedGadgetFeedStore
Returns the feeds that have been subscribed to

Specified by:
getAllFeeds in interface SubscribedGadgetFeedStore
Returns:
feeds that have been subscribed to

removeFeed

public void removeFeed(String feedId)
Description copied from interface: SubscribedGadgetFeedStore
Remove the subscribed feed

Specified by:
removeFeed in interface SubscribedGadgetFeedStore
Parameters:
feedId - ID of the feed to remove


Copyright © 2013 Atlassian. All Rights Reserved.