public class DefaultOptionsService extends Object implements OptionsService
OptionsService.SetOptionParams, OptionsService.SetValidateResult
Constructor and Description |
---|
DefaultOptionsService(PermissionManager permissionManager,
OptionsManager optionsManager,
I18nHelper.BeanFactory i18nFactory) |
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<Options> |
setOptions(OptionsService.SetValidateResult validation)
Replace the options on the custom field.
|
ServiceOutcome<OptionsService.SetValidateResult> |
validateSetOptions(OptionsService.SetOptionParams param)
Check that the options of a
CustomField can be replaced with (i.e. |
public DefaultOptionsService(PermissionManager permissionManager, OptionsManager optionsManager, I18nHelper.BeanFactory i18nFactory)
@Nonnull public ServiceOutcome<OptionsService.SetValidateResult> validateSetOptions(@Nonnull OptionsService.SetOptionParams param)
OptionsService
CustomField
can be replaced with (i.e. current options deleted and set to)
the passed options. The actual operation will not be executed until a call to
OptionsService.setOptions(com.atlassian.jira.issue.customfields.manager.OptionsService.SetValidateResult)
is later
made.validateSetOptions
in interface OptionsService
param
- the request.OptionsService.SetValidateResult
can be passed to
OptionsService.setOptions(com.atlassian.jira.issue.customfields.manager.OptionsService.SetValidateResult)
to actually
perform the update.@Nonnull public ServiceOutcome<Options> setOptions(@Nonnull OptionsService.SetValidateResult validation)
OptionsService
OptionsService.validateSetOptions(com.atlassian.jira.issue.customfields.manager.OptionsService.SetOptionParams)
that
generated the passed OptionsService.SetValidateResult
.setOptions
in interface OptionsService
validation
- a request previously validated by
OptionsService.validateSetOptions(com.atlassian.jira.issue.customfields.manager.OptionsService.SetOptionParams)
.Copyright © 2002-2018 Atlassian. All Rights Reserved.