com.atlassian.sal.testresources.pluginsettings
Class MockPluginSettingsFactory

java.lang.Object
  extended by com.atlassian.sal.testresources.pluginsettings.MockPluginSettingsFactory
All Implemented Interfaces:
PluginSettingsFactory

public class MockPluginSettingsFactory
extends Object
implements PluginSettingsFactory


Constructor Summary
MockPluginSettingsFactory()
           
 
Method Summary
 PluginSettings createGlobalSettings()
          Gets all global settings.
 PluginSettings createSettingsForKey(String key)
          Gets all settings for a key, for which valid values are application-specific (Confluence maps this to space keys, JIRA to project keys, and FishEye to repository keys, for example).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockPluginSettingsFactory

public MockPluginSettingsFactory()
Method Detail

createSettingsForKey

public PluginSettings createSettingsForKey(String key)
Description copied from interface: PluginSettingsFactory
Gets all settings for a key, for which valid values are application-specific (Confluence maps this to space keys, JIRA to project keys, and FishEye to repository keys, for example). To store settings for other keys, createGlobalSettings should be used, and the keys should be sensibly namespaced by the plugin.

Specified by:
createSettingsForKey in interface PluginSettingsFactory
Parameters:
key - the key, can be null to retrieve global settings
Returns:
The settings

createGlobalSettings

public PluginSettings createGlobalSettings()
Description copied from interface: PluginSettingsFactory
Gets all global settings. This is useful to store settings against arbitrary keys. When storing settings against arbitrary keys, plugins are advised to namespace the key with something unique to the plugin (for example "com.example.plugin:key-I-would-like-to-use" ) to avoid clashes with other keys.

Specified by:
createGlobalSettings in interface PluginSettingsFactory
Returns:
Global settings


Copyright © 2010 Atlassian. All Rights Reserved.