public class TimeTrackingRestFieldOperationsHandler extends Object implements RestFieldOperationsHandler
Constructor and Description |
---|
TimeTrackingRestFieldOperationsHandler(TimeTrackingSystemField field,
ApplicationProperties applicationProperties,
JiraDurationUtils jiraDurationUtils,
I18nHelper i18nHelper) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getSupportedOperations()
Returns a list of operation names which are supported by this field.
|
ErrorCollection |
updateIssueInputParameters(IssueContext issueCtx,
Issue issue,
String fieldId,
IssueInputParameters inputParameters,
List<FieldOperationHolder> operations)
This method has to set the field value(s) in the
IssueInputParameters based on the operations. |
public TimeTrackingRestFieldOperationsHandler(TimeTrackingSystemField field, ApplicationProperties applicationProperties, JiraDurationUtils jiraDurationUtils, I18nHelper i18nHelper)
public Set<String> getSupportedOperations()
RestFieldOperationsHandler
getSupportedOperations
in interface RestFieldOperationsHandler
public ErrorCollection updateIssueInputParameters(IssueContext issueCtx, Issue issue, String fieldId, IssueInputParameters inputParameters, List<FieldOperationHolder> operations)
RestFieldOperationsHandler
IssueInputParameters
based on the operations.
The issue service will validate the new field values in the IssueInputParameters, thus all permission checks are done by the issue service.updateIssueInputParameters
in interface RestFieldOperationsHandler
issueCtx
- the Issue Context , i.e. Project IssueTypeissue
- the issue (may be null when creating an issue)fieldId
- The Id of the field being processed.inputParameters
- the inputparameters containing all updatd field values.operations
- the operations to perform for this field. Has to be one of the supported operations.Copyright © 2002-2018 Atlassian. All Rights Reserved.