|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.configurable.ObjectConfigurationImpl
public class ObjectConfigurationImpl
| Constructor Summary | |
|---|---|
ObjectConfigurationImpl(Map<String,ObjectConfigurationProperty> configProperties,
ObjectDescriptor od)
Creates a new ObjectConfigurationImpl object. |
|
| Method Summary | |
|---|---|
boolean |
allFieldsHidden()
Determines if there are any non-hidden fields. |
String |
getDescription(Map params)
The Description of this instance of an Object Configuration |
String[] |
getEnabledFieldKeys()
The enabled property keys for this configuration. |
String |
getFieldDefault(String key)
Retrieves the default value for property with specified key |
String |
getFieldDescription(String key)
Retrieves the description of a property with the specified key |
String[] |
getFieldKeys()
All the property keys for this configuration |
String |
getFieldName(String key)
Retrieves the name of a property with the specified key |
int |
getFieldType(String key)
Retrieves the type of the property with the specified key |
Map |
getFieldValues(String key)
Retrieves a map of available values for property with the specified key. |
Map |
getFieldValuesHtmlEncoded(String key)
Retrieves a map of available values for property with the specified key. |
void |
init(Map params)
Initialises the object with some parameters |
boolean |
isEnabled(String key)
Is a particular property enabled at the moment - may be a runtime check. |
boolean |
isI18NValues(String key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectConfigurationImpl(Map<String,ObjectConfigurationProperty> configProperties,
ObjectDescriptor od)
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 Detail |
|---|
public void init(Map params)
init in interface ObjectConfigurationparams - Map of initialisation params
public String getFieldName(String key)
throws ObjectConfigurationException
getFieldName in interface ObjectConfigurationkey - Key of the property
ObjectConfigurationException
public String getFieldDescription(String key)
throws ObjectConfigurationException
getFieldDescription in interface ObjectConfigurationkey - Key of the property
ObjectConfigurationException
public String getFieldDefault(String key)
throws ObjectConfigurationException
getFieldDefault in interface ObjectConfigurationkey - Key of the property
ObjectConfigurationException
public int getFieldType(String key)
throws ObjectConfigurationException
getFieldType in interface ObjectConfigurationkey - Key of the property
ObjectConfigurationException
public Map getFieldValues(String key)
throws ObjectConfigurationException
getFieldValues in interface ObjectConfigurationkey - Key of the property
ObjectConfigurationException
public Map getFieldValuesHtmlEncoded(String key)
throws ObjectConfigurationException
getFieldValuesHtmlEncoded in interface ObjectConfigurationkey -
ObjectConfigurationExceptionpublic String[] getFieldKeys()
getFieldKeys in interface ObjectConfigurationpublic String[] getEnabledFieldKeys()
ObjectConfiguration
getEnabledFieldKeys in interface ObjectConfigurationpublic boolean isEnabled(String key)
ObjectConfiguration
isEnabled in interface ObjectConfigurationkey - the property's key.
public String getDescription(Map params)
getDescription in interface ObjectConfigurationparams - Params used to derive
public boolean allFieldsHidden()
ObjectConfiguration
allFieldsHidden in interface ObjectConfigurationpublic boolean isI18NValues(String key)
isI18NValues in interface ObjectConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||