public class FieldConfigurationsImpl extends Object implements FieldConfigurations, FieldConfigurations.FieldConfiguration
FieldConfigurations.FieldConfiguration
Constructor and Description |
---|
FieldConfigurationsImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
FieldConfigurations.FieldConfiguration |
defaultFieldConfiguration() |
FieldConfigurations.FieldConfiguration |
fieldConfiguration(String fieldConfigurationName) |
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) |
@Inject public FieldConfigurationsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
public FieldConfigurations.FieldConfiguration defaultFieldConfiguration()
defaultFieldConfiguration
in interface FieldConfigurations
public FieldConfigurations.FieldConfiguration fieldConfiguration(String fieldConfigurationName)
fieldConfiguration
in interface FieldConfigurations
fieldConfigurationName
- name of the fieldconfigurationpublic void showField(int id)
showField
in interface FieldConfigurations.FieldConfiguration
id
- the sequence of the field you want to show in the Field Configuration screenpublic void showFields(String name)
showFields
in interface FieldConfigurations.FieldConfiguration
name
- The name of the field you wish to show e.g. Affects Version/s
public void hideField(int id)
hideField
in interface FieldConfigurations.FieldConfiguration
id
- the sequence of the field you want to hide in the Field Configuration screenpublic void hideFields(String name)
hideFields
in interface FieldConfigurations.FieldConfiguration
name
- The name of the field you wish to hide e.g. Component/s
public void requireField(String name)
requireField
in interface FieldConfigurations.FieldConfiguration
name
- The name of the field you wish to make required e.g. Description
public void optionalField(String name)
optionalField
in interface FieldConfigurations.FieldConfiguration
name
- The name of the field you wish to make optional e.g. Assignee
public String getRenderer(String fieldName)
getRenderer
in interface FieldConfigurations.FieldConfiguration
fieldName
- The name of the field e.g. Comment
public void setRenderer(String fieldName, String rendererName)
FieldConfigurations.FieldConfiguration
setRenderer
in interface FieldConfigurations.FieldConfiguration
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
public FieldScreenAssociations getScreens(String name)
getScreens
in interface FieldConfigurations.FieldConfiguration
name
- The name of the field you wish to associate to screens e.g. Time Tracking
Copyright © 2002-2018 Atlassian. All Rights Reserved.