|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gadgets.directory.internal.GadgetFeedsSpecProvider
public class GadgetFeedsSpecProvider
| Nested Class Summary | |
|---|---|
static class |
GadgetFeedsSpecProvider.FeedSpecProvider
|
| Constructor Summary | |
|---|---|
GadgetFeedsSpecProvider(org.codehaus.httpcache4j.cache.HTTPCache http,
SubscribedGadgetFeedStore store,
TransactionRunner transactionRunner)
|
|
| Method Summary | |
|---|---|
GadgetFeedsSpecProvider.FeedSpecProvider |
addFeed(URI feedUri)
Add a new gadget feed to the list of feeds to get gadget specs from. |
boolean |
contains(URI gadgetSpecUri)
Returns true if the URI is in the store, false otherwise. |
boolean |
containsFeed(String feedId)
Returns true if there is a subscribed feed with the given ID, false otherwise. |
Iterable<URI> |
entries()
Returns all the gadget URIs contained by this store. |
GadgetFeedsSpecProvider.FeedSpecProvider |
getFeedProvider(String feedId)
Returns the feed provider for the subscribed feed if it exists, null otherwise. |
Iterable<GadgetFeedsSpecProvider.FeedSpecProvider> |
getFeedProviders()
|
Iterable<SubscribedGadgetFeed> |
getFeeds()
Returns the feeds that have been subscribed to. |
void |
removeFeed(String feedId)
Remove a feed from the list of feeds subscribed to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GadgetFeedsSpecProvider(org.codehaus.httpcache4j.cache.HTTPCache http,
SubscribedGadgetFeedStore store,
TransactionRunner transactionRunner)
| Method Detail |
|---|
public boolean contains(URI gadgetSpecUri)
GadgetSpecProvidertrue if the URI is in the store, false otherwise.
contains in interface GadgetSpecProvidergadgetSpecUri - URI to check is in the store
true if the URI is in the store, false otherwisepublic Iterable<URI> entries()
GadgetSpecProvider
entries in interface GadgetSpecProviderpublic GadgetFeedsSpecProvider.FeedSpecProvider addFeed(URI feedUri)
feedUri - absolute URI of the gadget spec feed
GadgetFeedParsingException
NonAtomGadgetSpecFeedExceptionpublic Iterable<SubscribedGadgetFeed> getFeeds()
public boolean containsFeed(String feedId)
true if there is a subscribed feed with the given ID, false otherwise.
feedId - ID of the feed to check for
true if there is a subscribed feed with the given ID, false otherwisepublic GadgetFeedsSpecProvider.FeedSpecProvider getFeedProvider(String feedId)
null otherwise.
feedId - ID of the feed to get the provider for
null otherwise.public void removeFeed(String feedId)
feedId - URI of the feed to removepublic Iterable<GadgetFeedsSpecProvider.FeedSpecProvider> getFeedProviders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||