com.atlassian.jira.issue.customfields.manager
Class DefaultOptionsService
java.lang.Object
com.atlassian.jira.issue.customfields.manager.DefaultOptionsService
- All Implemented Interfaces:
- OptionsService
public class DefaultOptionsService
- extends Object
- implements OptionsService
- Since:
- v6.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultOptionsService
public DefaultOptionsService(PermissionManager permissionManager,
OptionsManager optionsManager,
I18nHelper.BeanFactory i18nFactory)
validateSetOptions
@Nonnull
public ServiceOutcome<OptionsService.SetValidateResult> validateSetOptions(@Nonnull
OptionsService.SetOptionParams param)
- Description copied from interface:
OptionsService
- Check that the options of a
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.
- Specified by:
validateSetOptions
in interface OptionsService
- Parameters:
param
- the request.
- Returns:
- the result of the operation. The
OptionsService.SetValidateResult
can be passed to
OptionsService.setOptions(com.atlassian.jira.issue.customfields.manager.OptionsService.SetValidateResult)
to actually
perform the update.
setOptions
@Nonnull
public ServiceOutcome<Options> setOptions(@Nonnull
OptionsService.SetValidateResult validation)
- Description copied from interface:
OptionsService
- Replace the options on the custom field. The current options will be deleted (along with their values) and
new options created. No attempt is made to keep the current options or their values (i.e. even if an option
has the same name before and after the operation). The options are set to the values passed to the
OptionsService.validateSetOptions(com.atlassian.jira.issue.customfields.manager.OptionsService.SetOptionParams)
that
generated the passed OptionsService.SetValidateResult
.
- Specified by:
setOptions
in interface OptionsService
- Parameters:
validation
- a request previously validated by
OptionsService.validateSetOptions(com.atlassian.jira.issue.customfields.manager.OptionsService.SetOptionParams)
.
- Returns:
- the result of the operation.
Copyright © 2002-2014 Atlassian. All Rights Reserved.