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

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

public class ExternalGadgetSpecIdGeneratorImpl
extends Object
implements ExternalGadgetSpecIdGenerator

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
ExternalGadgetSpecIdGeneratorImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory)
          Constructor.
 
Method Summary
 com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId newExternalGadgetSpecId()
          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

ExternalGadgetSpecIdGeneratorImpl

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

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

newExternalGadgetSpecId

public com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId newExternalGadgetSpecId()
Description copied from interface: ExternalGadgetSpecIdGenerator
Creates and returns a new globally unique ID for an ExternalGadgetSpec.

Specified by:
newExternalGadgetSpecId in interface ExternalGadgetSpecIdGenerator
Returns:
the new unique ID


Copyright © 2003–2015 Atlassian. All rights reserved.