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

java.lang.Object
  extended by com.atlassian.jira.issue.fields.rest.WorklogRestFieldOperationsHandler
All Implemented Interfaces:
RestFieldOperationsHandler

public class WorklogRestFieldOperationsHandler
extends Object
implements RestFieldOperationsHandler

Since:
v5.0

Field Summary
static String ADJUST_REMAINING_ESTIMATE_INPUT
           
static String INCREASE_BY_INPUT
           
static String NEW_ESTIMATE_INPUT
           
static String REDUCE_BY_INPUT
           
 
Constructor Summary
WorklogRestFieldOperationsHandler(DateTimeFormatterFactory dateTimeFormatterFactory, ProjectRoleManager projectRoleManager, I18nHelper i18n)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADJUST_REMAINING_ESTIMATE_INPUT

public static final String ADJUST_REMAINING_ESTIMATE_INPUT
See Also:
Constant Field Values

NEW_ESTIMATE_INPUT

public static final String NEW_ESTIMATE_INPUT
See Also:
Constant Field Values

REDUCE_BY_INPUT

public static final String REDUCE_BY_INPUT
See Also:
Constant Field Values

INCREASE_BY_INPUT

public static final String INCREASE_BY_INPUT
See Also:
Constant Field Values
Constructor Detail

WorklogRestFieldOperationsHandler

public WorklogRestFieldOperationsHandler(DateTimeFormatterFactory dateTimeFormatterFactory,
                                         ProjectRoleManager projectRoleManager,
                                         I18nHelper i18n)
Method Detail

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
Returns:
a set of supported Operations

updateIssueInputParameters

public ErrorCollection updateIssueInputParameters(IssueContext issueCtx,
                                                  Issue issue,
                                                  String fieldId,
                                                  IssueInputParameters inputParameters,
                                                  List<FieldOperationHolder> operations)
Description copied from interface: RestFieldOperationsHandler
This method has to set the field value(s) in the 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.

Specified by:
updateIssueInputParameters in interface RestFieldOperationsHandler
Parameters:
issueCtx - the Issue Context , i.e. Project IssueType
issue - 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.
Returns:
contains errors, if there was a problem when setting the field values on the IssueInputParameters. No errors if it was able to update the IssueInputParameters.


Copyright © 2002-2013 Atlassian. All Rights Reserved.