public class CachedGenericConfigManager extends Object implements GenericConfigManager
ENTITY_DATA_KEY, ENTITY_DATA_TYPE, ENTITY_ID, ENTITY_TABLE_NAME, ENTITY_XML_VALUE
Constructor and Description |
---|
CachedGenericConfigManager(GenericConfigManager delegate,
com.atlassian.cache.CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
void |
create(String dataType,
String key,
Object obj)
Stores a new entry for the config manager.
|
void |
onClearCache(ClearCacheEvent event) |
void |
onCustomFieldDefaultValueChangedEvent(CustomFieldDefaultValueChangedEvent event) |
void |
onCustomFieldDefaultValueFKChangedEvent(CustomFieldDefaultValueFKChangedEvent event) |
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.
|
public CachedGenericConfigManager(GenericConfigManager delegate, com.atlassian.cache.CacheManager cacheManager)
@EventListener public void onClearCache(ClearCacheEvent event)
@EventListener public void onCustomFieldDefaultValueFKChangedEvent(CustomFieldDefaultValueFKChangedEvent event)
@EventListener public void onCustomFieldDefaultValueChangedEvent(CustomFieldDefaultValueChangedEvent event)
public void create(String dataType, String key, @Nullable Object obj)
GenericConfigManager
create
in interface GenericConfigManager
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.public void update(String dataType, String key, @Nullable Object obj)
GenericConfigManager
update
in interface GenericConfigManager
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.public Object retrieve(String dataType, String key)
GenericConfigManager
retrieve
in interface GenericConfigManager
dataType
- The datatype for which to store the generic config (e.g.: DefaultValue)key
- A key that identifies the element (e.g.: 10000)public void remove(String dataType, String key)
GenericConfigManager
remove
in interface GenericConfigManager
dataType
- The datatype for which to store the generic config (e.g.: DefaultValue)key
- A key that identifies the element (e.g.: 10000)Copyright © 2002-2023 Atlassian. All Rights Reserved.