com.atlassian.configurable
Class ValuesGeneratorObjectConfigurationProperty
java.lang.Object
com.atlassian.configurable.ObjectConfigurationPropertyImpl
com.atlassian.configurable.ValuesGeneratorObjectConfigurationProperty
- All Implemented Interfaces:
- ObjectConfigurationProperty, java.util.Map
public class ValuesGeneratorObjectConfigurationProperty
- extends ObjectConfigurationPropertyImpl
Represents a property which gets its values derived from a ValuesGenerator
implementation.
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Constructor Summary |
ValuesGeneratorObjectConfigurationProperty(java.lang.String name,
java.lang.String description,
java.lang.String defaultValue,
int type,
java.lang.String valueGeneratorClass,
java.lang.String enabledConditionClass)
Creates a new ValuesGeneratorObjectConfigurationProperty object. |
ValuesGeneratorObjectConfigurationProperty(java.lang.String name,
java.lang.String description,
java.lang.String defaultValue,
int type,
java.lang.String valueGeneratorClass,
java.lang.String enabledConditionClass,
java.lang.ClassLoader classLoader)
Creates a new ValuesGeneratorObjectConfigurationProperty object. |
Method Summary |
protected java.util.Map |
getInternalValues(java.util.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, 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 |
equals, hashCode |
ValuesGeneratorObjectConfigurationProperty
public ValuesGeneratorObjectConfigurationProperty(java.lang.String name,
java.lang.String description,
java.lang.String defaultValue,
int type,
java.lang.String valueGeneratorClass,
java.lang.String enabledConditionClass)
- Creates a new ValuesGeneratorObjectConfigurationProperty object.
- Parameters:
name
- Property namedescription
- Property descriptiondefaultValue
- Default valuetype
- Field type, e.g. string, long ....valueGeneratorClass
- Instance of ValuesGenerator used to retrieve a list of available choices
ValuesGeneratorObjectConfigurationProperty
public ValuesGeneratorObjectConfigurationProperty(java.lang.String name,
java.lang.String description,
java.lang.String defaultValue,
int type,
java.lang.String valueGeneratorClass,
java.lang.String enabledConditionClass,
java.lang.ClassLoader classLoader)
- Creates a new ValuesGeneratorObjectConfigurationProperty object.
- Parameters:
name
- Property namedescription
- Property descriptiondefaultValue
- Default valuetype
- Field type, e.g. string, long ....valueGeneratorClass
- Instance of ValuesGenerator used to retrieve a list of available choicesclassLoader
- ClassLoader used to load the valueGeneratorClass
getInternalValues
protected java.util.Map getInternalValues(java.util.Map userParams)
- Overides method in super class that uses a map stored in the object to retrieve choices. This function uses a
ValuesGenerator
class to retrieve the values.
- Overrides:
getInternalValues
in class ObjectConfigurationPropertyImpl
- Parameters:
userParams
- used to retrieve a cut down list of choices from the ValuesGenerator
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
Copyright © 2002-2010 Atlassian. All Rights Reserved.