Interface FieldLayoutSchemeHelper
- All Known Implementing Classes:
FieldLayoutSchemeHelperImpl
public interface FieldLayoutSchemeHelper
Provides help with some business logic around the configuration of Field Configuration Schemes (FieldLayoutSchemes in
code) and the requirement for reindex.
- Since:
- v4.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleandoesChangingFieldLayoutAssociationRequireMessage(ApplicationUser 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.booleandoesChangingFieldLayoutRequireMessage(ApplicationUser user, EditableFieldLayout fieldLayout) Determines whether or not a reindex message is required after modifying visibility of a field in the specified field layout.booleandoesChangingFieldLayoutSchemeForProjectRequireMessage(ApplicationUser user, Long projectId, Long oldFieldLayoutSchemeId, Long newFieldLayoutSchemeId) Determines whether or not a reindex message is required after changing the associatedFieldLayoutScheme(field configuration scheme) for a project.
-
Method Details
-
doesChangingFieldLayoutAssociationRequireMessage
boolean doesChangingFieldLayoutAssociationRequireMessage(ApplicationUser 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 userfieldLayoutScheme- the scheme in which the association change is occuringoldFieldLayoutId- the id of the Field Configuration that used to be associatednewFieldLayoutId- the id of the new Field Configuration- Returns:
- true if the change will require a reindex message; false otherwise.
-
doesChangingFieldLayoutRequireMessage
boolean doesChangingFieldLayoutRequireMessage(ApplicationUser 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 userfieldLayout- the field layout being changed- Returns:
- true if the change will require a reindex message; false otherwise.
-
doesChangingFieldLayoutSchemeForProjectRequireMessage
boolean doesChangingFieldLayoutSchemeForProjectRequireMessage(ApplicationUser user, Long projectId, Long oldFieldLayoutSchemeId, Long newFieldLayoutSchemeId) Determines whether or not a reindex message is required after changing the associatedFieldLayoutScheme(field configuration scheme) for a project.- Parameters:
user- the userprojectId- the project which is being changedoldFieldLayoutSchemeId- the old schemenewFieldLayoutSchemeId- the new scheme- Returns:
- true if the change will require a reindex message; false otherwise.
-