Class AbstractVersionsRestFieldOperationsHandler
java.lang.Object
com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler<Collection<String>>
com.atlassian.jira.issue.fields.rest.AbstractVersionsRestFieldOperationsHandler
- All Implemented Interfaces:
RestFieldOperationsHandler
- Direct Known Subclasses:
AffectedVersionsRestFieldOperationsHandler
,FixForVersionsRestFieldOperationsHandler
,MultiVersionCustomFieldOperationsHandler
public abstract class AbstractVersionsRestFieldOperationsHandler
extends AbstractFieldOperationsHandler<Collection<String>>
- Since:
- v5.0
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler
i18nHelper
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractVersionsRestFieldOperationsHandler
(VersionManager versionManager, I18nHelper i18nHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
protected Collection
<String> 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) protected Long[]
toVersionIds
(Collection<String> ids, ErrorCollection errors) Methods inherited from class com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler
applyOperation, finaliseOperation, getInitialValue, toLongIds, updateIssueInputParameters
-
Constructor Details
-
AbstractVersionsRestFieldOperationsHandler
public AbstractVersionsRestFieldOperationsHandler(VersionManager versionManager, I18nHelper i18nHelper)
-
-
Method Details
-
getInitialCreateValue
Description copied from class:AbstractFieldOperationsHandler
compute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialCreateValue
in classAbstractFieldOperationsHandler<Collection<String>>
-
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>>
-
toVersionIds
-
handleSetOperation
protected Collection<String> handleSetOperation(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors) - Overrides:
handleSetOperation
in classAbstractFieldOperationsHandler<Collection<String>>
-
getFieldName
-
handleAddOperation
protected Collection<String> handleAddOperation(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors) - Overrides:
handleAddOperation
in classAbstractFieldOperationsHandler<Collection<String>>
-