com.atlassian.jira.issue.customfields.impl.rest
Class TextCustomFieldOperationsHandler

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler<String>
      extended by com.atlassian.jira.issue.customfields.impl.rest.TextCustomFieldOperationsHandler
All Implemented Interfaces:
RestFieldOperationsHandler

@Internal
public class TextCustomFieldOperationsHandler
extends AbstractCustomFieldOperationsHandler<String>

Basic operation handler for single value Text Fields.

Since:
v5.0

Field Summary
 
Fields inherited from class com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler
field, i18nHelper
 
Constructor Summary
TextCustomFieldOperationsHandler(CustomField field)
          Deprecated. @since 5.0-RC2 Use the constructor TextCustomFieldOperationsHandler(CustomField field, I18nHelper i18nHelper)
TextCustomFieldOperationsHandler(CustomField field, I18nHelper i18nHelper)
          Constructor.
 
Method Summary
protected  void finaliseOperation(String finalValue, IssueInputParameters parameters, ErrorCollection errors)
          takes the value returnd by a call to applyOperation() and puts it into the inputparams
protected  String getInitialCreateValue(IssueContext issueCtx)
          compute the "currentValue" to be passed to applyOperation()
protected  String getInitialValue(Issue issue, ErrorCollection errors)
          compute the "currentValue" to be passed to applyOperation()
protected  String handleSetOperation(IssueContext issueCtx, Issue issue, String currentFieldValue, JsonData operationValue, ErrorCollection errors)
           
 
Methods inherited from class com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler
applyOperation, getSupportedOperations, handleAddOperation, handleRemoveOperation, updateIssueInputParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextCustomFieldOperationsHandler

public TextCustomFieldOperationsHandler(CustomField field,
                                        I18nHelper i18nHelper)
Constructor.

Parameters:
field - Field the handler is for.
i18nHelper - I18nHelper

TextCustomFieldOperationsHandler

public TextCustomFieldOperationsHandler(CustomField field)
Deprecated. @since 5.0-RC2 Use the constructor TextCustomFieldOperationsHandler(CustomField field, I18nHelper i18nHelper)

Constructor.

Parameters:
field - Field the handler is for.
Method Detail

getInitialValue

protected String getInitialValue(Issue issue,
                                 ErrorCollection errors)
compute the "currentValue" to be passed to applyOperation()

Specified by:
getInitialValue in class AbstractCustomFieldOperationsHandler<String>

getInitialCreateValue

protected String getInitialCreateValue(IssueContext issueCtx)
compute the "currentValue" to be passed to applyOperation()

Specified by:
getInitialCreateValue in class AbstractCustomFieldOperationsHandler<String>
Parameters:
issueCtx -

handleSetOperation

protected String handleSetOperation(IssueContext issueCtx,
                                    Issue issue,
                                    String currentFieldValue,
                                    JsonData operationValue,
                                    ErrorCollection errors)
Overrides:
handleSetOperation in class AbstractCustomFieldOperationsHandler<String>

finaliseOperation

protected void finaliseOperation(String finalValue,
                                 IssueInputParameters parameters,
                                 ErrorCollection errors)
takes the value returnd by a call to applyOperation() and puts it into the inputparams

Specified by:
finaliseOperation in class AbstractCustomFieldOperationsHandler<String>


Copyright © 2002-2014 Atlassian. All Rights Reserved.