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 FieldConfigPersister
public FieldConfig createWithDefaultValues(ConfigurableField field)
createWithDefaultValues
in interface FieldConfigPersister
public FieldConfig update(FieldConfig config)
update
in interface FieldConfigPersister
public void remove(FieldConfig config)
FieldConfigPersister
FieldConfig
and all associated additional data.remove
in interface FieldConfigPersister
config
- the fieldConfig to remove.public Collection<FieldConfig> getConfigsExclusiveToConfigScheme(Long fieldConfigSchemeId)
FieldConfigPersister
FieldConfig
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 FieldConfigPersister
fieldConfigSchemeId
- the id of the field config schemeCollection
of FieldConfig objectspublic FieldConfig getFieldConfig(Long configId)
getFieldConfig
in interface FieldConfigPersister
public FieldConfig getFieldConfig(Long configId, ConfigurableField field)
getFieldConfig
in interface FieldConfigPersister
public List getConfigForField(ConfigurableField field)
getConfigForField
in interface FieldConfigPersister
Copyright © 2002-2024 Atlassian. All Rights Reserved.