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

java.lang.Object
  extended by com.atlassian.confluence.plugins.gadgets.refimpl.PluginSettingsExternalGadgetSpecStore
All Implemented Interfaces:
com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore

public class PluginSettingsExternalGadgetSpecStore
extends Object
implements com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore

This implementation stores ExternalGadgetSpecs to the SAL PluginSettings API.


Constructor Summary
PluginSettingsExternalGadgetSpecStore(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory, ExternalGadgetSpecIdGenerator gadgetSpecIdGenerator)
           
 
Method Summary
 com.atlassian.gadgets.directory.spi.ExternalGadgetSpec add(URI gadgetSpecUri)
           
 boolean contains(URI gadgetSpecUri)
           
 Collection<com.atlassian.gadgets.directory.spi.ExternalGadgetSpec> entries()
           
 void remove(com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId externalGadgetSpecId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginSettingsExternalGadgetSpecStore

public PluginSettingsExternalGadgetSpecStore(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory,
                                             ExternalGadgetSpecIdGenerator gadgetSpecIdGenerator)
Method Detail

entries

public Collection<com.atlassian.gadgets.directory.spi.ExternalGadgetSpec> entries()
Specified by:
entries in interface com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore

add

public com.atlassian.gadgets.directory.spi.ExternalGadgetSpec add(URI gadgetSpecUri)
                                                           throws com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStoreException
Specified by:
add in interface com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore
Throws:
com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStoreException

remove

public void remove(com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId externalGadgetSpecId)
Specified by:
remove in interface com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore

contains

public boolean contains(URI gadgetSpecUri)
Specified by:
contains in interface com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore


Copyright © 2003-2012 Atlassian. All Rights Reserved.