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
  • Constructor Details

    • CachedGenericConfigManager

      public CachedGenericConfigManager(GenericConfigManager delegate, com.atlassian.cache.CacheManager cacheManager)
  • Method Details

    • afterInstantiation

      public void afterInstantiation() throws Exception
      Description copied from interface: InitializingComponent
      Called 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:
      afterInstantiation in interface InitializingComponent
      Throws:
      Exception
    • onClearCache

      @EventListener public void onClearCache(ClearCacheEvent event)
    • onCustomFieldDefaultValueFKChangedEvent

      @EventListener public void onCustomFieldDefaultValueFKChangedEvent(CustomFieldDefaultValueFKChangedEvent event)
    • onCustomFieldDefaultValueChangedEvent

      @EventListener public void onCustomFieldDefaultValueChangedEvent(CustomFieldDefaultValueChangedEvent event)
    • create

      public void create(String dataType, String key, @Nullable Object obj)
      Description copied from interface: GenericConfigManager
      Stores a new entry for the config manager. For example a customfield may have a default value.
      Specified by:
      create in interface GenericConfigManager
      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

      public void update(String dataType, String key, @Nullable Object obj)
      Description copied from interface: GenericConfigManager
      Updates an entry.
      Specified by:
      update in interface GenericConfigManager
      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

      public Object retrieve(String dataType, String key)
      Description copied from interface: GenericConfigManager
      Retrieves a particular entry.
      Specified by:
      retrieve in interface GenericConfigManager
      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

      public void remove(String dataType, String key)
      Description copied from interface: GenericConfigManager
      Removes a generic config value.
      Specified by:
      remove in interface GenericConfigManager
      Parameters:
      dataType - The datatype for which to store the generic config (e.g.: DefaultValue)
      key - A key that identifies the element (e.g.: 10000)