|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.imports.config.ValueMappingHelperImpl
public class ValueMappingHelperImpl
Field Summary | |
---|---|
protected DatabaseConnectionBean |
connectionBean
|
protected Map |
mappingDefinitions
|
Fields inherited from interface com.atlassian.jira.imports.config.ValueMappingHelper |
---|
NULL_VALUE, VALUE_CONFIG_PREFIX |
Constructor Summary | |
---|---|
ValueMappingHelperImpl(DatabaseConnectionBean connectionBean,
List mappingDefinitions)
|
Method Summary | |
---|---|
void |
copyFromProperties(org.apache.commons.configuration.PropertiesConfiguration configFile)
|
void |
copyToNewProperties(org.apache.commons.configuration.PropertiesConfiguration configFile)
|
Collection |
getAvailableFields()
Return ValueMappingDefinition objects for each field that can have their values mapped |
Collection |
getDistinctValuesForField(String fieldName)
Returns a collection of String objects representing a unique value of the field |
Collection |
getFieldsForValueMapping()
Returns a collection of ValueMappingDefinition objects that have been selected for value mappings |
OrderableField |
getJiraField(String fieldName)
Returns the JIRA field this field is being mapped to, if known |
Long |
getValueCountForField(String fieldName)
Returns a count of the number of unique values for that field |
String |
getValueMapping(String fieldName,
String value)
Gets whatever value the field and value pair is mapped to. |
String |
getValueMappingFieldName(String fieldName,
String value)
Returns the HTML field name for the input area for a given field and value combination |
String |
getValueMappingForImport(String fieldName,
String value)
Gets whatever value the field and value pair is mapped to for import. |
boolean |
isMapValueForField(String fieldName)
Returns wheteher or not the field has been selected for mapping |
void |
populateFieldForValueMappings(Map actionParams)
|
void |
populateValueMappings(Map actionParams)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final DatabaseConnectionBean connectionBean
protected final Map mappingDefinitions
Constructor Detail |
---|
public ValueMappingHelperImpl(DatabaseConnectionBean connectionBean, List mappingDefinitions)
Method Detail |
---|
public Collection getAvailableFields()
ValueMappingHelper
ValueMappingDefinition
objects for each field that can have their values mapped
getAvailableFields
in interface ValueMappingHelper
ValueMappingDefinition
. Never nullpublic Long getValueCountForField(String fieldName)
ValueMappingHelper
getValueCountForField
in interface ValueMappingHelper
public boolean isMapValueForField(String fieldName)
ValueMappingHelper
isMapValueForField
in interface ValueMappingHelper
public void populateFieldForValueMappings(Map actionParams)
populateFieldForValueMappings
in interface ValueMappingHelper
public Collection getFieldsForValueMapping()
ValueMappingHelper
ValueMappingDefinition
objects that have been selected for value mappings
getFieldsForValueMapping
in interface ValueMappingHelper
ValueMappingDefinition
. never nullpublic Collection getDistinctValuesForField(String fieldName)
ValueMappingHelper
String
objects representing a unique value of the field
getDistinctValuesForField
in interface ValueMappingHelper
String
. Never nullpublic String getValueMappingFieldName(String fieldName, String value)
ValueMappingHelper
getValueMappingFieldName
in interface ValueMappingHelper
public String getValueMapping(String fieldName, String value)
ValueMappingHelper
ValueMappingHelper.NULL_VALUE
if the field is to be cleared,
blank if it is to be imported as-is.
getValueMapping
in interface ValueMappingHelper
public void populateValueMappings(Map actionParams)
populateValueMappings
in interface ValueMappingHelper
public OrderableField getJiraField(String fieldName)
ValueMappingHelper
getJiraField
in interface ValueMappingHelper
public void copyFromProperties(org.apache.commons.configuration.PropertiesConfiguration configFile)
copyFromProperties
in interface ValueMappingHelper
public void copyToNewProperties(org.apache.commons.configuration.PropertiesConfiguration configFile)
copyToNewProperties
in interface ValueMappingHelper
public String getValueMappingForImport(String fieldName, String value)
ValueMappingHelper
getValueMappingForImport
in interface ValueMappingHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |