com.atlassian.gadgets.directory.internal
Interface SubscribedGadgetFeedStore

All Known Implementing Classes:
SubscribedGadgetFeedStoreImpl

public interface SubscribedGadgetFeedStore

Provides persistent storage of the base URIs of external applications whose gadgets appear in the directory.


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
 

Method Detail

add

void add(SubscribedGadgetFeed feed)
Add the gadget feed to those that are subscribed to.

Parameters:
feed - feed information to store

contains

boolean contains(String feedId)
Returns true if a feed with the given ID has been subscribed to, false otherwise.

Parameters:
feedId - ID of the feed to check for existence

get

SubscribedGadgetFeed get(String feedId)
Returns the feed with the given ID, if it exists. null otherwise.

Parameters:
feedId - ID of the feed to retrieve
Returns:
feed with the given ID, if it exists, null otherwise

getAll

Iterable<SubscribedGadgetFeed> getAll()
Returns the feeds that have been subscribed to

Returns:
feeds that have been subscribed to

remove

void remove(String feedId)
Remove the subscribed feed

Parameters:
feedUri - URI of the feed to remove


Copyright © 2011 Atlassian. All Rights Reserved.