Class EnvironmentRestFieldOperationsHandler
java.lang.Object
com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler<String>
com.atlassian.jira.issue.fields.rest.EnvironmentRestFieldOperationsHandler
- All Implemented Interfaces:
RestFieldOperationsHandler
Provide edit functionality via REST for the Environment Field
- Since:
- v5.0
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler
i18nHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finaliseOperation
(String finalValue, IssueInputParameters parameters, ErrorCollection errors) takes the valuye returnd by a call to applyOperation() and puts it into the inputparamsprotected String
compute the "currentValue" to be passed to applyOperation()protected String
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.protected String
handleSetOperation
(IssueContext issueCtx, Issue issue, String fieldId, String currentFieldValue, JsonData operationValue, ErrorCollection errors) Methods inherited from class com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler
applyOperation, handleAddOperation, handleRemoveOperation, toLongIds, updateIssueInputParameters
-
Constructor Details
-
EnvironmentRestFieldOperationsHandler
-
-
Method Details
-
getSupportedOperations
Description copied from interface:RestFieldOperationsHandler
Returns a list of operation names which are supported by this field.- Returns:
- a set of supported Operations
-
getInitialCreateValue
Description copied from class:AbstractFieldOperationsHandler
compute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialCreateValue
in classAbstractFieldOperationsHandler<String>
-
getInitialValue
Description copied from class:AbstractFieldOperationsHandler
compute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialValue
in classAbstractFieldOperationsHandler<String>
-
finaliseOperation
protected void finaliseOperation(String finalValue, IssueInputParameters parameters, ErrorCollection errors) Description copied from class:AbstractFieldOperationsHandler
takes the valuye returnd by a call to applyOperation() and puts it into the inputparams- Specified by:
finaliseOperation
in classAbstractFieldOperationsHandler<String>
-
handleSetOperation
protected String handleSetOperation(IssueContext issueCtx, Issue issue, String fieldId, String currentFieldValue, JsonData operationValue, ErrorCollection errors) - Overrides:
handleSetOperation
in classAbstractFieldOperationsHandler<String>
-