@InjectableComponent public class CustomFieldContextConfigHelperImpl extends Object implements CustomFieldContextConfigHelper
Constructor and Description |
---|
CustomFieldContextConfigHelperImpl(SearchService searchService,
FieldConfigSchemeManager fieldConfigSchemeManager) |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
doesChangingContextAffectIssues(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.
|
boolean |
doesRemovingSchemeFromCustomFieldAffectIssues(ApplicationUser user,
CustomField customField,
FieldConfigScheme fieldConfigScheme)
Determines if removing an existing configuration context for a custom field will affect any issues.
|
public CustomFieldContextConfigHelperImpl(SearchService searchService, FieldConfigSchemeManager fieldConfigSchemeManager)
public boolean doesAddingContextToCustomFieldAffectIssues(ApplicationUser user, CustomField customField, List<JiraContextNode> projectContexts, List<IssueType> issueTypes, boolean isNewCustomField)
CustomFieldContextConfigHelper
doesAddingContextToCustomFieldAffectIssues
in interface CustomFieldContextConfigHelper
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 otherwisepublic boolean doesChangingContextAffectIssues(ApplicationUser user, CustomField customField, FieldConfigScheme oldFieldConfigScheme, boolean isNewSchemeGlobal, List<JiraContextNode> projectContexts, List<IssueType> issueTypes)
CustomFieldContextConfigHelper
doesChangingContextAffectIssues
in interface CustomFieldContextConfigHelper
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 contextpublic boolean doesRemovingSchemeFromCustomFieldAffectIssues(ApplicationUser user, CustomField customField, FieldConfigScheme fieldConfigScheme)
CustomFieldContextConfigHelper
doesRemovingSchemeFromCustomFieldAffectIssues
in interface CustomFieldContextConfigHelper
user
- the usercustomField
- the custom fieldfieldConfigScheme
- the scheme to be removedCopyright © 2002-2019 Atlassian. All Rights Reserved.