Package com.atlassian.configurable
Interface ObjectConfiguration
- All Known Implementing Classes:
ObjectConfigurationImpl
public interface ObjectConfiguration
This interface represents a holder for all the configuration information.
E.g. Its fields and description
- Author:
- Owen Fellows
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if there are any non-hidden fields.getDescription
(Map params) The Description of this instance of an Object ConfigurationString[]
The enabled property keys for this configuration.getFieldDefault
(String key) Retrieves the default value for property with specified keyRetrieves the description of a property with the specified keyString[]
All the property keys for this configuration.getFieldName
(String key) Retrieves the name of a property with the specified keyint
getFieldType
(String key) Retrieves the type of the property with the specified keygetFieldTypeName
(String key) Retrieves the name of the type of the property with the specified keygetFieldValues
(String key) Retrieves a map of available values for property with the specified key.Retrieves a map of available values for property with the specified key.void
Initialises the object with some parametersboolean
Is a particular property enabled at the moment - may be a runtime check.boolean
isI18NValues
(String key)
-
Method Details
-
init
Initialises the object with some parameters- Parameters:
params
- Map of initialisation params
-
getFieldName
Retrieves the name of a property with the specified key- Parameters:
key
- Key of the property- Returns:
- Name of the specified property
- Throws:
ObjectConfigurationException
-
getFieldDescription
Retrieves the description of a property with the specified key- Parameters:
key
- Key of the property- Returns:
- Description of the specified property
- Throws:
ObjectConfigurationException
-
getFieldType
Retrieves the type of the property with the specified key- Parameters:
key
- Key of the property- Returns:
- Type of the specified property
- Throws:
ObjectConfigurationException
-
getFieldTypeName
Retrieves the name of the type of the property with the specified key- Parameters:
key
- Key of the property- Returns:
- Type name of the specified property
- Throws:
ObjectConfigurationException
- Since:
- v7.2.0
-
getFieldDefault
Retrieves the default value for property with specified key- Parameters:
key
- Key of the property- Returns:
- Default value of the specified property
- Throws:
ObjectConfigurationException
-
getFieldValues
Retrieves a map of available values for property with the specified key. e.g select list values- Parameters:
key
- Key of the property- Returns:
- List valid name/value pairs for the specified property
- Throws:
ObjectConfigurationException
-
getFieldValuesHtmlEncoded
Retrieves a map of available values for property with the specified key. e.g select list values. However, keys and values are html encoded in the returned map.- Parameters:
key
-- Returns:
- List valid name/value pairs for the specified property - html encoded
- Throws:
ObjectConfigurationException
-
getFieldKeys
String[] getFieldKeys()All the property keys for this configuration.- Returns:
- Property keys
-
getEnabledFieldKeys
String[] getEnabledFieldKeys()The enabled property keys for this configuration.- Returns:
- Property keys
- Since:
- 28 Aug 2007 for JIRA v3.11
-
isEnabled
Is a particular property enabled at the moment - may be a runtime check.- Parameters:
key
- the property's key.- Returns:
- true if the property is enabled in the current context
- Since:
- 28 Aug 2007 for JIRA v3.11
-
getDescription
The Description of this instance of an Object Configuration- Parameters:
params
- Params used to derive- Returns:
- Description
-
allFieldsHidden
boolean allFieldsHidden()Determines if there are any non-hidden fields.- Returns:
- true if there are no fields or all fields are hidden
-
isI18NValues
-