public class

DefaultGenericConfigManager

extends Object
implements GenericConfigManager
java.lang.Object
   ↳ com.atlassian.jira.issue.customfields.manager.DefaultGenericConfigManager

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.issue.customfields.manager.GenericConfigManager
Public Constructors
DefaultGenericConfigManager(OfBizDelegator delegator)
Public Methods
void create(String dataType, String key, Object obj)
Stores a new entry for the config manager.
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.manager.GenericConfigManager

Public Constructors

public DefaultGenericConfigManager (OfBizDelegator delegator)

Public Methods

public void create (String dataType, String key, Object obj)

Stores a new entry for the config manager. For example a customfield may have a default value.

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.

public void remove (String dataType, String key)

Removes a generic config value.

Parameters
dataType The datatype for which to store the generic config (e.g.: DefaultValue)
key A key that identifies the element (e.g.: 10000)

public Object retrieve (String dataType, String key)

Retrieves a particular entry.

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.

public void update (String dataType, String key, Object obj)

Updates an entry.

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.