Class FieldConfigPersisterImpl
java.lang.Object
com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersisterImpl
- All Implemented Interfaces:
InitializingComponent,FieldConfigPersister
public class FieldConfigPersisterImpl
extends Object
implements FieldConfigPersister, InitializingComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersister
ENTITY_LONG_TEXT_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionFieldConfigPersisterImpl(OfBizDelegator delegator, com.atlassian.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after all the beans are constructed and the ApplicationContext is fully populated.create(FieldConfig config, List<FieldConfigItemType> configurationItemTypes) getConfigsExclusiveToConfigScheme(Long fieldConfigSchemeId) Gets theFieldConfigobjects that are only associated to the specifiedFieldConfigScheme.getFieldConfig(Long configId) getFieldConfig(Long configId, ConfigurableField field) voidonClearCache(ClearCacheEvent event) voidremove(FieldConfig config) Remove aFieldConfigand all associated additional data.update(FieldConfig config)
-
Field Details
-
ENTITY_ID
- See Also:
-
ENTITY_NAME
- See Also:
-
ENTITY_DESCRIPTION
- See Also:
-
ENTITY_FIELD
- See Also:
-
-
Constructor Details
-
FieldConfigPersisterImpl
public FieldConfigPersisterImpl(OfBizDelegator delegator, com.atlassian.cache.CacheManager cacheManager)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponentCalled after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
afterInstantiationin interfaceInitializingComponent- Throws:
Exception
-
onClearCache
-
create
- Specified by:
createin interfaceFieldConfigPersister
-
createWithDefaultValues
- Specified by:
createWithDefaultValuesin interfaceFieldConfigPersister
-
update
- Specified by:
updatein interfaceFieldConfigPersister
-
remove
Description copied from interface:FieldConfigPersisterRemove aFieldConfigand all associated additional data.- Specified by:
removein interfaceFieldConfigPersister- Parameters:
config- the fieldConfig to remove.
-
getConfigsExclusiveToConfigScheme
Description copied from interface:FieldConfigPersisterGets theFieldConfigobjects that are only associated to the specifiedFieldConfigScheme. In theory, aFieldConfigshould only ever be associated to oneFieldConfigScheme, but the database schema allows sharing of configs between schemes.When FieldConfig objects are removed, their associated
OptionsSetsand GenericConfigurations are also removed. Note that the mapping fromFieldConfigtoFieldConfigSchemein BackupOverviewBuilderImpl.FieldConfigSchemeIssueType is not removed until aFieldConfigSchemeis removed.- Specified by:
getConfigsExclusiveToConfigSchemein interfaceFieldConfigPersister- Parameters:
fieldConfigSchemeId- the id of the field config scheme- Returns:
- the
Collectionof FieldConfig objects
-
getFieldConfig
- Specified by:
getFieldConfigin interfaceFieldConfigPersister
-
getFieldConfig
- Specified by:
getFieldConfigin interfaceFieldConfigPersister
-
getConfigForField
- Specified by:
getConfigForFieldin interfaceFieldConfigPersister
-