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

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.admin.FieldConfigurationsImpl
All Implemented Interfaces:
FieldConfigurations, FieldConfigurations.FieldConfiguration, FuncTestLogger

public class FieldConfigurationsImpl
extends AbstractFuncTestUtil
implements FieldConfigurations, FieldConfigurations.FieldConfiguration

Since:
v4.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.admin.FieldConfigurations
FieldConfigurations.FieldConfiguration
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
FieldConfigurationsImpl(net.sourceforge.jwebunit.WebTester tester, com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
           
 
Method Summary
 FieldConfigurations.FieldConfiguration defaultFieldConfiguration()
           
 FieldConfigurations.FieldConfiguration fieldConfiguration(String fieldConfigurationName)
           
protected  Navigation getNavigation()
           
 String getRenderer(String fieldName)
           
 FieldScreenAssociations getScreens(String name)
           
 void hideField(int id)
           
 void hideFields(String name)
           
 void optionalField(String name)
           
 void requireField(String name)
           
 void setRenderer(String fieldName, String rendererName)
          Note: this assumes that the field is a Renderable Field.
 void showField(int id)
           
 void showFields(String name)
           
 
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

FieldConfigurationsImpl

public FieldConfigurationsImpl(net.sourceforge.jwebunit.WebTester tester,
                               com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
Method Detail

getNavigation

protected Navigation getNavigation()

defaultFieldConfiguration

public FieldConfigurations.FieldConfiguration defaultFieldConfiguration()
Specified by:
defaultFieldConfiguration in interface FieldConfigurations
Returns:
the Default Field Configuration Scheme to operate on

fieldConfiguration

public FieldConfigurations.FieldConfiguration fieldConfiguration(String fieldConfigurationName)
Specified by:
fieldConfiguration in interface FieldConfigurations
Parameters:
fieldConfigurationName - name of the fieldconfiguration
Returns:
thee field configuration to operate on

showField

public void showField(int id)
Specified by:
showField in interface FieldConfigurations.FieldConfiguration
Parameters:
id - the sequence of the field you want to show in the Field Configuration screen

showFields

public void showFields(String name)
Specified by:
showFields in interface FieldConfigurations.FieldConfiguration
Parameters:
name - The name of the field you wish to show e.g. Affects Version/s

hideField

public void hideField(int id)
Specified by:
hideField in interface FieldConfigurations.FieldConfiguration
Parameters:
id - the sequence of the field you want to hide in the Field Configuration screen

hideFields

public void hideFields(String name)
Specified by:
hideFields in interface FieldConfigurations.FieldConfiguration
Parameters:
name - The name of the field you wish to hide e.g. Component/s

requireField

public void requireField(String name)
Specified by:
requireField in interface FieldConfigurations.FieldConfiguration
Parameters:
name - The name of the field you wish to make required e.g. Description

optionalField

public void optionalField(String name)
Specified by:
optionalField in interface FieldConfigurations.FieldConfiguration
Parameters:
name - The name of the field you wish to make optional e.g. Assignee

getRenderer

public String getRenderer(String fieldName)
Specified by:
getRenderer in interface FieldConfigurations.FieldConfiguration
Parameters:
fieldName - The name of the field e.g. Comment
Returns:
the name of the renderer in effect

setRenderer

public void setRenderer(String fieldName,
                        String rendererName)
Description copied from interface: FieldConfigurations.FieldConfiguration
Note: this assumes that the field is a Renderable Field.

Specified by:
setRenderer in interface FieldConfigurations.FieldConfiguration
Parameters:
fieldName - The nme of the field to apply the renderer to e.g. Log Work
rendererName - The type of renderer to apply e.g. Wiki Style Renderer

getScreens

public FieldScreenAssociations getScreens(String name)
Specified by:
getScreens in interface FieldConfigurations.FieldConfiguration
Parameters:
name - The name of the field you wish to associate to screens e.g. Time Tracking
Returns:
an object to help you configure field screen associations


Copyright © 2002-2012 Atlassian. All Rights Reserved.