public class CommentRestFieldOperationsHandler extends Object implements RestFieldOperationsHandler
| Constructor and Description |
|---|
CommentRestFieldOperationsHandler(CommentManager commentManager,
ProjectRoleManager projectRoleManager,
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 CommentRestFieldOperationsHandler(CommentManager commentManager, ProjectRoleManager projectRoleManager, I18nHelper i18nHelper)
public Set<String> getSupportedOperations()
RestFieldOperationsHandlergetSupportedOperations in interface RestFieldOperationsHandlerpublic ErrorCollection updateIssueInputParameters(IssueContext issueCtx, Issue issue, String fieldId, IssueInputParameters inputParameters, List<FieldOperationHolder> operations)
RestFieldOperationsHandlerIssueInputParameters 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 RestFieldOperationsHandlerissueCtx - 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-2015 Atlassian. All Rights Reserved.