@InjectableComponent public class

FieldLayoutSchemeHelperImpl

extends Object
implements FieldLayoutSchemeHelper
java.lang.Object
   ↳ com.atlassian.jira.web.action.admin.issuefields.enterprise.FieldLayoutSchemeHelperImpl

Summary

Public Constructors
FieldLayoutSchemeHelperImpl(FieldLayoutManager fieldLayoutManager, SearchProvider searchProvider)
Public Methods
boolean doesChangingFieldLayoutAssociationRequireMessage(User user, FieldLayoutScheme fieldLayoutScheme, Long oldFieldLayoutId, Long newFieldLayoutId)
Determines whether or not a reindex message is required after changing the association of the specified issue type in the given scheme from the old field layout (Field Configuration) to the new field layout.
boolean doesChangingFieldLayoutRequireMessage(User user, EditableFieldLayout fieldLayout)
Determines whether or not a reindex message is required after modifying visibility of a field in the specified field layout.
boolean doesChangingFieldLayoutSchemeForProjectRequireMessage(User user, Long projectId, Long oldFieldLayoutSchemeId, Long newFieldLayoutSchemeId)
Determines whether or not a reindex message is required after changing the associated FieldLayoutScheme (field configuration scheme) for a project.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.action.admin.issuefields.enterprise.FieldLayoutSchemeHelper

Public Constructors

public FieldLayoutSchemeHelperImpl (FieldLayoutManager fieldLayoutManager, SearchProvider searchProvider)

Public Methods

public boolean doesChangingFieldLayoutAssociationRequireMessage (User user, FieldLayoutScheme fieldLayoutScheme, Long oldFieldLayoutId, Long newFieldLayoutId)

Determines whether or not a reindex message is required after changing the association of the specified issue type in the given scheme from the old field layout (Field Configuration) to the new field layout.

Parameters
user the user
fieldLayoutScheme the scheme in which the association change is occuring
oldFieldLayoutId the id of the Field Configuration that used to be associated
newFieldLayoutId the id of the new Field Configuration
Returns
  • true if the change will require a reindex message; false otherwise.

public boolean doesChangingFieldLayoutRequireMessage (User user, EditableFieldLayout fieldLayout)

Determines whether or not a reindex message is required after modifying visibility of a field in the specified field layout.

Parameters
user the user
fieldLayout the field layout being changed
Returns
  • true if the change will require a reindex message; false otherwise.

public boolean doesChangingFieldLayoutSchemeForProjectRequireMessage (User user, Long projectId, Long oldFieldLayoutSchemeId, Long newFieldLayoutSchemeId)

Determines whether or not a reindex message is required after changing the associated FieldLayoutScheme (field configuration scheme) for a project.

Parameters
user the user
projectId the project which is being changed
oldFieldLayoutSchemeId the old scheme
newFieldLayoutSchemeId the new scheme
Returns
  • true if the change will require a reindex message; false otherwise.