|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.fields.layout.field.AbstractFieldLayoutManager
public abstract class AbstractFieldLayoutManager
Field Summary | |
---|---|
static String |
DESCRIPTION
|
static String |
FIELD_LAYOUT
|
protected FieldManager |
fieldManager
|
protected I18nHelper.BeanFactory |
i18nFactory
|
static String |
NAME
|
protected OfBizDelegator |
ofBizDelegator
|
static String |
SCHEME
|
static String |
SCHEME_ASSOCIATION
|
static String |
TYPE
|
Fields inherited from interface com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager |
---|
TYPE_DEFAULT |
Constructor Summary | |
---|---|
AbstractFieldLayoutManager(FieldManager fieldManager,
OfBizDelegator ofBizDelegator,
I18nHelper.BeanFactory i18nFactory,
com.atlassian.cache.CacheManager cacheManager)
|
Method Summary | |
---|---|
protected String |
getDefaultDescription(String fieldId)
|
protected List<FieldLayoutItem> |
getDefaultFieldLayoutItems()
|
EditableDefaultFieldLayout |
getEditableDefaultFieldLayout()
Returns the default EditableDefaultFieldLayout . |
FieldLayout |
getFieldLayout()
Used to retrieve FieldLayout information when rendering a screen. |
FieldLayout |
getFieldLayout(Issue issue)
Returns the fieldLayout for an issue. |
protected I18nHelper |
getI18nHelper()
|
protected FieldLayout |
getRelevantFieldLayout(Long id)
Retrieves the field layout given a given id. |
boolean |
hasDefaultFieldLayout()
Checks to see if a FieldLayout entity with type FieldLayoutManager.TYPE_DEFAULT exists |
void |
onCustomFieldUpdated(CustomFieldUpdatedEvent event)
|
void |
refresh()
Clears all local caches. |
protected void |
refreshCaches(Long id)
|
void |
restoreDefaultFieldLayout()
This method can be used to rollback any changes to the default field configuration. |
protected void |
restoreFieldLayout(Long id)
|
EditableFieldLayout |
storeAndReturnEditableFieldLayout(EditableFieldLayout editableFieldLayout)
Persists the EditableFieldLayout provided and returns a new instance as stored
in the database. |
void |
storeEditableDefaultFieldLayout(EditableDefaultFieldLayout editableDefaultFieldLayout)
Persist the given default EditableDefaultFieldLayout |
void |
storeEditableFieldLayout(EditableFieldLayout editableFieldLayout)
Persists the EditableFieldLayout provided. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FIELD_LAYOUT
public static final String SCHEME
public static final String SCHEME_ASSOCIATION
public static final String NAME
public static final String DESCRIPTION
public static final String TYPE
protected final FieldManager fieldManager
protected final OfBizDelegator ofBizDelegator
protected final I18nHelper.BeanFactory i18nFactory
Constructor Detail |
---|
public AbstractFieldLayoutManager(FieldManager fieldManager, OfBizDelegator ofBizDelegator, I18nHelper.BeanFactory i18nFactory, com.atlassian.cache.CacheManager cacheManager)
Method Detail |
---|
@EventListener public void onCustomFieldUpdated(CustomFieldUpdatedEvent event)
protected List<FieldLayoutItem> getDefaultFieldLayoutItems()
public FieldLayout getFieldLayout()
FieldLayoutManager
FieldLayout
information when rendering a screen.
getFieldLayout
in interface FieldLayoutManager
public FieldLayout getFieldLayout(Issue issue)
FieldLayoutManager
getFieldLayout
in interface FieldLayoutManager
issue
- An Issue
FieldLayout
public EditableDefaultFieldLayout getEditableDefaultFieldLayout()
FieldLayoutManager
EditableDefaultFieldLayout
.
getEditableDefaultFieldLayout
in interface FieldLayoutManager
EditableDefaultFieldLayout
.public void storeEditableDefaultFieldLayout(EditableDefaultFieldLayout editableDefaultFieldLayout)
FieldLayoutManager
EditableDefaultFieldLayout
storeEditableDefaultFieldLayout
in interface FieldLayoutManager
editableDefaultFieldLayout
- The EditableDefaultFieldLayout.public EditableFieldLayout storeAndReturnEditableFieldLayout(EditableFieldLayout editableFieldLayout)
FieldLayoutManager
EditableFieldLayout
provided and returns a new instance as stored
in the database.
storeAndReturnEditableFieldLayout
in interface FieldLayoutManager
editableFieldLayout
- the EditableFieldLayout.
public void storeEditableFieldLayout(EditableFieldLayout editableFieldLayout)
FieldLayoutManager
EditableFieldLayout
provided.
storeEditableFieldLayout
in interface FieldLayoutManager
editableFieldLayout
- the EditableFieldLayout.protected void refreshCaches(Long id)
public boolean hasDefaultFieldLayout()
FieldLayoutManager
FieldLayout
entity with type FieldLayoutManager.TYPE_DEFAULT
exists
hasDefaultFieldLayout
in interface FieldLayoutManager
FieldLayout
exists, false otherwise.public void restoreDefaultFieldLayout()
FieldLayoutManager
restoreDefaultFieldLayout
in interface FieldLayoutManager
protected void restoreFieldLayout(Long id)
public void refresh()
FieldLayoutManager
refresh
in interface FieldLayoutManager
protected FieldLayout getRelevantFieldLayout(Long id)
id
- field layout id
protected String getDefaultDescription(String fieldId)
protected I18nHelper getI18nHelper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |