com.atlassian.confluence.plugins.gadgets.refimpl
Class SubscribedGadgetFeedIdGeneratorImpl

java.lang.Object
  extended by com.atlassian.confluence.plugins.gadgets.refimpl.SubscribedGadgetFeedIdGeneratorImpl
All Implemented Interfaces:
SubscribedGadgetFeedIdGenerator

public class SubscribedGadgetFeedIdGeneratorImpl
extends Object
implements SubscribedGadgetFeedIdGenerator

Reference implementation of ExternalGadgetSpecIdGenerator. This implementation stores the next available ID in the plugin settings, incrementing and storing the new value on each call.


Constructor Summary
SubscribedGadgetFeedIdGeneratorImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory)
          Constructor.
 
Method Summary
 String newSubscribedGadgetFeedId()
          Creates and returns a new globally unique ID for an ExternalGadgetSpec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscribedGadgetFeedIdGeneratorImpl

public SubscribedGadgetFeedIdGeneratorImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory)
Constructor.

Parameters:
pluginSettingsFactory - the PluginSettings provider to use for storing the keys
Method Detail

newSubscribedGadgetFeedId

public String newSubscribedGadgetFeedId()
Description copied from interface: SubscribedGadgetFeedIdGenerator
Creates and returns a new globally unique ID for an ExternalGadgetSpec.

Specified by:
newSubscribedGadgetFeedId in interface SubscribedGadgetFeedIdGenerator
Returns:
the new unique ID


Copyright © 2003–2015 Atlassian. All rights reserved.