public class

ValuesGeneratorObjectConfigurationProperty

extends ObjectConfigurationPropertyImpl
java.lang.Object
   ↳ com.atlassian.configurable.ObjectConfigurationPropertyImpl
     ↳ com.atlassian.configurable.ValuesGeneratorObjectConfigurationProperty

Class Overview

Represents a property which gets its values derived from a ValuesGenerator implementation.

Summary

Public Constructors
ValuesGeneratorObjectConfigurationProperty(String name, String description, String defaultValue, int type, String valueGeneratorClass, String enabledConditionClass)
Creates a new ValuesGeneratorObjectConfigurationProperty object.
ValuesGeneratorObjectConfigurationProperty(String name, String description, String defaultValue, int type, String valueGeneratorClass, String enabledConditionClass, ClassLoader classLoader)
Creates a new ValuesGeneratorObjectConfigurationProperty object.
Protected Methods
Map getInternalValues(Map userParams)
Overides method in super class that uses a map stored in the object to retrieve choices.
[Expand]
Inherited Methods
From class com.atlassian.configurable.ObjectConfigurationPropertyImpl
From class java.lang.Object
From interface com.atlassian.configurable.ObjectConfigurationProperty
From interface java.util.Map

Public Constructors

public ValuesGeneratorObjectConfigurationProperty (String name, String description, String defaultValue, int type, String valueGeneratorClass, String enabledConditionClass)

Creates a new ValuesGeneratorObjectConfigurationProperty object.

Parameters
name Property name
description Property description
defaultValue Default value
type Field type, e.g. string, long ....
valueGeneratorClass Instance of ValuesGenerator used to retrieve a list of available choices

public ValuesGeneratorObjectConfigurationProperty (String name, String description, String defaultValue, int type, String valueGeneratorClass, String enabledConditionClass, ClassLoader classLoader)

Creates a new ValuesGeneratorObjectConfigurationProperty object.

Parameters
name Property name
description Property description
defaultValue Default value
type Field type, e.g. string, long ....
valueGeneratorClass Instance of ValuesGenerator used to retrieve a list of available choices
classLoader ClassLoader used to load the valueGeneratorClass

Protected Methods

protected Map getInternalValues (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.

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