com.atlassian.jira.functest.framework.admin
Class FieldConfigurationSchemesImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.admin.FieldConfigurationSchemesImpl
All Implemented Interfaces:
FieldConfigurationSchemes, FieldConfigurationSchemes.FieldConfigurationScheme, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class FieldConfigurationSchemesImpl
extends AbstractFuncTestUtil
implements FieldConfigurationSchemes, FieldConfigurationSchemes.FieldConfigurationScheme

Since:
v4.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.admin.FieldConfigurationSchemes
FieldConfigurationSchemes.FieldConfigurationScheme
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
FieldConfigurationSchemesImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
           
 
Method Summary
 void addAssociation(String issueTypeId, String fieldConfigurationName)
           
 String addFieldConfigurationScheme(String name, String description)
           
 void editAssociation(String issueTypeId, String newFieldConfigurationName)
           
 FieldConfigurationSchemes.FieldConfigurationScheme fieldConfigurationScheme(String name)
           
protected  Form getForm()
           
protected  Navigation getNavigation()
           
 FieldConfigurationSchemes.FieldConfigurationScheme goTo()
          Navigates to the configuration page for this field configuration scheme.
 void removeAssociation(String issueTypeId)
           
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldConfigurationSchemesImpl

public FieldConfigurationSchemesImpl(net.sourceforge.jwebunit.WebTester tester,
                                     JIRAEnvironmentData environmentData)
Method Detail

getNavigation

protected Navigation getNavigation()

getForm

protected Form getForm()

addFieldConfigurationScheme

public String addFieldConfigurationScheme(String name,
                                          String description)
Specified by:
addFieldConfigurationScheme in interface FieldConfigurationSchemes
Parameters:
name - the name of the new scheme
description - the description of the new scheme; optional (use null to ignore)
Returns:
the id of the new field configuration scheme

fieldConfigurationScheme

public FieldConfigurationSchemes.FieldConfigurationScheme fieldConfigurationScheme(String name)
Specified by:
fieldConfigurationScheme in interface FieldConfigurationSchemes
Parameters:
name - the name of the field configuration scheme
Returns:
a reference to a FieldConfigurationSchemes.FieldConfigurationScheme instance that can be used to perform actions on the scheme. Note that only one field configuration scheme can be accessed at a time; if this method is called again, any prior references will now refer to the new scheme.

goTo

public FieldConfigurationSchemes.FieldConfigurationScheme goTo()
Description copied from interface: FieldConfigurationSchemes.FieldConfigurationScheme
Navigates to the configuration page for this field configuration scheme.

Specified by:
goTo in interface FieldConfigurationSchemes.FieldConfigurationScheme
Returns:
this field configuration scheme.

addAssociation

public void addAssociation(String issueTypeId,
                           String fieldConfigurationName)
Specified by:
addAssociation in interface FieldConfigurationSchemes.FieldConfigurationScheme
Parameters:
issueTypeId - the issue type id (e.g. Bug = "1"); must not be null
fieldConfigurationName - the name of the field configuration to associate to the issue type e.g. Default Field Configuration

editAssociation

public void editAssociation(String issueTypeId,
                            String newFieldConfigurationName)
Specified by:
editAssociation in interface FieldConfigurationSchemes.FieldConfigurationScheme
Parameters:
issueTypeId - the issue type id (e.g. Bug = "1"); null represents the "unmapped" association
newFieldConfigurationName - the name of the new field configuration to associate to the issue type e.g. Default Field Configuration

removeAssociation

public void removeAssociation(String issueTypeId)
Specified by:
removeAssociation in interface FieldConfigurationSchemes.FieldConfigurationScheme
Parameters:
issueTypeId - the issue type id (e.g. Bug = "1"); must not be null


Copyright © 2002-2014 Atlassian. All Rights Reserved.