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

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

public class CachedGenericConfigManager
extends Object
implements GenericConfigManager, JiraCachedManager


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)
           
 
Method Summary
 void create(String dataType, String key, Object obj)
          Stores a new entry for the config manager.
 long getCacheSize()
           
 void refreshCache()
           
 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)
Method Detail

create

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

Specified by:
update in interface GenericConfigManager

retrieve

public Object retrieve(String dataType,
                       String key)
Description copied from interface: GenericConfigManager
Retrieves a particular entry.

Specified by:
retrieve in interface GenericConfigManager
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

getCacheSize

public long getCacheSize()
Specified by:
getCacheSize in interface JiraCachedManager

refreshCache

public void refreshCache()
Specified by:
refreshCache in interface JiraCachedManager


Copyright © 2002-2008 Atlassian. All Rights Reserved.