com.atlassian.jira.issue.fields.config.persistence
Class FieldConfigPersisterImpl
java.lang.Object
com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersisterImpl
- All Implemented Interfaces:
- FieldConfigPersister
public class FieldConfigPersisterImpl
- extends Object
- implements FieldConfigPersister
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FieldConfigPersisterImpl
public FieldConfigPersisterImpl(OfBizDelegator delegator)
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-2012 Atlassian. All Rights Reserved.