Package com.atlassian.applinks.api
Interface PropertySet
- All Known Subinterfaces:
ApplicationLink,EntityLink
public interface PropertySet
Provides access to settings.
The following types are supported:- java.lang.String
- java.util.List
- java.util.Properties
Instances are assumed to be not threadsafe and mutable.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String key) Gets a setting value.putProperty(String key, Object value) Puts a setting value.removeProperty(String key) Removes a setting value
-
Method Details
-
getProperty
Gets a setting value.- Parameters:
key- The setting key. Cannot be null- Returns:
- The setting value. May be null
-
putProperty
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:
key- Setting key. Cannot be nullvalue- Setting value. Must be one ofString,List,Propertiesor null. a null value is equivalent toremoveProperty(String)- Returns:
- The setting value that was over ridden. Null if none existed.
- Throws:
IllegalArgumentException- if value is notString,List,Propertiesor null.
-
removeProperty
Removes a setting value- Parameters:
key- The setting key- Returns:
- The setting value that was removed. Null if nothing was removed.
-