|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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()
FieldLayoutManagerFieldLayout information when rendering a screen.
getFieldLayout in interface FieldLayoutManagerpublic FieldLayout getFieldLayout(Issue issue)
FieldLayoutManager
getFieldLayout in interface FieldLayoutManagerissue - An Issue
FieldLayoutpublic EditableDefaultFieldLayout getEditableDefaultFieldLayout()
FieldLayoutManagerEditableDefaultFieldLayout.
getEditableDefaultFieldLayout in interface FieldLayoutManagerEditableDefaultFieldLayout.public void storeEditableDefaultFieldLayout(EditableDefaultFieldLayout editableDefaultFieldLayout)
FieldLayoutManagerEditableDefaultFieldLayout
storeEditableDefaultFieldLayout in interface FieldLayoutManagereditableDefaultFieldLayout - The EditableDefaultFieldLayout.public EditableFieldLayout storeAndReturnEditableFieldLayout(EditableFieldLayout editableFieldLayout)
FieldLayoutManagerEditableFieldLayout provided and returns a new instance as stored
in the database.
storeAndReturnEditableFieldLayout in interface FieldLayoutManagereditableFieldLayout - the EditableFieldLayout.
public void storeEditableFieldLayout(EditableFieldLayout editableFieldLayout)
FieldLayoutManagerEditableFieldLayout provided.
storeEditableFieldLayout in interface FieldLayoutManagereditableFieldLayout - the EditableFieldLayout.protected void refreshCaches(Long id)
public boolean hasDefaultFieldLayout()
FieldLayoutManagerFieldLayout entity with type FieldLayoutManager.TYPE_DEFAULT exists
hasDefaultFieldLayout in interface FieldLayoutManagerFieldLayout exists, false otherwise.public void restoreDefaultFieldLayout()
FieldLayoutManager
restoreDefaultFieldLayout in interface FieldLayoutManagerprotected void restoreFieldLayout(Long id)
public void refresh()
FieldLayoutManager
refresh in interface FieldLayoutManagerprotected 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 | |||||||||