|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface 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.
Field Summary | |
---|---|
static String |
ENTITY_DATA_KEY
|
static String |
ENTITY_DATA_TYPE
|
static String |
ENTITY_ID
|
static String |
ENTITY_TABLE_NAME
|
static String |
ENTITY_XML_VALUE
|
Method Summary | |
---|---|
void |
create(String dataType,
String key,
Object obj)
Stores a new entry for the config manager. |
void |
remove(String dataType,
String key)
Removes a generic config value. |
Object |
retrieve(String dataType,
String key)
Retrieves a particular entry. |
void |
update(String dataType,
String key,
Object obj)
Updates an entry. |
Field Detail |
---|
static final String ENTITY_TABLE_NAME
static final String ENTITY_ID
static final String ENTITY_DATA_TYPE
static final String ENTITY_DATA_KEY
static final String ENTITY_XML_VALUE
Method Detail |
---|
void create(String dataType, String key, @Nullable Object obj)
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.void update(String dataType, String key, @Nullable Object obj)
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.Object retrieve(String dataType, String key)
dataType
- The datatype for which to store the generic config (e.g.: DefaultValue)key
- A key that identifies the element (e.g.: 10000)
void remove(String dataType, String key)
dataType
- The datatype for which to store the generic config (e.g.: DefaultValue)key
- A key that identifies the element (e.g.: 10000)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |