Class AbstractFieldLayoutManager
java.lang.Object
com.atlassian.jira.issue.fields.layout.field.AbstractFieldLayoutManager
- All Implemented Interfaces:
InitializingComponent,FieldLayoutManager
- Direct Known Subclasses:
DefaultFieldLayoutManager
public abstract class AbstractFieldLayoutManager
extends Object
implements FieldLayoutManager, InitializingComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.atlassian.cache.CacheManagerstatic final Stringstatic final Stringprotected final FieldManagerprotected final I18nHelper.BeanFactorystatic final Stringprotected final OfBizDelegatorstatic final Stringstatic final Stringstatic final StringFields inherited from interface com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager
TYPE_DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFieldLayoutManager(FieldManager fieldManager, OfBizDelegator ofBizDelegator, I18nHelper.BeanFactory i18nFactory, com.atlassian.cache.CacheManager cacheManager, ApplicationProperties applicationProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after all the beans are constructed and the ApplicationContext is fully populated.protected StringgetDefaultDescription(String fieldId) protected List<FieldLayoutItem> Returns the defaultEditableDefaultFieldLayout.Used to retrieveFieldLayoutinformation when rendering a screen.getFieldLayout(Issue issue) Returns the fieldLayout for an issue.protected I18nHelperprotected FieldLayoutRetrieves the field layout given a given id.booleanChecks to see if aFieldLayoutentity with typeFieldLayoutManager.TYPE_DEFAULTexistsvoidvoidrefresh()Clears all local caches.protected voidrefreshCaches(Long id) voidrefreshCacheWhenUpdateAllowUnassignedOption(BooleanApplicationPropertySetEvent booleanApplicationPropertySetEvent) voidThis method can be used to rollback any changes to the default field configuration.protected voidstoreAndReturnEditableFieldLayout(EditableFieldLayout editableFieldLayout) Persists theEditableFieldLayoutprovided and returns a new instance as stored in the database.voidstoreEditableDefaultFieldLayout(EditableDefaultFieldLayout editableDefaultFieldLayout) Persist the given defaultEditableDefaultFieldLayoutvoidstoreEditableFieldLayout(EditableFieldLayout editableFieldLayout) Persists theEditableFieldLayoutprovided.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager
addSchemeAssociation, addSchemeAssociation, copyFieldLayoutScheme, createFieldLayoutScheme, createFieldLayoutScheme, createFieldLayoutSchemeEntity, createFieldLayoutSchemeEntity, deleteFieldLayout, deleteFieldLayoutScheme, fieldConfigurationSchemeExists, getEditableFieldLayout, getEditableFieldLayouts, getFieldConfigurationScheme, getFieldConfigurationScheme, getFieldConfigurationSchemeForProject, getFieldConfigurationSchemes, getFieldLayout, getFieldLayout, getFieldLayout, getFieldLayout, getFieldLayoutSchemeEntities, getFieldLayoutSchemes, getMutableFieldLayoutScheme, getProjects, getProjects, getProjectsUsing, getProjectsUsing, getProjectsUsing, getRelatedProjects, getUniqueFieldLayouts, getUniqueFieldLayouts, isFieldLayoutSchemesVisiblyEquivalent, isFieldLayoutsVisiblyEquivalent, removeFieldLayoutScheme, removeFieldLayoutSchemeEntity, removeSchemeAssociation, removeSchemeAssociation, updateFieldLayoutItemAttributesForCustomField, updateFieldLayoutScheme, updateFieldLayoutSchemeEntity
-
Field Details
-
FIELD_LAYOUT
- See Also:
-
SCHEME
- See Also:
-
SCHEME_ASSOCIATION
- See Also:
-
NAME
- See Also:
-
DESCRIPTION
- See Also:
-
TYPE
- See Also:
-
fieldManager
-
ofBizDelegator
-
i18nFactory
-
cacheManager
protected final com.atlassian.cache.CacheManager cacheManager
-
-
Constructor Details
-
AbstractFieldLayoutManager
public AbstractFieldLayoutManager(FieldManager fieldManager, OfBizDelegator ofBizDelegator, I18nHelper.BeanFactory i18nFactory, com.atlassian.cache.CacheManager cacheManager, ApplicationProperties applicationProperties)
-
-
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
-
onCustomFieldUpdated
-
getDefaultFieldLayoutItems
-
getFieldLayout
Description copied from interface:FieldLayoutManagerUsed to retrieveFieldLayoutinformation when rendering a screen.- Specified by:
getFieldLayoutin interfaceFieldLayoutManager- Returns:
- the default FieldLayout
-
getFieldLayout
Description copied from interface:FieldLayoutManagerReturns the fieldLayout for an issue.- Specified by:
getFieldLayoutin interfaceFieldLayoutManager- Parameters:
issue- AnIssue- Returns:
- A
FieldLayout
-
getEditableDefaultFieldLayout
Description copied from interface:FieldLayoutManagerReturns the defaultEditableDefaultFieldLayout.- Specified by:
getEditableDefaultFieldLayoutin interfaceFieldLayoutManager- Returns:
- the default
EditableDefaultFieldLayout.
-
storeEditableDefaultFieldLayout
Description copied from interface:FieldLayoutManagerPersist the given defaultEditableDefaultFieldLayout- Specified by:
storeEditableDefaultFieldLayoutin interfaceFieldLayoutManager- Parameters:
editableDefaultFieldLayout- The EditableDefaultFieldLayout.
-
storeAndReturnEditableFieldLayout
public EditableFieldLayout storeAndReturnEditableFieldLayout(EditableFieldLayout editableFieldLayout) Description copied from interface:FieldLayoutManagerPersists theEditableFieldLayoutprovided and returns a new instance as stored in the database.- Specified by:
storeAndReturnEditableFieldLayoutin interfaceFieldLayoutManager- Parameters:
editableFieldLayout- the EditableFieldLayout.- Returns:
- the layout as stored in the database.
-
storeEditableFieldLayout
Description copied from interface:FieldLayoutManagerPersists theEditableFieldLayoutprovided.- Specified by:
storeEditableFieldLayoutin interfaceFieldLayoutManager- Parameters:
editableFieldLayout- the EditableFieldLayout.
-
refreshCaches
-
hasDefaultFieldLayout
public boolean hasDefaultFieldLayout()Description copied from interface:FieldLayoutManagerChecks to see if aFieldLayoutentity with typeFieldLayoutManager.TYPE_DEFAULTexists- Specified by:
hasDefaultFieldLayoutin interfaceFieldLayoutManager- Returns:
- True if a default
FieldLayoutexists, false otherwise.
-
restoreDefaultFieldLayout
public void restoreDefaultFieldLayout()Description copied from interface:FieldLayoutManagerThis method can be used to rollback any changes to the default field configuration.- Specified by:
restoreDefaultFieldLayoutin interfaceFieldLayoutManager
-
restoreFieldLayout
-
refresh
public void refresh()Description copied from interface:FieldLayoutManagerClears all local caches.- Specified by:
refreshin interfaceFieldLayoutManager
-
getRelevantFieldLayout
Retrieves the field layout given a given id. If the id is null the default field layout is retrieved- Parameters:
id- field layout id- Returns:
- field layout
-
getDefaultDescription
-
getI18nHelper
-
refreshCacheWhenUpdateAllowUnassignedOption
@EventListener public void refreshCacheWhenUpdateAllowUnassignedOption(BooleanApplicationPropertySetEvent booleanApplicationPropertySetEvent)
-