com.atlassian.jira.issue.customfields.impl.rest
Class LabelsCustomFieldOperationsHandler
java.lang.Object
com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler<Collection<String>>
com.atlassian.jira.issue.customfields.impl.rest.LabelsCustomFieldOperationsHandler
- All Implemented Interfaces:
- RestFieldOperationsHandler
public class LabelsCustomFieldOperationsHandler
- extends AbstractCustomFieldOperationsHandler<Collection<String>>
- Since:
- v5.0
Method Summary |
protected void |
finaliseOperation(Collection<String> finalValue,
IssueInputParameters parameters,
ErrorCollection errors)
takes the value returnd by a call to applyOperation() and puts it into the inputparams |
protected List<String> |
getInitialCreateValue(IssueContext issueCtx)
compute the "currentValue" to be passed to applyOperation() |
protected List<String> |
getInitialValue(Issue issue,
ErrorCollection errors)
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,
Collection<String> currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
|
protected Collection<String> |
handleRemoveOperation(IssueContext issueCtx,
Issue issue,
Collection<String> currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
|
protected Collection<String> |
handleSetOperation(IssueContext issueCtx,
Issue issue,
Collection<String> currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabelsCustomFieldOperationsHandler
public LabelsCustomFieldOperationsHandler(CustomField field,
I18nHelper i18nHelper)
getSupportedOperations
public Set<String> getSupportedOperations()
- Description copied from interface:
RestFieldOperationsHandler
- Returns a list of operation names which are supported by this field.
- Specified by:
getSupportedOperations
in interface RestFieldOperationsHandler
- Overrides:
getSupportedOperations
in class AbstractCustomFieldOperationsHandler<Collection<String>>
- Returns:
- a set of supported Operations
handleRemoveOperation
protected Collection<String> handleRemoveOperation(IssueContext issueCtx,
Issue issue,
Collection<String> currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
- Overrides:
handleRemoveOperation
in class AbstractCustomFieldOperationsHandler<Collection<String>>
handleSetOperation
protected Collection<String> handleSetOperation(IssueContext issueCtx,
Issue issue,
Collection<String> currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
- Overrides:
handleSetOperation
in class AbstractCustomFieldOperationsHandler<Collection<String>>
handleAddOperation
protected Collection<String> handleAddOperation(IssueContext issueCtx,
Issue issue,
Collection<String> currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
- Overrides:
handleAddOperation
in class AbstractCustomFieldOperationsHandler<Collection<String>>
getInitialCreateValue
protected List<String> getInitialCreateValue(IssueContext issueCtx)
- Description copied from class:
AbstractCustomFieldOperationsHandler
- compute the "currentValue" to be passed to applyOperation()
- Specified by:
getInitialCreateValue
in class AbstractCustomFieldOperationsHandler<Collection<String>>
getInitialValue
protected List<String> getInitialValue(Issue issue,
ErrorCollection errors)
- Description copied from class:
AbstractCustomFieldOperationsHandler
- compute the "currentValue" to be passed to applyOperation()
- Specified by:
getInitialValue
in class AbstractCustomFieldOperationsHandler<Collection<String>>
finaliseOperation
protected void finaliseOperation(Collection<String> finalValue,
IssueInputParameters parameters,
ErrorCollection errors)
- Description copied from class:
AbstractCustomFieldOperationsHandler
- takes the value returnd by a call to applyOperation() and puts it into the inputparams
- Specified by:
finaliseOperation
in class AbstractCustomFieldOperationsHandler<Collection<String>>
Copyright © 2002-2014 Atlassian. All Rights Reserved.