com.atlassian.jira.web.action.admin.customfields
Class CustomFieldContextConfigHelperImpl

java.lang.Object
  extended by 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
CustomFieldContextConfigHelperImpl(SearchProvider searchProvider, FieldConfigSchemeManager fieldConfigSchemeManager)
           
 
Method Summary
 boolean doesAddingContextToCustomFieldAffectIssues(com.atlassian.crowd.embedded.api.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(com.atlassian.crowd.embedded.api.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(com.atlassian.crowd.embedded.api.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
 

Constructor Detail

CustomFieldContextConfigHelperImpl

public CustomFieldContextConfigHelperImpl(SearchProvider searchProvider,
                                          FieldConfigSchemeManager fieldConfigSchemeManager)
Method Detail

doesAddingContextToCustomFieldAffectIssues

public boolean doesAddingContextToCustomFieldAffectIssues(com.atlassian.crowd.embedded.api.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 user
customField - the custom field being altered
projectContexts - the projects of the new configuration context
issueTypes - the issue types of the new configuration context
isNewCustomField - true if the field has just been added; false otherwise
Returns:
true if issues are affected; false otherwise

doesChangingContextAffectIssues

public boolean doesChangingContextAffectIssues(com.atlassian.crowd.embedded.api.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 user
customField - the custom field being altered
oldFieldConfigScheme - the old field config scheme
isNewSchemeGlobal - if modified scheme will be global or not
projectContexts - the projects in the new context
issueTypes - the issue types in the new context
Returns:
true if issues are affected; false otherwise.

doesRemovingSchemeFromCustomFieldAffectIssues

public boolean doesRemovingSchemeFromCustomFieldAffectIssues(com.atlassian.crowd.embedded.api.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 user
customField - the custom field
fieldConfigScheme - the scheme to be removed
Returns:
true if issues are affected; false otherwise.


Copyright © 2002-2013 Atlassian. All Rights Reserved.