Package com.atlassian.configurable
Class ValuesGeneratorObjectConfigurationProperty
java.lang.Object
com.atlassian.configurable.ObjectConfigurationPropertyImpl
com.atlassian.configurable.ValuesGeneratorObjectConfigurationProperty
- All Implemented Interfaces:
ObjectConfigurationProperty
,Map
Represents a property which gets its values derived from a
ValuesGenerator
implementation.-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionValuesGeneratorObjectConfigurationProperty
(String name, String description, String defaultValue, int type, String typeName, String valueGeneratorClass, String enabledConditionClass) Creates a new ValuesGeneratorObjectConfigurationProperty object.ValuesGeneratorObjectConfigurationProperty
(String name, String description, String defaultValue, int type, String typeName, String valueGeneratorClass, String enabledConditionClass, ClassLoader classLoader) Creates a new ValuesGeneratorObjectConfigurationProperty object. -
Method Summary
Modifier and TypeMethodDescriptionprotected Map
getInternalValues
(Map userParams) Overides method in super class that uses a map stored in the object to retrieve choices.Methods inherited from class com.atlassian.configurable.ObjectConfigurationPropertyImpl
clear, containsKey, containsValue, entrySet, get, getCascadeFrom, getDefault, getDescription, getMutableInternalValues, getName, getType, getTypeName, init, isEmpty, isEnabled, isI18nValues, keySet, put, putAll, remove, setCascadeFrom, setI18nValues, size, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ValuesGeneratorObjectConfigurationProperty
public ValuesGeneratorObjectConfigurationProperty(String name, String description, String defaultValue, int type, String typeName, String valueGeneratorClass, String enabledConditionClass) Creates a new ValuesGeneratorObjectConfigurationProperty object.- Parameters:
name
- Property namedescription
- Property descriptiondefaultValue
- Default valuetype
- Field type, e.g. string, long ....typeName
- The name of the field type, e.g. 'text'valueGeneratorClass
- Instance of ValuesGenerator used to retrieve a list of available choices
-
ValuesGeneratorObjectConfigurationProperty
public ValuesGeneratorObjectConfigurationProperty(String name, String description, String defaultValue, int type, String typeName, String valueGeneratorClass, String enabledConditionClass, ClassLoader classLoader) Creates a new ValuesGeneratorObjectConfigurationProperty object.- Parameters:
name
- Property namedescription
- Property descriptiondefaultValue
- Default valuetype
- Field type, e.g. string, long ....typeName
- The name of the field type, e.g. 'text'valueGeneratorClass
- Instance of ValuesGenerator used to retrieve a list of available choicesclassLoader
- ClassLoader used to load the valueGeneratorClass
-
-
Method Details
-
getInternalValues
Overides method in super class that uses a map stored in the object to retrieve choices. This function uses aValuesGenerator
class to retrieve the values.- Overrides:
getInternalValues
in classObjectConfigurationPropertyImpl
- Parameters:
userParams
- used to retrieve a cut down list of choices from theValuesGenerator
class- Returns:
- Map of choices dependant on this users parameters. If null is returned from the ValuesGenerator an empty
list is returned, which is consistent with the behaviour of
ObjectConfigurationPropertyImpl
-