com.atlassian.jira.web.action.admin.customfields
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
|
Method Summary |
boolean |
doesAddingContextToCustomFieldAffectIssues(User user,
CustomField customField,
List<JiraContextNode> projectContexts,
List<org.ofbiz.core.entity.GenericValue> issueTypes,
boolean isNewCustomField)
Determines if adding the project and issue type contexts to the custom field will affect any issues. |
boolean |
doesChangingContextAffectIssues(User user,
CustomField customField,
FieldConfigScheme oldFieldConfigScheme,
boolean isNewSchemeGlobal,
List<JiraContextNode> projectContexts,
List<org.ofbiz.core.entity.GenericValue> issueTypes)
Determines if altering an existing configuration context for a custom field will affect any issues. |
boolean |
doesRemovingSchemeFromCustomFieldAffectIssues(User user,
CustomField customField,
FieldConfigScheme fieldConfigScheme)
Determines if removing an existing configuration context for a custom field will affect any issues. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomFieldContextConfigHelperImpl
public CustomFieldContextConfigHelperImpl(SearchProvider searchProvider,
FieldConfigSchemeManager fieldConfigSchemeManager)
doesAddingContextToCustomFieldAffectIssues
public boolean doesAddingContextToCustomFieldAffectIssues(User user,
CustomField customField,
List<JiraContextNode> projectContexts,
List<org.ofbiz.core.entity.GenericValue> issueTypes,
boolean isNewCustomField)
- Description copied from interface:
CustomFieldContextConfigHelper
- Determines if adding the project and issue type contexts to the custom field will affect any issues.
- Specified by:
doesAddingContextToCustomFieldAffectIssues in interface CustomFieldContextConfigHelper
- 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(User user,
CustomField customField,
FieldConfigScheme oldFieldConfigScheme,
boolean isNewSchemeGlobal,
List<JiraContextNode> projectContexts,
List<org.ofbiz.core.entity.GenericValue> issueTypes)
- Description copied from interface:
CustomFieldContextConfigHelper
- Determines if altering an existing configuration context for a custom field will affect any issues.
- Specified by:
doesChangingContextAffectIssues in interface CustomFieldContextConfigHelper
- 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(User user,
CustomField customField,
FieldConfigScheme fieldConfigScheme)
- Description copied from interface:
CustomFieldContextConfigHelper
- Determines if removing an existing configuration context for a custom field will affect any issues.
- Specified by:
doesRemovingSchemeFromCustomFieldAffectIssues in interface CustomFieldContextConfigHelper
- Parameters:
user - the usercustomField - the custom fieldfieldConfigScheme - the scheme to be removed
- Returns:
- true if issues are affected; false otherwise.
Copyright © 2002-2011 Atlassian. All Rights Reserved.