com.atlassian.jira.issue.fields.rest
Class ComponentsRestFieldOperationsHandler

java.lang.Object
  extended by com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler<Collection<String>>
      extended by com.atlassian.jira.issue.fields.rest.ComponentsRestFieldOperationsHandler
All Implemented Interfaces:
RestFieldOperationsHandler

public class ComponentsRestFieldOperationsHandler
extends AbstractFieldOperationsHandler<Collection<String>>

Since:
v5.0

Field Summary
 
Fields inherited from class com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler
i18nHelper
 
Constructor Summary
ComponentsRestFieldOperationsHandler(ProjectComponentManager projectComponentManager, I18nHelper i18nHelper)
           
 
Method Summary
protected  void finaliseOperation(Collection<String> finalValue, IssueInputParameters parameters, ErrorCollection errors)
          takes the valuye returnd by a call to applyOperation() and puts it into the inputparams
protected  Collection<String> getInitialCreateValue()
          compute the "currentValue" to be passed to applyOperation()
protected  Collection<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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentsRestFieldOperationsHandler

public ComponentsRestFieldOperationsHandler(ProjectComponentManager projectComponentManager,
                                            I18nHelper i18nHelper)
Method Detail

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>>

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>>

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>>

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>>

getInitialValue

protected Collection<String> getInitialValue(Issue issue,
                                             ErrorCollection errors)
Description copied from class: AbstractFieldOperationsHandler
compute the "currentValue" to be passed to applyOperation()

Specified by:
getInitialValue in class AbstractFieldOperationsHandler<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 class AbstractFieldOperationsHandler<Collection<String>>


Copyright © 2002-2012 Atlassian. All Rights Reserved.