Class FieldConfigurationsImpl
java.lang.Object
com.atlassian.jira.functest.framework.admin.FieldConfigurationsImpl
- All Implemented Interfaces:
FieldConfigurations
,FieldConfigurations.FieldConfiguration
public class FieldConfigurationsImpl
extends Object
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
-
Constructor Summary
ConstructorsConstructorDescriptionFieldConfigurationsImpl
(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData) -
Method Summary
Modifier and TypeMethodDescriptionfieldConfiguration
(String fieldConfigurationName) getRenderer
(String fieldName) 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)
-
Constructor Details
-
FieldConfigurationsImpl
@Inject public FieldConfigurationsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
-
-
Method Details
-
defaultFieldConfiguration
- Specified by:
defaultFieldConfiguration
in interfaceFieldConfigurations
- Returns:
- the Default Field Configuration Scheme to operate on
-
fieldConfiguration
- Specified by:
fieldConfiguration
in interfaceFieldConfigurations
- Parameters:
fieldConfigurationName
- name of the fieldconfiguration- Returns:
- thee field configuration to operate on
-
showField
public void showField(int id) - Specified by:
showField
in interfaceFieldConfigurations.FieldConfiguration
- Parameters:
id
- the sequence of the field you want to show in the Field Configuration screen
-
showFields
- Specified by:
showFields
in interfaceFieldConfigurations.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 interfaceFieldConfigurations.FieldConfiguration
- Parameters:
id
- the sequence of the field you want to hide in the Field Configuration screen
-
hideFields
- Specified by:
hideFields
in interfaceFieldConfigurations.FieldConfiguration
- Parameters:
name
- The name of the field you wish to hide e.g.Component/s
-
requireField
- Specified by:
requireField
in interfaceFieldConfigurations.FieldConfiguration
- Parameters:
name
- The name of the field you wish to make required e.g.Description
-
optionalField
- Specified by:
optionalField
in interfaceFieldConfigurations.FieldConfiguration
- Parameters:
name
- The name of the field you wish to make optional e.g.Assignee
-
getRenderer
- Specified by:
getRenderer
in interfaceFieldConfigurations.FieldConfiguration
- Parameters:
fieldName
- The name of the field e.g.Comment
- Returns:
- the name of the renderer in effect
-
setRenderer
Description copied from interface:FieldConfigurations.FieldConfiguration
Note: this assumes that the field is a Renderable Field.- Specified by:
setRenderer
in interfaceFieldConfigurations.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
- Specified by:
getScreens
in interfaceFieldConfigurations.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
-