Package com.atlassian.configurable
Class ObjectConfigurationImpl
java.lang.Object
com.atlassian.configurable.ObjectConfigurationImpl
- All Implemented Interfaces:
 ObjectConfiguration
- 
Constructor Summary
ConstructorsConstructorDescriptionObjectConfigurationImpl(Map<String, ObjectConfigurationProperty> configProperties, ObjectDescriptor od) Creates a new ObjectConfigurationImpl object. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines 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 configurationgetFieldName(String key) Retrieves the name of a property with the specified keyintgetFieldType(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.voidInitialises the object with some parametersbooleanIs a particular property enabled at the moment - may be a runtime check.booleanisI18NValues(String key)  
- 
Constructor Details
- 
ObjectConfigurationImpl
public ObjectConfigurationImpl(Map<String, ObjectConfigurationProperty> configProperties, ObjectDescriptor od) Creates a new ObjectConfigurationImpl object.- Parameters:
 configProperties- A Map of properties that can be configured for this object e.g. name, description.od- A Class the retrieves the Description of this object based the currently configured properties.
 
 - 
 - 
Method Details
- 
init
Initialises the object with some parameters- Specified by:
 initin interfaceObjectConfiguration- Parameters:
 params- Map of initialisation params
 - 
getFieldName
Retrieves the name of a property with the specified key- Specified by:
 getFieldNamein interfaceObjectConfiguration- 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- Specified by:
 getFieldDescriptionin interfaceObjectConfiguration- Parameters:
 key- Key of the property- Returns:
 - Description of the specified property
 - Throws:
 ObjectConfigurationException
 - 
getFieldDefault
Retrieves the default value for property with specified key- Specified by:
 getFieldDefaultin interfaceObjectConfiguration- Parameters:
 key- Key of the property- Returns:
 - Default value of the specified property
 - Throws:
 ObjectConfigurationException
 - 
getFieldType
Retrieves the type of the property with the specified key- Specified by:
 getFieldTypein interfaceObjectConfiguration- Parameters:
 key- Key of the property- Returns:
 - Type of the specified property
 - Throws:
 ObjectConfigurationException
 - 
getFieldTypeName
Description copied from interface:ObjectConfigurationRetrieves the name of the type of the property with the specified key- Specified by:
 getFieldTypeNamein interfaceObjectConfiguration- Parameters:
 key- Key of the property- Returns:
 - Type name of the specified property
 - Throws:
 ObjectConfigurationException
 - 
getFieldValues
Retrieves a map of available values for property with the specified key. e.g select list values- Specified by:
 getFieldValuesin interfaceObjectConfiguration- 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.- Specified by:
 getFieldValuesHtmlEncodedin interfaceObjectConfiguration- Parameters:
 key-- Returns:
 - List valid name/value pairs for the specified property - html encoded
 - Throws:
 ObjectConfigurationException
 - 
getFieldKeys
All the property keys for this configuration- Specified by:
 getFieldKeysin interfaceObjectConfiguration- Returns:
 - Property keys
 
 - 
getEnabledFieldKeys
Description copied from interface:ObjectConfigurationThe enabled property keys for this configuration.- Specified by:
 getEnabledFieldKeysin interfaceObjectConfiguration- Returns:
 - Property keys
 
 - 
isEnabled
Description copied from interface:ObjectConfigurationIs a particular property enabled at the moment - may be a runtime check.- Specified by:
 isEnabledin interfaceObjectConfiguration- Parameters:
 key- the property's key.- Returns:
 - true if the property is enabled in the current context
 
 - 
getDescription
The Description of this instance of an Object Configuration- Specified by:
 getDescriptionin interfaceObjectConfiguration- Parameters:
 params- Params used to derive- Returns:
 - Description
 
 - 
allFieldsHidden
public boolean allFieldsHidden()Description copied from interface:ObjectConfigurationDetermines if there are any non-hidden fields.- Specified by:
 allFieldsHiddenin interfaceObjectConfiguration- Returns:
 - true if there are no fields or all fields are hidden
 
 - 
isI18NValues
- Specified by:
 isI18NValuesin interfaceObjectConfiguration
 
 -