Interface CustomFieldContextConfigHelper
- All Known Implementing Classes:
CustomFieldContextConfigHelperImpl
public interface CustomFieldContextConfigHelper
Simple helper class for doing some work around custom field configuration contexts and the reindex message manager
in the web action domain.
- Since:
- v4.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doesAddingContextToCustomFieldAffectIssues
(ApplicationUser user, CustomField customField, List<JiraContextNode> projectContexts, List<IssueType> issueTypes, boolean isNewCustomField) Determines if adding the project and issue type contexts to the custom field will affect any issues.boolean
doesChangingContextAffectIssues
(ApplicationUser user, CustomField customField, FieldConfigScheme oldFieldConfigScheme, boolean isNewSchemeGlobal, List<JiraContextNode> newProjectContexts, List<IssueType> newIssueTypes) Determines if altering an existing configuration context for a custom field will affect any issues.boolean
doesRemovingSchemeFromCustomFieldAffectIssues
(ApplicationUser user, CustomField customField, FieldConfigScheme fieldConfigScheme) Determines if removing an existing configuration context for a custom field will affect any issues.
-
Method Details
-
doesAddingContextToCustomFieldAffectIssues
boolean doesAddingContextToCustomFieldAffectIssues(ApplicationUser user, CustomField customField, List<JiraContextNode> projectContexts, List<IssueType> issueTypes, boolean isNewCustomField) Determines if adding the project and issue type contexts to the custom field will affect any issues.- Parameters:
user
- the usercustomField
- the custom field being alteredprojectContexts
- the projects of the new configuration contextissueTypes
- the issue types of the new configuration contextisNewCustomField
- true if the field has just been added; false otherwise- Returns:
- true if issues are affected; false otherwise
-
doesChangingContextAffectIssues
boolean doesChangingContextAffectIssues(ApplicationUser user, CustomField customField, FieldConfigScheme oldFieldConfigScheme, boolean isNewSchemeGlobal, List<JiraContextNode> newProjectContexts, List<IssueType> newIssueTypes) Determines if altering an existing configuration context for a custom field will affect any issues.- Parameters:
user
- the usercustomField
- the custom field being alteredoldFieldConfigScheme
- the old field config schemeisNewSchemeGlobal
- if modified scheme will be global or notnewProjectContexts
- the projects in the new contextnewIssueTypes
- the issue types in the new context- Returns:
- true if issues are affected; false otherwise.
-
doesRemovingSchemeFromCustomFieldAffectIssues
boolean doesRemovingSchemeFromCustomFieldAffectIssues(ApplicationUser user, CustomField customField, FieldConfigScheme fieldConfigScheme) Determines if removing an existing configuration context for a custom field will affect any issues.- Parameters:
user
- the usercustomField
- the custom fieldfieldConfigScheme
- the scheme to be removed- Returns:
- true if issues are affected; false otherwise.
-