com.atlassian.sal.testresources.pluginsettings
Class MockPluginSettingsFactory
java.lang.Object
com.atlassian.sal.testresources.pluginsettings.MockPluginSettingsFactory
- All Implemented Interfaces:
- PluginSettingsFactory
public class MockPluginSettingsFactory
- extends Object
- implements PluginSettingsFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockPluginSettingsFactory
public MockPluginSettingsFactory()
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 © 2015 Atlassian. All rights reserved.