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 java.lang.Object implements FieldMapper
FieldMapper
with a modifyable option key, such as component, project etc.- Author:
- mvrueden
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractModifyableOptionKeyFieldMapper(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.String>> optionKeySupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.jira.rest.client.api.domain.input.ComplexIssueInputFieldValue
createComplexIssueInputField(java.lang.String fieldId, java.lang.String defaultKey, java.lang.Object value)
Allows overwriting the optionKey with the value defined inoptionKeySupplier
.java.lang.String
getOptionKey(java.lang.String fieldId, java.lang.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(java.lang.String fieldId, java.lang.String defaultKey, java.lang.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
ComplexIssueInputFieldValue
either with defaultKey or the key defined in jira.properties. - See Also:
FieldMapperRegistry.buildLookupMap(Properties)
-
getOptionKey
public java.lang.String getOptionKey(java.lang.String fieldId, java.lang.String defaultKey)
-
-