com.atlassian.confluence.plugins.gadgets.gadgetspecstore
Class DefaultClusterSafeSubscribedGadgetFeedStore

java.lang.Object
  extended by com.atlassian.confluence.plugins.gadgets.gadgetspecstore.DefaultClusterSafeSubscribedGadgetFeedStore
All Implemented Interfaces:
com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore

public class DefaultClusterSafeSubscribedGadgetFeedStore
extends Object
implements com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore

Implementation that delegates all actions but performs mutative actions in the presence of a cluster wide lock.


Constructor Summary
DefaultClusterSafeSubscribedGadgetFeedStore(ClusterManager clusterManager, com.atlassian.bandana.BandanaManager bandanaManager, SubscribedGadgetFeedIdGenerator subscribedGadgetFeedIdGenerator)
           
 
Method Summary
 com.atlassian.gadgets.directory.spi.SubscribedGadgetFeed addFeed(URI feedUri)
           
 boolean containsFeed(String feedId)
           
 Iterable<com.atlassian.gadgets.directory.spi.SubscribedGadgetFeed> getAllFeeds()
           
 com.atlassian.gadgets.directory.spi.SubscribedGadgetFeed getFeed(String feedId)
           
 void removeFeed(String feedId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClusterSafeSubscribedGadgetFeedStore

public DefaultClusterSafeSubscribedGadgetFeedStore(ClusterManager clusterManager,
                                                   com.atlassian.bandana.BandanaManager bandanaManager,
                                                   SubscribedGadgetFeedIdGenerator subscribedGadgetFeedIdGenerator)
Method Detail

addFeed

public com.atlassian.gadgets.directory.spi.SubscribedGadgetFeed addFeed(URI feedUri)
Specified by:
addFeed in interface com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore

removeFeed

public void removeFeed(String feedId)
Specified by:
removeFeed in interface com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore

containsFeed

public boolean containsFeed(String feedId)
Specified by:
containsFeed in interface com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore

getFeed

public com.atlassian.gadgets.directory.spi.SubscribedGadgetFeed getFeed(String feedId)
Specified by:
getFeed in interface com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore

getAllFeeds

public Iterable<com.atlassian.gadgets.directory.spi.SubscribedGadgetFeed> getAllFeeds()
Specified by:
getAllFeeds in interface com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore


Copyright © 2003-2013 Atlassian. All Rights Reserved.