Class CachedGenericConfigManager
java.lang.Object
com.atlassian.jira.issue.customfields.manager.CachedGenericConfigManager
- All Implemented Interfaces:
InitializingComponent,GenericConfigManager
public class CachedGenericConfigManager
extends Object
implements GenericConfigManager, InitializingComponent
-
Field Summary
Fields inherited from interface com.atlassian.jira.issue.customfields.manager.GenericConfigManager
ENTITY_DATA_KEY, ENTITY_DATA_TYPE, ENTITY_ID, ENTITY_TABLE_NAME, ENTITY_XML_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionCachedGenericConfigManager(GenericConfigManager delegate, com.atlassian.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after all the beans are constructed and the ApplicationContext is fully populated.voidStores a new entry for the config manager.voidonClearCache(ClearCacheEvent event) voidvoidvoidRemoves a generic config value.Retrieves a particular entry.voidUpdates an entry.
-
Constructor Details
-
CachedGenericConfigManager
public CachedGenericConfigManager(GenericConfigManager delegate, com.atlassian.cache.CacheManager cacheManager)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponentCalled after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
afterInstantiationin interfaceInitializingComponent- Throws:
Exception
-
onClearCache
-
onCustomFieldDefaultValueFKChangedEvent
@EventListener public void onCustomFieldDefaultValueFKChangedEvent(CustomFieldDefaultValueFKChangedEvent event) -
onCustomFieldDefaultValueChangedEvent
@EventListener public void onCustomFieldDefaultValueChangedEvent(CustomFieldDefaultValueChangedEvent event) -
create
Description copied from interface:GenericConfigManagerStores a new entry for the config manager. For example a customfield may have a default value.- Specified by:
createin interfaceGenericConfigManager- Parameters:
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.
-
update
Description copied from interface:GenericConfigManagerUpdates an entry.- Specified by:
updatein interfaceGenericConfigManager- Parameters:
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.
-
retrieve
Description copied from interface:GenericConfigManagerRetrieves a particular entry.- Specified by:
retrievein interfaceGenericConfigManager- Parameters:
dataType- The datatype for which to store the generic config (e.g.: DefaultValue)key- A key that identifies the element (e.g.: 10000)- Returns:
- The entry, or null if it doesn't exist.
-
remove
Description copied from interface:GenericConfigManagerRemoves a generic config value.- Specified by:
removein interfaceGenericConfigManager- Parameters:
dataType- The datatype for which to store the generic config (e.g.: DefaultValue)key- A key that identifies the element (e.g.: 10000)
-