com.atlassian.jira.issue.fields.layout.field
Class AbstractFieldLayoutManager

java.lang.Object
  extended by com.atlassian.jira.issue.fields.layout.field.AbstractFieldLayoutManager
All Implemented Interfaces:
Startable, FieldLayoutManager
Direct Known Subclasses:
DefaultFieldLayoutManager

public abstract class AbstractFieldLayoutManager
extends Object
implements FieldLayoutManager, Startable


Field Summary
protected  OfBizDelegator ofBizDelegator
           
static String SCHEME
           
static String SCHEME_ASSOCIATION
           
 
Fields inherited from interface com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager
TYPE_DEFAULT
 
Constructor Summary
AbstractFieldLayoutManager(FieldManager fieldManager, OfBizDelegator ofBizDelegator, I18nHelper.BeanFactory i18n)
           
 
Method Summary
abstract  void addSchemeAssociation(org.ofbiz.core.entity.GenericValue project, Long fieldLayoutSchemeId)
          Associates a FieldLayoutScheme to the project supplied.
abstract  FieldLayoutScheme createFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
          Persists a new field Layout scheme (i.e Field Configuration Scheme).
abstract  void createFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
          Persists a new FieldLayoutSchemeEntity for a particular FieldLayoutScheme.
abstract  void deleteFieldLayout(FieldLayout fieldLayout)
          Deletes a custom FieldLayout
abstract  void deleteFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
          Removes the FieldLayoutScheme supplied.
abstract  boolean fieldConfigurationSchemeExists(String schemeName)
          Checks if a FieldConfigurationScheme with the given name exists.
protected  String getDefaultDescription(String fieldId)
           
protected  List<FieldLayoutItem> getDefaultFieldLayoutItems()
           
 EditableDefaultFieldLayout getEditableDefaultFieldLayout()
          Returns the default EditableDefaultFieldLayout.
abstract  EditableFieldLayout getEditableFieldLayout(Long id)
          Returns an EditableFieldLayout for the id supplied.
abstract  List<EditableFieldLayout> getEditableFieldLayouts()
          Retrieves editable (see EditableFieldLayout versions of the field layouts.
abstract  FieldConfigurationScheme getFieldConfigurationScheme(org.ofbiz.core.entity.GenericValue project)
          Retrieves the Field Configuration Scheme associated with the supplied project.
abstract  FieldConfigurationScheme getFieldConfigurationScheme(Long schemeId)
          Retrieves a FieldConfigurationScheme by id
abstract  FieldConfigurationScheme getFieldConfigurationScheme(Project project)
          Retrieves the Field Configuration Scheme associated with the supplied project.
abstract  Collection<FieldConfigurationScheme> getFieldConfigurationSchemes(FieldLayout fieldLayout)
          Returns a collection of FieldConfigurationSchemes that include the given FieldLayout.
 FieldLayout getFieldLayout()
          Used to retrieve FieldLayout information when rendering a screen.
abstract  FieldLayout getFieldLayout(org.ofbiz.core.entity.GenericValue issue)
          Returns the fieldLayout for an issue.
abstract  FieldLayout getFieldLayout(org.ofbiz.core.entity.GenericValue project, String issueTypeId)
           
 FieldLayout getFieldLayout(Issue issue)
          Returns the fieldLayout for an issue.
abstract  FieldLayout getFieldLayout(Long id)
          Used to retrieve FieldLayout information when rendering a screen given the id of the field layout.
abstract  FieldLayout getFieldLayout(Project project, String issueTypeId)
           
abstract  Collection<FieldLayoutSchemeEntity> getFieldLayoutSchemeEntities(FieldLayoutScheme fieldLayoutScheme)
          Returns a collection of FieldLayoutSchemeEntitys.
abstract  List<FieldLayoutScheme> getFieldLayoutSchemes()
          Retries Field Configuration Schemes.
protected  I18nHelper getI18nHelper()
           
abstract  FieldLayoutScheme getMutableFieldLayoutScheme(Long schemeId)
          Retrieves a mutable FieldLayoutScheme by id.
abstract  Collection<org.ofbiz.core.entity.GenericValue> getProjects(FieldConfigurationScheme fieldConfigurationScheme)
          Returns all projects that use the given FieldConfigurationScheme.
abstract  Collection<org.ofbiz.core.entity.GenericValue> getProjects(FieldLayoutScheme fieldLayoutScheme)
          Returns all associated projects for the FieldLayoutScheme supplied.
abstract  Collection<org.ofbiz.core.entity.GenericValue> getRelatedProjects(FieldLayout fieldLayout)
          Finds all projects that use the given FieldLayout (via the configured FieldConfigurationScheme).
protected  FieldLayout getRelevantFieldLayout(Long id)
          Retrieves the field layout given a given id.
abstract  Set<FieldLayout> getUniqueFieldLayouts(Project project)
          Retrieves all the FieldLayout's for a project.
 boolean hasDefaultFieldLayout()
          Checks to see if a FieldLayout entity with type FieldLayoutManager.TYPE_DEFAULT exists
abstract  boolean isFieldLayoutSchemesVisiblyEquivalent(Long fieldConfigurationSchemeId1, Long fieldConfigurationSchemeId2)
          Will determine whether or not two FieldLayoutSchemes are "visibly equivalent".
abstract  boolean isFieldLayoutsVisiblyEquivalent(Long fieldLayoutId1, Long fieldLayoutId2)
          Will determine whether or not two FieldLayouts are "visibly equivalent".
 void onCustomFieldUpdated(CustomFieldUpdatedEvent event)
           
 void refresh()
          Clears all local caches.
protected  void refreshCaches(Long id)
           
abstract  void removeFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
           
abstract  void removeFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
          Removes a FieldLayoutSchemeEntity
abstract  void removeSchemeAssociation(org.ofbiz.core.entity.GenericValue project, Long fieldLayoutSchemeId)
          Removes an association between a particular project and field configuration scheme.
 void restoreDefaultFieldLayout()
          This method can be used to rollback any changes to the default field configuration.
protected  void restoreFieldLayout(Long id)
           
abstract  void restoreSchemeFieldLayout(org.ofbiz.core.entity.GenericValue scheme)
          Restores the field layout associated with the provided scheme to defaults.
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 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.
abstract  void updateFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
          Persists the FieldLayoutScheme supplied.
abstract  void updateFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
          Updates a FieldLayoutSchemeEntity.
 
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, removeSchemeAssociation
 

Field Detail

SCHEME

public static final String SCHEME
See Also:
Constant Field Values

SCHEME_ASSOCIATION

public static final String SCHEME_ASSOCIATION
See Also:
Constant Field Values

ofBizDelegator

protected OfBizDelegator ofBizDelegator
Constructor Detail

AbstractFieldLayoutManager

public AbstractFieldLayoutManager(FieldManager fieldManager,
                                  OfBizDelegator ofBizDelegator,
                                  I18nHelper.BeanFactory i18n)
Method Detail

getFieldLayout

public abstract FieldLayout getFieldLayout(Long id)
Description copied from interface: FieldLayoutManager
Used to retrieve FieldLayout information when rendering a screen given the id of the field layout. If the ID is null, the default layout is returned.

Specified by:
getFieldLayout in interface FieldLayoutManager
Parameters:
id - The FieldLayout ID.
Returns:
The FieldLayout

getFieldLayout

public abstract FieldLayout getFieldLayout(org.ofbiz.core.entity.GenericValue issue)
Description copied from interface: FieldLayoutManager
Returns the fieldLayout for an issue.

Specified by:
getFieldLayout in interface FieldLayoutManager
Parameters:
issue - An issue GenericValue
Returns:
A FieldLayout

getFieldLayout

public abstract FieldLayout getFieldLayout(Project project,
                                           String issueTypeId)
Specified by:
getFieldLayout in interface FieldLayoutManager
Parameters:
project - A project
issueTypeId - The IssueType id of the issue.
Returns:
A FieldLayout
See Also:
FieldLayoutManager.getFieldLayout(Issue)

getFieldLayout

public abstract FieldLayout getFieldLayout(org.ofbiz.core.entity.GenericValue project,
                                           String issueTypeId)
Specified by:
getFieldLayout in interface FieldLayoutManager
Parameters:
project - the Project
issueTypeId - The IssueType id of the issue.
Returns:
A FieldLayout

getFieldLayoutSchemes

public abstract List<FieldLayoutScheme> getFieldLayoutSchemes()
Description copied from interface: FieldLayoutManager
Retries Field Configuration Schemes. These are used to link field configurations to projects.

Specified by:
getFieldLayoutSchemes in interface FieldLayoutManager
Returns:
A list of FieldLayoutSchemes.

updateFieldLayoutScheme

public abstract void updateFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
Description copied from interface: FieldLayoutManager
Persists the FieldLayoutScheme supplied.

Specified by:
updateFieldLayoutScheme in interface FieldLayoutManager
Parameters:
fieldLayoutScheme - The FieldLayoutScheme

deleteFieldLayoutScheme

public abstract void deleteFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
Description copied from interface: FieldLayoutManager
Removes the FieldLayoutScheme supplied.

Specified by:
deleteFieldLayoutScheme in interface FieldLayoutManager
Parameters:
fieldLayoutScheme - The FieldLayoutScheme

restoreSchemeFieldLayout

public abstract void restoreSchemeFieldLayout(org.ofbiz.core.entity.GenericValue scheme)
Description copied from interface: FieldLayoutManager
Restores the field layout associated with the provided scheme to defaults. Essentially this involves removing all previously configured custom items.

Specified by:
restoreSchemeFieldLayout in interface FieldLayoutManager
Parameters:
scheme - A scheme GenericValue

getProjects

public abstract Collection<org.ofbiz.core.entity.GenericValue> getProjects(FieldConfigurationScheme fieldConfigurationScheme)
Description copied from interface: FieldLayoutManager
Returns all projects that use the given FieldConfigurationScheme.

Specified by:
getProjects in interface FieldLayoutManager
Parameters:
fieldConfigurationScheme - the FieldConfigurationScheme
Returns:
A list of projects that use the given FieldConfigurationScheme.

getProjects

public abstract Collection<org.ofbiz.core.entity.GenericValue> getProjects(FieldLayoutScheme fieldLayoutScheme)
Description copied from interface: FieldLayoutManager
Returns all associated projects for the FieldLayoutScheme supplied.

Specified by:
getProjects in interface FieldLayoutManager
Parameters:
fieldLayoutScheme - the FieldLayoutScheme
Returns:
A list of project GenericValues

createFieldLayoutScheme

public abstract FieldLayoutScheme createFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
Description copied from interface: FieldLayoutManager
Persists a new field Layout scheme (i.e Field Configuration Scheme).

Specified by:
createFieldLayoutScheme in interface FieldLayoutManager
Parameters:
fieldLayoutScheme - The FieldLayoutScheme to persist.
Returns:
The stored FieldLayoutScheme object

getFieldConfigurationScheme

public abstract FieldConfigurationScheme getFieldConfigurationScheme(Long schemeId)
Description copied from interface: FieldLayoutManager
Retrieves a FieldConfigurationScheme by id

Specified by:
getFieldConfigurationScheme in interface FieldLayoutManager
Parameters:
schemeId - FieldConfigurationScheme ID
Returns:
A FieldConfigurationScheme instance

getFieldConfigurationScheme

public abstract FieldConfigurationScheme getFieldConfigurationScheme(Project project)
Description copied from interface: FieldLayoutManager
Retrieves the Field Configuration Scheme associated with the supplied project.

Specified by:
getFieldConfigurationScheme in interface FieldLayoutManager
Parameters:
project - A project
Returns:
A FieldConfigurationScheme or null if none exists.

getFieldConfigurationScheme

public abstract FieldConfigurationScheme getFieldConfigurationScheme(org.ofbiz.core.entity.GenericValue project)
Description copied from interface: FieldLayoutManager
Retrieves the Field Configuration Scheme associated with the supplied project.

Specified by:
getFieldConfigurationScheme in interface FieldLayoutManager
Parameters:
project - A project GenericValue
Returns:
A FieldConfigurationScheme or null if none exists.

getUniqueFieldLayouts

public abstract Set<FieldLayout> getUniqueFieldLayouts(Project project)
Description copied from interface: FieldLayoutManager
Retrieves all the FieldLayout's for a project.

Specified by:
getUniqueFieldLayouts in interface FieldLayoutManager
Parameters:
project - a project
Returns:
the unique set of FieldLayout's for the provided project, an empty set if there are none.

getMutableFieldLayoutScheme

public abstract FieldLayoutScheme getMutableFieldLayoutScheme(Long schemeId)
Description copied from interface: FieldLayoutManager
Retrieves a mutable FieldLayoutScheme by id.

This returns a new copy of the object from the DB, and so will incur some performance penalty. Please use FieldLayoutManager.getFieldConfigurationScheme(Long) for access to a cached immutable scheme object.

Specified by:
getMutableFieldLayoutScheme in interface FieldLayoutManager
Parameters:
schemeId - the scheme ID
Returns:
A FieldLayoutScheme instance

fieldConfigurationSchemeExists

public abstract boolean fieldConfigurationSchemeExists(String schemeName)
Description copied from interface: FieldLayoutManager
Checks if a FieldConfigurationScheme with the given name exists.

Specified by:
fieldConfigurationSchemeExists in interface FieldLayoutManager
Parameters:
schemeName - The scheme name
Returns:
true if a FieldConfigurationScheme with the given name exists.

getEditableFieldLayouts

public abstract List<EditableFieldLayout> getEditableFieldLayouts()
Description copied from interface: FieldLayoutManager
Retrieves editable (see EditableFieldLayout versions of the field layouts. Note: For standard edition this simply returns an editable version of the default field layout. (see EditableDefaultFieldLayout)

Specified by:
getEditableFieldLayouts in interface FieldLayoutManager
Returns:
A list of EditableFieldLayout and EditableDefaultFieldLayout

addSchemeAssociation

public abstract void addSchemeAssociation(org.ofbiz.core.entity.GenericValue project,
                                          Long fieldLayoutSchemeId)
Description copied from interface: FieldLayoutManager
Associates a FieldLayoutScheme to the project supplied.

Specified by:
addSchemeAssociation in interface FieldLayoutManager
Parameters:
project - A project GenericValue
fieldLayoutSchemeId - ID of the FieldLayoutScheme

removeSchemeAssociation

public abstract void removeSchemeAssociation(org.ofbiz.core.entity.GenericValue project,
                                             Long fieldLayoutSchemeId)
Description copied from interface: FieldLayoutManager
Removes an association between a particular project and field configuration scheme.

Specified by:
removeSchemeAssociation in interface FieldLayoutManager
Parameters:
project - A project GenericValue
fieldLayoutSchemeId - The fieldLayoutScheme ID

getEditableFieldLayout

public abstract EditableFieldLayout getEditableFieldLayout(Long id)
Description copied from interface: FieldLayoutManager
Returns an EditableFieldLayout for the id supplied.

Specified by:
getEditableFieldLayout in interface FieldLayoutManager
Parameters:
id - If the id is NULL, the default layout is returned.
Returns:
An EditableFieldLayout

deleteFieldLayout

public abstract void deleteFieldLayout(FieldLayout fieldLayout)
Description copied from interface: FieldLayoutManager
Deletes a custom FieldLayout

Specified by:
deleteFieldLayout in interface FieldLayoutManager
Parameters:
fieldLayout - The FieldLayout

getFieldLayoutSchemeEntities

public abstract Collection<FieldLayoutSchemeEntity> getFieldLayoutSchemeEntities(FieldLayoutScheme fieldLayoutScheme)
Description copied from interface: FieldLayoutManager
Returns a collection of FieldLayoutSchemeEntitys. These are used to record mappings from IssueType -> FieldLayout for the FieldLayoutScheme passed in.

Specified by:
getFieldLayoutSchemeEntities in interface FieldLayoutManager
Parameters:
fieldLayoutScheme - The FieldLayoutScheme
Returns:
A collection of FieldLayoutSchemeEntitys.

createFieldLayoutSchemeEntity

public abstract void createFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
Description copied from interface: FieldLayoutManager
Persists a new FieldLayoutSchemeEntity for a particular FieldLayoutScheme. The appropriate scheme is retrieved using FieldLayoutSchemeEntity.getFieldLayoutScheme()

Specified by:
createFieldLayoutSchemeEntity in interface FieldLayoutManager
Parameters:
fieldLayoutSchemeEntity - The FieldLayoutSchemeEntity

updateFieldLayoutSchemeEntity

public abstract void updateFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
Description copied from interface: FieldLayoutManager
Updates a FieldLayoutSchemeEntity.

Specified by:
updateFieldLayoutSchemeEntity in interface FieldLayoutManager
Parameters:
fieldLayoutSchemeEntity - The FieldLayoutSchemeEntity

removeFieldLayoutSchemeEntity

public abstract void removeFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity)
Description copied from interface: FieldLayoutManager
Removes a FieldLayoutSchemeEntity

Specified by:
removeFieldLayoutSchemeEntity in interface FieldLayoutManager
Parameters:
fieldLayoutSchemeEntity - The FieldLayoutSchemeEntity

removeFieldLayoutScheme

public abstract void removeFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme)
Specified by:
removeFieldLayoutScheme in interface FieldLayoutManager
Parameters:
fieldLayoutScheme - The FieldLayoutScheme

getFieldConfigurationSchemes

public abstract Collection<FieldConfigurationScheme> getFieldConfigurationSchemes(FieldLayout fieldLayout)
Description copied from interface: FieldLayoutManager
Returns a collection of FieldConfigurationSchemes that include the given FieldLayout.

This is determined by retrieving all FieldLayoutSchemeEntitys with the FieldLayout and calculating a set of FieldConfigurationSchemes using these entities.

Specified by:
getFieldConfigurationSchemes in interface FieldLayoutManager
Parameters:
fieldLayout - The FieldLayout.
Returns:
A collection of FieldConfigurationSchemes

getRelatedProjects

public abstract Collection<org.ofbiz.core.entity.GenericValue> getRelatedProjects(FieldLayout fieldLayout)
Description copied from interface: FieldLayoutManager
Finds all projects that use the given FieldLayout (via the configured FieldConfigurationScheme).

NOTE: In the case of Standard & Professional, this simply returns ALL projects, as the only fieldlayout is the default field layout.

Specified by:
getRelatedProjects in interface FieldLayoutManager
Parameters:
fieldLayout - The FieldLayout.
Returns:
The set of Projects that use the given FieldLayout.

isFieldLayoutSchemesVisiblyEquivalent

public abstract boolean isFieldLayoutSchemesVisiblyEquivalent(Long fieldConfigurationSchemeId1,
                                                              Long fieldConfigurationSchemeId2)
Description copied from interface: FieldLayoutManager
Will determine whether or not two FieldLayoutSchemes are "visibly equivalent".

This can be useful for determining if swapping one field layout scheme for another in a project will have any affect on the visibility of fields in the project's issues. For instance, this will let us know if we need to re-index or not.

Since a scheme is a mapping from issue types to field layouts, two schemes are visibly equivalent if:

It is possible that one scheme may have a mapping for an issue type, but the other does not. In this case, equivalence is compared between the issue type specific one and the default field layout.

Note that equivalence is reflexive - all the associations in scheme1 must have equivalent associations in scheme2, and vice versa.

Specified by:
isFieldLayoutSchemesVisiblyEquivalent in interface FieldLayoutManager
Parameters:
fieldConfigurationSchemeId1 - the first scheme; can use null for the system default scheme
fieldConfigurationSchemeId2 - the second scheme; can use null for the system default scheme
Returns:
the result of the equivalence comparison

isFieldLayoutsVisiblyEquivalent

public abstract boolean isFieldLayoutsVisiblyEquivalent(Long fieldLayoutId1,
                                                        Long fieldLayoutId2)
Description copied from interface: FieldLayoutManager
Will determine whether or not two FieldLayouts are "visibly equivalent".

This can be useful for determining if swapping one field layout for another in a project will have any affect on the visibility of fields in the project's issues. For instance, this will let us know if we need to re-index or not.

Two field layouts are visibly equivalent if:

Note that equivalence is reflexive: layout1 == layout2 implies layout2 == layout1.

Specified by:
isFieldLayoutsVisiblyEquivalent in interface FieldLayoutManager
Parameters:
fieldLayoutId1 - the first layout id; null signifies the default field layout in the system
fieldLayoutId2 - the second layout id; null signifies the default field layout in the system
Returns:
the result of the equivalence comparison

start

public void start()
           throws Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
Exception - Allows implementations to throw an Exception.

onCustomFieldUpdated

@EventListener
public void onCustomFieldUpdated(CustomFieldUpdatedEvent event)

getDefaultFieldLayoutItems

protected List<FieldLayoutItem> getDefaultFieldLayoutItems()

getFieldLayout

public FieldLayout getFieldLayout()
Description copied from interface: FieldLayoutManager
Used to retrieve FieldLayout information when rendering a screen.

Specified by:
getFieldLayout in interface FieldLayoutManager
Returns:
the default FieldLayout

getFieldLayout

public FieldLayout getFieldLayout(Issue issue)
Description copied from interface: FieldLayoutManager
Returns the fieldLayout for an issue.

Specified by:
getFieldLayout in interface FieldLayoutManager
Parameters:
issue - An Issue
Returns:
A FieldLayout

getEditableDefaultFieldLayout

public EditableDefaultFieldLayout getEditableDefaultFieldLayout()
Description copied from interface: FieldLayoutManager
Returns the default EditableDefaultFieldLayout.

Specified by:
getEditableDefaultFieldLayout in interface FieldLayoutManager
Returns:
the default EditableDefaultFieldLayout.

storeEditableDefaultFieldLayout

public void storeEditableDefaultFieldLayout(EditableDefaultFieldLayout editableDefaultFieldLayout)
Description copied from interface: FieldLayoutManager
Persist the given default EditableDefaultFieldLayout

Specified by:
storeEditableDefaultFieldLayout in interface FieldLayoutManager
Parameters:
editableDefaultFieldLayout - The EditableDefaultFieldLayout.

storeAndReturnEditableFieldLayout

public EditableFieldLayout storeAndReturnEditableFieldLayout(EditableFieldLayout editableFieldLayout)
Description copied from interface: FieldLayoutManager
Persists the EditableFieldLayout provided and returns a new instance as stored in the database.

Specified by:
storeAndReturnEditableFieldLayout in interface FieldLayoutManager
Parameters:
editableFieldLayout - the EditableFieldLayout.
Returns:
the layout as stored in the database.

storeEditableFieldLayout

public void storeEditableFieldLayout(EditableFieldLayout editableFieldLayout)
Description copied from interface: FieldLayoutManager
Persists the EditableFieldLayout provided.

Specified by:
storeEditableFieldLayout in interface FieldLayoutManager
Parameters:
editableFieldLayout - the EditableFieldLayout.

refreshCaches

protected void refreshCaches(Long id)

hasDefaultFieldLayout

public boolean hasDefaultFieldLayout()
Description copied from interface: FieldLayoutManager
Checks to see if a FieldLayout entity with type FieldLayoutManager.TYPE_DEFAULT exists

Specified by:
hasDefaultFieldLayout in interface FieldLayoutManager
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 interface FieldLayoutManager

restoreFieldLayout

protected void restoreFieldLayout(Long id)

refresh

public void refresh()
Description copied from interface: FieldLayoutManager
Clears all local caches.

Specified by:
refresh in interface FieldLayoutManager

getRelevantFieldLayout

protected FieldLayout getRelevantFieldLayout(Long id)
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

protected String getDefaultDescription(String fieldId)

getI18nHelper

protected I18nHelper getI18nHelper()


Copyright © 2002-2013 Atlassian. All Rights Reserved.