com.atlassian.jira.issue.customfields.manager
Class CachedGenericConfigManager

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.manager.CachedGenericConfigManager
All Implemented Interfaces:
GenericConfigManager

public class CachedGenericConfigManager
extends Object
implements GenericConfigManager


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
CachedGenericConfigManager(GenericConfigManager delegate, com.atlassian.cache.CacheManager cacheManager)
           
 
Method Summary
 void create(String dataType, String key, Object obj)
          Stores a new entry for the config manager.
 void onClearCache(ClearCacheEvent 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedGenericConfigManager

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

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent 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)


Copyright © 2002-2014 Atlassian. All Rights Reserved.