public interface FieldConfigPersister
Modifier and Type | Field and Description |
---|---|
static int |
ENTITY_LONG_TEXT_LENGTH |
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 |
remove(FieldConfig fieldConfig)
Remove a
FieldConfig and all associated additional data. |
FieldConfig |
update(FieldConfig config) |
static final int ENTITY_LONG_TEXT_LENGTH
FieldConfig create(FieldConfig config, List<FieldConfigItemType> configurationItemTypes)
List getConfigForField(ConfigurableField field)
FieldConfig getFieldConfig(Long configId)
FieldConfig update(FieldConfig config)
void remove(FieldConfig fieldConfig)
FieldConfig
and all associated additional data.fieldConfig
- the fieldConfig to remove.Collection<FieldConfig> getConfigsExclusiveToConfigScheme(Long fieldConfigSchemeId)
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.
fieldConfigSchemeId
- the id of the field config schemeCollection
of FieldConfig objectsFieldConfig createWithDefaultValues(ConfigurableField field)
FieldConfig getFieldConfig(Long configId, ConfigurableField field)
Copyright © 2002-2019 Atlassian. All Rights Reserved.