com.atlassian.jira.issue.fields.config.persistence
Interface FieldConfigPersister

All Known Implementing Classes:
FieldConfigPersisterImpl

public interface FieldConfigPersister


Field Summary
static int ENTITY_LONG_TEXT_LENGTH
           
 
Method Summary
 FieldConfig create(FieldConfig config, List configurationItemTypes)
           
 FieldConfig createWithDefaultValues(ConfigurableField field)
           
 List getConfigForField(ConfigurableField field)
           
 Collection getConfigsExclusiveToConfigScheme(FieldConfigScheme fieldConfigScheme)
          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)
           
 

Field Detail

ENTITY_LONG_TEXT_LENGTH

static final int ENTITY_LONG_TEXT_LENGTH
See Also:
Constant Field Values
Method Detail

create

FieldConfig create(FieldConfig config,
                   List configurationItemTypes)

getConfigForField

List getConfigForField(ConfigurableField field)

getFieldConfig

FieldConfig getFieldConfig(Long configId)

update

FieldConfig update(FieldConfig config)

remove

void remove(FieldConfig fieldConfig)
Remove a FieldConfig and all associated additional data.

Parameters:
fieldConfig - the fieldConfig to remove.

getConfigsExclusiveToConfigScheme

Collection getConfigsExclusiveToConfigScheme(FieldConfigScheme fieldConfigScheme)
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:
fieldConfigScheme - the field config scheme
Returns:
the Collection of FieldConfig objects

createWithDefaultValues

FieldConfig createWithDefaultValues(ConfigurableField field)

getFieldConfig

FieldConfig getFieldConfig(Long configId,
                           ConfigurableField field)


Copyright © 2002-2008 Atlassian. All Rights Reserved.