Class AbstractModifyableOptionKeyFieldMapper
- java.lang.Object
-
- org.opennms.netmgt.ticketer.jira.fieldmapper.AbstractModifyableOptionKeyFieldMapper
-
- All Implemented Interfaces:
FieldMapper
- Direct Known Subclasses:
CascadingSelectFieldMapper,ComponentFieldMapper,GroupFieldMapper,IssueTypeFieldMapper,MultiSelectFieldMapper,PriorityFieldMapper,ProjectFieldMapper,SingleSelectFieldMapper,UserFieldMapper,VersionFieldMapper
public abstract class AbstractModifyableOptionKeyFieldMapper extends Object implements FieldMapper
FieldMapperwith a modifyable option key, such as component, project etc.- Author:
- mvrueden
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractModifyableOptionKeyFieldMapper(java.util.function.Supplier<Map<String,String>> optionKeySupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValuecreateComplexIssueInputField(String fieldId, String defaultKey, Object value)Allows overwriting the optionKey with the value defined inoptionKeySupplier.StringgetOptionKey(String fieldId, String defaultKey)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.ticketer.jira.fieldmapper.FieldMapper
mapToFieldValue, matches
-
-
-
-
Method Detail
-
createComplexIssueInputField
public com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValue createComplexIssueInputField(String fieldId, String defaultKey, Object value)
Allows overwriting the optionKey with the value defined inoptionKeySupplier.- Parameters:
fieldId- the id of the fielddefaultKey- the default option key (e.g. value, name, key, etc.)value- The value to set- Returns:
- The
ComplexIssueInputFieldValueeither with defaultKey or the key defined in jira.properties. - See Also:
FieldMapperRegistry.buildLookupMap(Properties)
-
-