Class CascadingSelectCustomFieldOperationsHandler
java.lang.Object
com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler<Map<String,Option>>
com.atlassian.jira.issue.customfields.impl.rest.CascadingSelectCustomFieldOperationsHandler
- All Implemented Interfaces:
RestFieldOperationsHandler
public class CascadingSelectCustomFieldOperationsHandler
extends AbstractCustomFieldOperationsHandler<Map<String,Option>>
- Since:
- v5.0
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler
field, i18nHelper -
Constructor Summary
ConstructorsConstructorDescriptionCascadingSelectCustomFieldOperationsHandler(OptionsManager optionsManager, CustomField field, I18nHelper i18nHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinaliseOperation(Map<String, Option> finalValue, IssueInputParameters parameters, ErrorCollection errors) takes the value returnd by a call to applyOperation() and puts it into the inputparamsgetInitialCreateValue(IssueContext issueCtx) compute the "currentValue" to be passed to applyOperation()getInitialValue(Issue issue, ErrorCollection errors) compute the "currentValue" to be passed to applyOperation()Returns a list of operation names which are supported by this field.handleSetOperation(IssueContext issueCtx, Issue issue, Map<String, Option> currentFieldValue, JsonData operationValue, ErrorCollection errors) Methods inherited from class com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler
applyOperation, handleAddOperation, handleRemoveOperation, updateIssueInputParameters
-
Constructor Details
-
CascadingSelectCustomFieldOperationsHandler
public CascadingSelectCustomFieldOperationsHandler(OptionsManager optionsManager, CustomField field, I18nHelper i18nHelper)
-
-
Method Details
-
getSupportedOperations
Description copied from interface:RestFieldOperationsHandlerReturns a list of operation names which are supported by this field.- Specified by:
getSupportedOperationsin interfaceRestFieldOperationsHandler- Overrides:
getSupportedOperationsin classAbstractCustomFieldOperationsHandler<Map<String,Option>> - Returns:
- a set of supported Operations
-
handleSetOperation
protected Map<String,Option> handleSetOperation(IssueContext issueCtx, Issue issue, Map<String, Option> currentFieldValue, JsonData operationValue, ErrorCollection errors) - Overrides:
handleSetOperationin classAbstractCustomFieldOperationsHandler<Map<String,Option>>
-
getInitialValue
compute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialValuein classAbstractCustomFieldOperationsHandler<Map<String,Option>>
-
getInitialCreateValue
compute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialCreateValuein classAbstractCustomFieldOperationsHandler<Map<String,Option>> - Parameters:
issueCtx-
-
finaliseOperation
protected void finaliseOperation(Map<String, Option> finalValue, IssueInputParameters parameters, ErrorCollection errors) Description copied from class:AbstractCustomFieldOperationsHandlertakes the value returnd by a call to applyOperation() and puts it into the inputparams- Specified by:
finaliseOperationin classAbstractCustomFieldOperationsHandler<Map<String,Option>>
-