com.atlassian.jira.issue.customfields.impl.rest
Class ProjectCustomFieldOperationsHandler
java.lang.Object
com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler<String>
com.atlassian.jira.issue.customfields.impl.rest.ProjectCustomFieldOperationsHandler
- All Implemented Interfaces:
- RestFieldOperationsHandler
public class ProjectCustomFieldOperationsHandler
- extends AbstractCustomFieldOperationsHandler<String>
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectCustomFieldOperationsHandler
public ProjectCustomFieldOperationsHandler(ProjectManager projectManager,
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<String>
- Returns:
- a set of supported Operations
handleSetOperation
protected String handleSetOperation(IssueContext issueCtx,
Issue issue,
String currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
- Overrides:
handleSetOperation
in class AbstractCustomFieldOperationsHandler<String>
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
-
finaliseOperation
protected void finaliseOperation(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<String>
Copyright © 2002-2012 Atlassian. All Rights Reserved.