com.atlassian.jira.issue.fields.rest
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
Method Summary |
protected abstract String |
getFieldName()
|
protected Collection<String> |
getInitialCreateValue()
compute the "currentValue" to be passed to applyOperation() |
Set<String> |
getSupportedOperations()
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractVersionsRestFieldOperationsHandler
public AbstractVersionsRestFieldOperationsHandler(VersionManager versionManager,
I18nHelper i18nHelper)
getInitialCreateValue
protected Collection<String> getInitialCreateValue()
- Description copied from class:
AbstractFieldOperationsHandler
- compute the "currentValue" to be passed to applyOperation()
- Specified by:
getInitialCreateValue
in class AbstractFieldOperationsHandler<Collection<String>>
getSupportedOperations
public Set<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 class AbstractFieldOperationsHandler<Collection<String>>
toVersionIds
protected Long[] toVersionIds(Collection<String> ids,
ErrorCollection errors)
handleSetOperation
protected Collection<String> handleSetOperation(IssueContext issueCtx,
Issue issue,
String fieldId,
Collection<String> currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
- Overrides:
handleSetOperation
in class AbstractFieldOperationsHandler<Collection<String>>
getFieldName
protected abstract String getFieldName()
handleAddOperation
protected Collection<String> handleAddOperation(IssueContext issueCtx,
Issue issue,
String fieldId,
Collection<String> currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
- Overrides:
handleAddOperation
in class AbstractFieldOperationsHandler<Collection<String>>
Copyright © 2002-2013 Atlassian. All Rights Reserved.