com.atlassian.jira.issue.fields.config.persistence
Class FieldConfigPersisterImpl

java.lang.Object
  extended by com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersisterImpl
All Implemented Interfaces:
FieldConfigPersister

public class FieldConfigPersisterImpl
extends Object
implements FieldConfigPersister


Field Summary
static String ENTITY_DESCRIPTION
           
static String ENTITY_FIELD
           
static String ENTITY_ID
           
static String ENTITY_NAME
           
 
Fields inherited from interface com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersister
ENTITY_LONG_TEXT_LENGTH
 
Constructor Summary
FieldConfigPersisterImpl(OfBizDelegator delegator)
           
 
Method Summary
 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 config)
          Remove a FieldConfig and all associated additional data.
 FieldConfig update(FieldConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITY_ID

public static final String ENTITY_ID
See Also:
Constant Field Values

ENTITY_NAME

public static final String ENTITY_NAME
See Also:
Constant Field Values

ENTITY_DESCRIPTION

public static final String ENTITY_DESCRIPTION
See Also:
Constant Field Values

ENTITY_FIELD

public static final String ENTITY_FIELD
See Also:
Constant Field Values
Constructor Detail

FieldConfigPersisterImpl

public FieldConfigPersisterImpl(OfBizDelegator delegator)
Method Detail

create

public FieldConfig create(FieldConfig config,
                          List<FieldConfigItemType> configurationItemTypes)
Specified by:
create in interface FieldConfigPersister

createWithDefaultValues

public FieldConfig createWithDefaultValues(ConfigurableField field)
Specified by:
createWithDefaultValues in interface FieldConfigPersister

update

public FieldConfig update(FieldConfig config)
Specified by:
update in interface FieldConfigPersister

remove

public void remove(FieldConfig config)
Description copied from interface: FieldConfigPersister
Remove a FieldConfig and all associated additional data.

Specified by:
remove in interface FieldConfigPersister
Parameters:
config - the fieldConfig to remove.

getConfigsExclusiveToConfigScheme

public Collection<FieldConfig> getConfigsExclusiveToConfigScheme(Long fieldConfigSchemeId)
Description copied from interface: FieldConfigPersister
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.

Specified by:
getConfigsExclusiveToConfigScheme in interface FieldConfigPersister
Parameters:
fieldConfigSchemeId - the id of the field config scheme
Returns:
the Collection of FieldConfig objects

getFieldConfig

public FieldConfig getFieldConfig(Long configId)
Specified by:
getFieldConfig in interface FieldConfigPersister

getFieldConfig

public FieldConfig getFieldConfig(Long configId,
                                  ConfigurableField field)
Specified by:
getFieldConfig in interface FieldConfigPersister

getConfigForField

public List getConfigForField(ConfigurableField field)
Specified by:
getConfigForField in interface FieldConfigPersister


Copyright © 2002-2013 Atlassian. All Rights Reserved.