Class SecurityLevelRestFieldOperationsHandler
java.lang.Object
com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler<String>
com.atlassian.jira.issue.fields.rest.SecurityLevelRestFieldOperationsHandler
- All Implemented Interfaces:
RestFieldOperationsHandler
- Since:
- v5.0
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler
i18nHelper -
Constructor Summary
ConstructorsConstructorDescriptionSecurityLevelRestFieldOperationsHandler(IssueSecurityLevelManager issueSecurityLevelManager, JiraAuthenticationContext authenticationContext, I18nHelper i18nHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinaliseOperation(String finalValue, IssueInputParameters parameters, ErrorCollection errors) takes the valuye returnd by a call to applyOperation() and puts it into the inputparamsprotected Stringcompute the "currentValue" to be passed to applyOperation()protected StringgetInitialValue(Issue issue, ErrorCollection errors) compute the "currentValue" to be passed to applyOperation()Returns a list of operation names which are supported by this field.protected StringhandleSetOperation(IssueContext issueCtx, Issue issue, String fieldId, String currentFieldValue, JsonData operationValue, ErrorCollection errors) Methods inherited from class com.atlassian.jira.issue.fields.rest.AbstractFieldOperationsHandler
applyOperation, handleAddOperation, handleRemoveOperation, toLongIds, updateIssueInputParameters
-
Constructor Details
-
SecurityLevelRestFieldOperationsHandler
public SecurityLevelRestFieldOperationsHandler(IssueSecurityLevelManager issueSecurityLevelManager, JiraAuthenticationContext authenticationContext, I18nHelper i18nHelper)
-
-
Method Details
-
getSupportedOperations
Description copied from interface:RestFieldOperationsHandlerReturns a list of operation names which are supported by this field.- Returns:
- a set of supported Operations
-
getInitialCreateValue
Description copied from class:AbstractFieldOperationsHandlercompute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialCreateValuein classAbstractFieldOperationsHandler<String>
-
getInitialValue
Description copied from class:AbstractFieldOperationsHandlercompute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialValuein classAbstractFieldOperationsHandler<String>
-
finaliseOperation
protected void finaliseOperation(String finalValue, IssueInputParameters parameters, ErrorCollection errors) Description copied from class:AbstractFieldOperationsHandlertakes the valuye returnd by a call to applyOperation() and puts it into the inputparams- Specified by:
finaliseOperationin classAbstractFieldOperationsHandler<String>
-
handleSetOperation
protected String handleSetOperation(IssueContext issueCtx, Issue issue, String fieldId, String currentFieldValue, JsonData operationValue, ErrorCollection errors) - Overrides:
handleSetOperationin classAbstractFieldOperationsHandler<String>
-