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