Class ValuesGeneratorObjectConfigurationProperty

java.lang.Object
com.atlassian.configurable.ObjectConfigurationPropertyImpl
com.atlassian.configurable.ValuesGeneratorObjectConfigurationProperty
All Implemented Interfaces:
ObjectConfigurationProperty, Map

public class ValuesGeneratorObjectConfigurationProperty extends ObjectConfigurationPropertyImpl
Represents a property which gets its values derived from a ValuesGenerator implementation.
  • 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 name
      description - Property description
      defaultValue - Default value
      type - 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 name
      description - Property description
      defaultValue - Default value
      type - 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
      classLoader - ClassLoader used to load the valueGeneratorClass
  • Method Details

    • getInternalValues

      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.
      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