public class FieldConfigPersisterImpl extends Object implements FieldConfigPersister
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_DESCRIPTION |
static String |
ENTITY_FIELD |
static String |
ENTITY_ID |
static String |
ENTITY_NAME |
ENTITY_LONG_TEXT_LENGTH| Constructor and Description |
|---|
FieldConfigPersisterImpl(OfBizDelegator delegator,
com.atlassian.cache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
FieldConfig |
create(FieldConfig config,
List<FieldConfigItemType> configurationItemTypes) |
FieldConfig |
createWithDefaultValues(ConfigurableField field) |
List |
getConfigForField(ConfigurableField field) |
Collection<FieldConfig> |
getConfigsExclusiveToConfigScheme(Long fieldConfigSchemeId)
Gets the
FieldConfig objects that are only associated to the specified FieldConfigScheme. |
FieldConfig |
getFieldConfig(Long configId) |
FieldConfig |
getFieldConfig(Long configId,
ConfigurableField field) |
void |
onClearCache(ClearCacheEvent event) |
void |
remove(FieldConfig config)
Remove a
FieldConfig and all associated additional data. |
FieldConfig |
update(FieldConfig config) |
public static final String ENTITY_ID
public static final String ENTITY_NAME
public static final String ENTITY_DESCRIPTION
public static final String ENTITY_FIELD
public FieldConfigPersisterImpl(OfBizDelegator delegator, com.atlassian.cache.CacheManager cacheManager)
@EventListener public void onClearCache(ClearCacheEvent event)
public FieldConfig create(FieldConfig config, List<FieldConfigItemType> configurationItemTypes)
create in interface FieldConfigPersisterpublic FieldConfig createWithDefaultValues(ConfigurableField field)
createWithDefaultValues in interface FieldConfigPersisterpublic FieldConfig update(FieldConfig config)
update in interface FieldConfigPersisterpublic void remove(FieldConfig config)
FieldConfigPersisterFieldConfig and all associated additional data.remove in interface FieldConfigPersisterconfig - the fieldConfig to remove.public Collection<FieldConfig> getConfigsExclusiveToConfigScheme(Long fieldConfigSchemeId)
FieldConfigPersisterFieldConfig objects that are only associated to the specified FieldConfigScheme. In theory, a FieldConfig
should only ever be associated to one FieldConfigScheme, but the database schema allows sharing of configs between schemes.
When FieldConfig objects are removed, their associated OptionsSets and GenericConfigurations are also removed. Note that the
mapping from FieldConfig to FieldConfigScheme in BackupOverviewBuilderImpl.FieldConfigSchemeIssueType is not removed until a
FieldConfigScheme is removed.
getConfigsExclusiveToConfigScheme in interface FieldConfigPersisterfieldConfigSchemeId - the id of the field config schemeCollection of FieldConfig objectspublic FieldConfig getFieldConfig(Long configId)
getFieldConfig in interface FieldConfigPersisterpublic FieldConfig getFieldConfig(Long configId, ConfigurableField field)
getFieldConfig in interface FieldConfigPersisterpublic List getConfigForField(ConfigurableField field)
getConfigForField in interface FieldConfigPersisterCopyright © 2002-2017 Atlassian. All Rights Reserved.