com.atlassian.gadgets.directory.internal.impl
Class SubscribedGadgetFeedStoreImpl

java.lang.Object
  extended by com.atlassian.gadgets.directory.internal.impl.SubscribedGadgetFeedStoreImpl
All Implemented Interfaces:
SubscribedGadgetFeedStore

public class SubscribedGadgetFeedStoreImpl
extends Object
implements SubscribedGadgetFeedStore


Constructor Summary
SubscribedGadgetFeedStoreImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory factory)
           
 
Method Summary
 void add(SubscribedGadgetFeed feed)
          Add the gadget feed to those that are subscribed to.
 boolean contains(String feedId)
          Returns true if a feed with the given ID has been subscribed to, false otherwise.
 SubscribedGadgetFeed get(String feedId)
          Returns the feed with the given ID, if it exists.
 Iterable<SubscribedGadgetFeed> getAll()
          Returns the feeds that have been subscribed to
 void remove(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

add

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

Specified by:
add in interface SubscribedGadgetFeedStore
Parameters:
feed - feed information to store

contains

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

Specified by:
contains in interface SubscribedGadgetFeedStore
Parameters:
feedId - ID of the feed to check for existence

get

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

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

getAll

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

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

remove

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

Specified by:
remove in interface SubscribedGadgetFeedStore


Copyright © 2011 Atlassian. All Rights Reserved.