Class CustomFieldContextConfigHelperImpl
java.lang.Object
com.atlassian.jira.web.action.admin.customfields.CustomFieldContextConfigHelperImpl
- All Implemented Interfaces:
CustomFieldContextConfigHelper
@InjectableComponent
public class CustomFieldContextConfigHelperImpl
extends Object
implements CustomFieldContextConfigHelper
- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionCustomFieldContextConfigHelperImpl(SearchService searchService, FieldConfigSchemeManager fieldConfigSchemeManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoesAddingContextToCustomFieldAffectIssues(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.booleandoesChangingContextAffectIssues(ApplicationUser user, CustomField customField, FieldConfigScheme oldFieldConfigScheme, boolean isNewSchemeGlobal, List<JiraContextNode> projectContexts, List<IssueType> issueTypes) Determines if altering an existing configuration context for a custom field will affect any issues.booleandoesRemovingSchemeFromCustomFieldAffectIssues(ApplicationUser user, CustomField customField, FieldConfigScheme fieldConfigScheme) Determines if removing an existing configuration context for a custom field will affect any issues.
-
Constructor Details
-
CustomFieldContextConfigHelperImpl
public CustomFieldContextConfigHelperImpl(SearchService searchService, FieldConfigSchemeManager fieldConfigSchemeManager)
-
-
Method Details
-
doesAddingContextToCustomFieldAffectIssues
public boolean doesAddingContextToCustomFieldAffectIssues(ApplicationUser user, CustomField customField, List<JiraContextNode> projectContexts, List<IssueType> issueTypes, boolean isNewCustomField) Description copied from interface:CustomFieldContextConfigHelperDetermines if adding the project and issue type contexts to the custom field will affect any issues.- Specified by:
doesAddingContextToCustomFieldAffectIssuesin interfaceCustomFieldContextConfigHelper- 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
public boolean doesChangingContextAffectIssues(ApplicationUser user, CustomField customField, FieldConfigScheme oldFieldConfigScheme, boolean isNewSchemeGlobal, List<JiraContextNode> projectContexts, List<IssueType> issueTypes) Description copied from interface:CustomFieldContextConfigHelperDetermines if altering an existing configuration context for a custom field will affect any issues.- Specified by:
doesChangingContextAffectIssuesin interfaceCustomFieldContextConfigHelper- Parameters:
user- the usercustomField- the custom field being alteredoldFieldConfigScheme- the old field config schemeisNewSchemeGlobal- if modified scheme will be global or notprojectContexts- the projects in the new contextissueTypes- the issue types in the new context- Returns:
- true if issues are affected; false otherwise.
-
doesRemovingSchemeFromCustomFieldAffectIssues
public boolean doesRemovingSchemeFromCustomFieldAffectIssues(ApplicationUser user, CustomField customField, FieldConfigScheme fieldConfigScheme) Description copied from interface:CustomFieldContextConfigHelperDetermines if removing an existing configuration context for a custom field will affect any issues.- Specified by:
doesRemovingSchemeFromCustomFieldAffectIssuesin interfaceCustomFieldContextConfigHelper- Parameters:
user- the usercustomField- the custom fieldfieldConfigScheme- the scheme to be removed- Returns:
- true if issues are affected; false otherwise.
-