Class AbstractFieldLayoutManager
java.lang.Object
com.atlassian.jira.issue.fields.layout.field.AbstractFieldLayoutManager
- All Implemented Interfaces:
FieldLayoutManager
- Direct Known Subclasses:
DefaultFieldLayoutManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
protected final FieldManager
protected final I18nHelper.BeanFactory
static final String
protected final OfBizDelegator
static final String
static final String
static final String
Fields 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 TypeMethodDescriptionprotected String
getDefaultDescription
(String fieldId) protected List<FieldLayoutItem>
Returns the defaultEditableDefaultFieldLayout
.Used to retrieveFieldLayout
information when rendering a screen.getFieldLayout
(Issue issue) Returns the fieldLayout for an issue.protected I18nHelper
protected FieldLayout
Retrieves the field layout given a given id.boolean
Checks to see if aFieldLayout
entity with typeFieldLayoutManager.TYPE_DEFAULT
existsvoid
void
refresh()
Clears all local caches.protected void
refreshCaches
(Long id) void
refreshCacheWhenUpdateAllowUnassignedOption
(BooleanApplicationPropertySetEvent booleanApplicationPropertySetEvent) void
This method can be used to rollback any changes to the default field configuration.protected void
storeAndReturnEditableFieldLayout
(EditableFieldLayout editableFieldLayout) Persists theEditableFieldLayout
provided and returns a new instance as stored in the database.void
storeEditableDefaultFieldLayout
(EditableDefaultFieldLayout editableDefaultFieldLayout) Persist the given defaultEditableDefaultFieldLayout
void
storeEditableFieldLayout
(EditableFieldLayout editableFieldLayout) Persists theEditableFieldLayout
provided.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-
-
Constructor Details
-
AbstractFieldLayoutManager
public AbstractFieldLayoutManager(FieldManager fieldManager, OfBizDelegator ofBizDelegator, I18nHelper.BeanFactory i18nFactory, com.atlassian.cache.CacheManager cacheManager, ApplicationProperties applicationProperties)
-
-
Method Details
-
onCustomFieldUpdated
-
getDefaultFieldLayoutItems
-
getFieldLayout
Description copied from interface:FieldLayoutManager
Used to retrieveFieldLayout
information when rendering a screen.- Specified by:
getFieldLayout
in interfaceFieldLayoutManager
- Returns:
- the default FieldLayout
-
getFieldLayout
Description copied from interface:FieldLayoutManager
Returns the fieldLayout for an issue.- Specified by:
getFieldLayout
in interfaceFieldLayoutManager
- Parameters:
issue
- AnIssue
- Returns:
- A
FieldLayout
-
getEditableDefaultFieldLayout
Description copied from interface:FieldLayoutManager
Returns the defaultEditableDefaultFieldLayout
.- Specified by:
getEditableDefaultFieldLayout
in interfaceFieldLayoutManager
- Returns:
- the default
EditableDefaultFieldLayout
.
-
storeEditableDefaultFieldLayout
Description copied from interface:FieldLayoutManager
Persist the given defaultEditableDefaultFieldLayout
- Specified by:
storeEditableDefaultFieldLayout
in interfaceFieldLayoutManager
- Parameters:
editableDefaultFieldLayout
- The EditableDefaultFieldLayout.
-
storeAndReturnEditableFieldLayout
public EditableFieldLayout storeAndReturnEditableFieldLayout(EditableFieldLayout editableFieldLayout) Description copied from interface:FieldLayoutManager
Persists theEditableFieldLayout
provided and returns a new instance as stored in the database.- Specified by:
storeAndReturnEditableFieldLayout
in interfaceFieldLayoutManager
- Parameters:
editableFieldLayout
- the EditableFieldLayout.- Returns:
- the layout as stored in the database.
-
storeEditableFieldLayout
Description copied from interface:FieldLayoutManager
Persists theEditableFieldLayout
provided.- Specified by:
storeEditableFieldLayout
in interfaceFieldLayoutManager
- Parameters:
editableFieldLayout
- the EditableFieldLayout.
-
refreshCaches
-
hasDefaultFieldLayout
public boolean hasDefaultFieldLayout()Description copied from interface:FieldLayoutManager
Checks to see if aFieldLayout
entity with typeFieldLayoutManager.TYPE_DEFAULT
exists- Specified by:
hasDefaultFieldLayout
in interfaceFieldLayoutManager
- Returns:
- True if a default
FieldLayout
exists, false otherwise.
-
restoreDefaultFieldLayout
public void restoreDefaultFieldLayout()Description copied from interface:FieldLayoutManager
This method can be used to rollback any changes to the default field configuration.- Specified by:
restoreDefaultFieldLayout
in interfaceFieldLayoutManager
-
restoreFieldLayout
-
refresh
public void refresh()Description copied from interface:FieldLayoutManager
Clears all local caches.- Specified by:
refresh
in 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)
-