Class LabelsRestFieldOperationsHandler
java.lang.Object
com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler<Collection<String>>
com.atlassian.jira.issue.fields.rest.LabelsRestFieldOperationsHandler
- All Implemented Interfaces:
RestFieldOperationsHandler
public class LabelsRestFieldOperationsHandler
extends AbstractFieldOperationsHandler<Collection<String>>
- 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
(Collection<String> finalValue, IssueInputParameters parameters, ErrorCollection errors) takes the valuye returnd by a call to applyOperation() and puts it into the inputparamscompute 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.protected Collection<String>
handleAddOperation
(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors) protected Collection<String>
handleRemoveOperation
(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors) protected Collection<String>
handleSetOperation
(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors) Methods inherited from class com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler
applyOperation, toLongIds, updateIssueInputParameters
-
Constructor Details
-
LabelsRestFieldOperationsHandler
-
-
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
-
handleRemoveOperation
protected Collection<String> handleRemoveOperation(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors) - Overrides:
handleRemoveOperation
in classAbstractFieldOperationsHandler<Collection<String>>
-
handleSetOperation
protected Collection<String> handleSetOperation(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors) - Overrides:
handleSetOperation
in classAbstractFieldOperationsHandler<Collection<String>>
-
handleAddOperation
protected Collection<String> handleAddOperation(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors) - Overrides:
handleAddOperation
in classAbstractFieldOperationsHandler<Collection<String>>
-
getInitialCreateValue
Description copied from class:AbstractFieldOperationsHandler
compute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialCreateValue
in classAbstractFieldOperationsHandler<Collection<String>>
-
getInitialValue
Description copied from class:AbstractFieldOperationsHandler
compute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialValue
in classAbstractFieldOperationsHandler<Collection<String>>
-
finaliseOperation
protected void finaliseOperation(Collection<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<Collection<String>>
-