com.atlassian.jira.issue.customfields.manager.GenericConfigManager |
![]() |
Used to store Generic configuration values (mostly default values for certain fields). Implementations should aim to manage any plain java object. Two implementations of this interface exist in JIRA: An in memory cache (CachedGenericConfigManager) and an implementation responsible for storing the config values in the DB (DefaultGenericConfigManager). For DB persistence, objects are serialized to XML.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ENTITY_DATA_KEY | ||||||||||
String | ENTITY_DATA_TYPE | ||||||||||
String | ENTITY_ID | ||||||||||
String | ENTITY_TABLE_NAME | ||||||||||
String | ENTITY_XML_VALUE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Stores a new entry for the config manager.
| |||||||||||
Removes a generic config value.
| |||||||||||
Retrieves a particular entry.
| |||||||||||
Updates an entry.
|
Stores a new entry for the config manager. For example a customfield may have a default value.
dataType | The datatype for which to store the generic config (e.g.: DefaultValue) |
---|---|
key | A key that identifies the element (e.g.: 10000) |
obj | The actual object to store. |
Removes a generic config value.
dataType | The datatype for which to store the generic config (e.g.: DefaultValue) |
---|---|
key | A key that identifies the element (e.g.: 10000) |
Retrieves a particular entry.
dataType | The datatype for which to store the generic config (e.g.: DefaultValue) |
---|---|
key | A key that identifies the element (e.g.: 10000) |
Updates an entry.
dataType | The datatype for which to store the generic config (e.g.: DefaultValue) |
---|---|
key | A key that identifies the element (e.g.: 10000) |
obj | The actual object to store. |