@Component public class ElasticConfigurationConversionFunction extends Object implements RestConversionFunction<ElasticConfiguration,RestElasticConfiguration>
Constructor and Description |
---|
ElasticConfigurationConversionFunction(BambooLicenseManager bambooLicenseManager,
ElasticFunctionalityFacade elasticFunctionalityFacade,
ElasticInstanceManager elasticInstanceManager,
FeatureManager featureManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
LinkService linkService) |
Modifier and Type | Method and Description |
---|---|
RestElasticConfiguration |
apply(ElasticConfiguration input,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
ElasticConfiguration |
merge(ElasticConfiguration currentElasticConfiguration,
RestElasticConfiguration restElasticConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toFunction
@Autowired public ElasticConfigurationConversionFunction(BambooLicenseManager bambooLicenseManager, ElasticFunctionalityFacade elasticFunctionalityFacade, ElasticInstanceManager elasticInstanceManager, FeatureManager featureManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LinkService linkService)
@NotNull public RestElasticConfiguration apply(@NotNull ElasticConfiguration input, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<ElasticConfiguration,RestElasticConfiguration>
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the request@NotNull public ElasticConfiguration merge(@NotNull ElasticConfiguration currentElasticConfiguration, @NotNull RestElasticConfiguration restElasticConfig) throws WebValidationException
WebValidationException
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.