public class

SalPropertySet

extends Object
implements PropertySet
java.lang.Object
   ↳ com.atlassian.applinks.core.property.SalPropertySet

Class Overview

Default PropertySet implementation that delegates to SAL

Summary

Public Constructors
SalPropertySet(PluginSettings pluginSettings, String keyPrefix)
Public Methods
Object getProperty(String s)
Gets a setting value.
Object putProperty(String s, Object o)
Puts a setting value.
Object removeProperty(String s)
Removes a setting value
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.applinks.api.PropertySet

Public Constructors

public SalPropertySet (PluginSettings pluginSettings, String keyPrefix)

Public Methods

public Object getProperty (String s)

Gets a setting value.

Parameters
s The setting key. Cannot be null
Returns
  • The setting value. May be null

public Object putProperty (String s, Object o)

Puts a setting value. Note that the namespace for this key is shared between all applinks consumers. If you don't want a different plugin to override a property you have set, ensure that you use a unique key. A good way to do this is to prefix the key with your plugin key, which is guaranteed to be globally unique.

Parameters
s Setting key. Cannot be null
o Setting value. Must be one of String, List, Properties or null. a null value is equivalent to removeProperty(String)
Returns
  • The setting value that was over ridden. Null if none existed.

public Object removeProperty (String s)

Removes a setting value

Parameters
s The setting key
Returns
  • The setting value that was removed. Null if nothing was removed.