|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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,
com.atlassian.event.api.EventPublisher eventPublisher)
|
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)
|
boolean |
containsFeed(String feedId)
Returns true if there is a subscribed feed with the given ID, false otherwise. |
Iterable<URI> |
entries()
|
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, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public boolean contains(URI gadgetSpecUri)
contains
in interface com.atlassian.gadgets.GadgetSpecProvider
public Iterable<URI> entries()
entries
in interface com.atlassian.gadgets.GadgetSpecProvider
public GadgetFeedsSpecProvider.FeedSpecProvider addFeed(URI feedUri)
feedUri
- absolute URI of the gadget spec feed
GadgetFeedParsingException
NonAtomGadgetSpecFeedException
public 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 |