public interface

FieldConfigPersister

com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersister
Known Indirect Subclasses

Summary

Constants
int ENTITY_LONG_TEXT_LENGTH
Public Methods
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)

Constants

public static final int ENTITY_LONG_TEXT_LENGTH

Constant Value: 254 (0x000000fe)

Public Methods

public FieldConfig create (FieldConfig config, List<FieldConfigItemType> configurationItemTypes)

public FieldConfig createWithDefaultValues (ConfigurableField field)

public List getConfigForField (ConfigurableField field)

public Collection<FieldConfig> getConfigsExclusiveToConfigScheme (Long fieldConfigSchemeId)

Gets the 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.

Parameters
fieldConfigSchemeId the id of the field config scheme
Returns

public FieldConfig getFieldConfig (Long configId)

public FieldConfig getFieldConfig (Long configId, ConfigurableField field)

public void remove (FieldConfig fieldConfig)

Remove a FieldConfig and all associated additional data.

Parameters
fieldConfig the fieldConfig to remove.

public FieldConfig update (FieldConfig config)