com.atlassian.jira.web.action.admin.customfields
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
 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> newProjectContexts, List<org.ofbiz.core.entity.GenericValue> newIssueTypes)
          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.
 

Method Detail

doesAddingContextToCustomFieldAffectIssues

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.

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

boolean doesChangingContextAffectIssues(com.atlassian.crowd.embedded.api.User user,
                                        CustomField customField,
                                        FieldConfigScheme oldFieldConfigScheme,
                                        boolean isNewSchemeGlobal,
                                        List<JiraContextNode> newProjectContexts,
                                        List<org.ofbiz.core.entity.GenericValue> newIssueTypes)
Determines if altering an existing configuration context for a custom field will affect any issues.

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
newProjectContexts - the projects in the new context
newIssueTypes - the issue types in the new context
Returns:
true if issues are affected; false otherwise.

doesRemovingSchemeFromCustomFieldAffectIssues

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.

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.