public abstract class AbstractVersionsRestFieldOperationsHandler extends AbstractFieldOperationsHandler<Collection<String>>
i18nHelper| Constructor and Description |
|---|
AbstractVersionsRestFieldOperationsHandler(VersionManager versionManager,
I18nHelper i18nHelper) |
| Modifier and Type | Method and Description |
|---|---|
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) |
applyOperation, finaliseOperation, getInitialValue, toLongIds, updateIssueInputParameterspublic AbstractVersionsRestFieldOperationsHandler(VersionManager versionManager, I18nHelper i18nHelper)
protected Collection<String> getInitialCreateValue()
AbstractFieldOperationsHandlergetInitialCreateValue in class AbstractFieldOperationsHandler<Collection<String>>public Set<String> getSupportedOperations()
RestFieldOperationsHandlerprotected Collection<String> handleRemoveOperation(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors)
handleRemoveOperation in class AbstractFieldOperationsHandler<Collection<String>>protected Long[] toVersionIds(Collection<String> ids, ErrorCollection errors)
protected Collection<String> handleSetOperation(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors)
handleSetOperation in class AbstractFieldOperationsHandler<Collection<String>>protected abstract String getFieldName()
protected Collection<String> handleAddOperation(IssueContext issueCtx, Issue issue, String fieldId, Collection<String> currentFieldValue, JsonData operationValue, ErrorCollection errors)
handleAddOperation in class AbstractFieldOperationsHandler<Collection<String>>Copyright © 2002-2016 Atlassian. All Rights Reserved.