public class

IssueLinksRestFieldOperationsHandler

extends Object
implements RestFieldOperationsHandler
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.rest.IssueLinksRestFieldOperationsHandler

Summary

Public Constructors
IssueLinksRestFieldOperationsHandler(I18nHelper i18nHelper, IssueLinkTypeFinder issueLinkTypeFinder, IssueFinder issueFinder)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.fields.rest.RestFieldOperationsHandler

Public Constructors

public IssueLinksRestFieldOperationsHandler (I18nHelper i18nHelper, IssueLinkTypeFinder issueLinkTypeFinder, IssueFinder issueFinder)

Public Methods

public Set<String> getSupportedOperations ()

Returns a list of operation names which are supported by this field.

Returns
  • a set of supported Operations

public 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. The issue service will validate the new field values in the IssueInputParameters, thus all permission checks are done by the issue service.

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.