public interface PluginSettings
List
and Map
types must contain only String
.
Implementations are only required to support writes of keys upto 100 characters in length
and are expected to throw an exception if the key is longer than 255 characters.
Keys should be kept as short as possible.
Reads and removes must support keys longer than 256 characters.
Instances are assumed to be not threadsafe and mutable.Object get(String key)
key
- The setting key. Cannot be nullIllegalArgumentException
- if the key is null.Object put(String key, Object value)
key
- Setting key. Cannot be null, keys longer than 100 characters are not supported.value
- Setting value. Must be one of String
, List
, Properties
, Map
, or null.
null will remove the item from the settings. If the value is a String
it should not be longer
than 99000 characters long. Values of a type other than String
will be serialized as a
String
which cannot be longer than 99000 characters long.IllegalArgumentException
- if value is not null, String
, List
, Properties
or Map
,
or if the key is null or longer than 255 charactersObject remove(String key)
key
- The setting keyIllegalArgumentException
- if the key is null.Copyright © 2015 Atlassian. All rights reserved.