public class DefaultGenericConfigManager extends Object implements GenericConfigManager
ENTITY_DATA_KEY, ENTITY_DATA_TYPE, ENTITY_ID, ENTITY_TABLE_NAME, ENTITY_XML_VALUE
Constructor and Description |
---|
DefaultGenericConfigManager(OfBizDelegator delegator,
XmlConverter xmlConverter) |
Modifier and Type | Method and Description |
---|---|
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.
|
public DefaultGenericConfigManager(@Nonnull OfBizDelegator delegator, @Nonnull XmlConverter xmlConverter)
public void create(String dataType, String key, @Nullable Object obj)
GenericConfigManager
create
in interface GenericConfigManager
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 update(String dataType, String key, @Nullable Object obj)
GenericConfigManager
update
in interface GenericConfigManager
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 Object retrieve(String dataType, String key)
GenericConfigManager
retrieve
in interface GenericConfigManager
dataType
- The datatype for which to store the generic config (e.g.: DefaultValue)key
- A key that identifies the element (e.g.: 10000)public void remove(String dataType, String key)
GenericConfigManager
remove
in interface GenericConfigManager
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-2024 Atlassian. All Rights Reserved.