|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValueMappingHelper
| Field Summary | |
|---|---|
static String |
NULL_VALUE
|
static String |
VALUE_CONFIG_PREFIX
|
| 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)
|
| Field Detail |
|---|
static final String VALUE_CONFIG_PREFIX
static final String NULL_VALUE
| Method Detail |
|---|
Collection getAvailableFields()
ValueMappingDefinition objects for each field that can have their values mapped
ValueMappingDefinition. Never nullLong getValueCountForField(String fieldName)
fieldName -
boolean isMapValueForField(String fieldName)
fieldName -
void populateFieldForValueMappings(Map actionParams)
Collection getFieldsForValueMapping()
ValueMappingDefinition objects that have been selected for value mappings
ValueMappingDefinition. never nullCollection getDistinctValuesForField(String fieldName)
String objects representing a unique value of the field
fieldName -
String. Never null
String getValueMappingFieldName(String fieldName,
String value)
fieldName - value -
String getValueMapping(String fieldName,
String value)
NULL_VALUE if the field is to be cleared,
blank if it is to be imported as-is.
fieldName - value -
void populateValueMappings(Map actionParams)
OrderableField getJiraField(String fieldName)
fieldName -
void copyFromProperties(org.apache.commons.configuration.PropertiesConfiguration configFile)
void copyToNewProperties(org.apache.commons.configuration.PropertiesConfiguration configFile)
String getValueMappingForImport(String fieldName,
String value)
fieldName - value -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||