Class ElasticConfigurationConversionFunction
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.elasticconfiguration.ElasticConfigurationConversionFunction
- All Implemented Interfaces:
RestConversionFunction<ElasticConfiguration,
RestElasticConfiguration>
@Component
public class ElasticConfigurationConversionFunction
extends Object
implements RestConversionFunction<ElasticConfiguration,RestElasticConfiguration>
-
Constructor Summary
ConstructorDescriptionElasticConfigurationConversionFunction
(BambooLicenseManager bambooLicenseManager, ElasticFunctionalityFacade elasticFunctionalityFacade, ElasticInstanceManager elasticInstanceManager, FeatureManager featureManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LinkService linkService, SecretEncryptionService secretEncryptionService) -
Method Summary
Modifier and TypeMethodDescription@NotNull RestElasticConfiguration
apply
(@NotNull ElasticConfiguration input, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo) Transforms a domain object to aAbstractRestModel
.@NotNull ElasticConfiguration
merge
(@NotNull ElasticConfiguration currentElasticConfiguration, @NotNull RestElasticConfiguration restElasticConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.plugins.rest.common.RestConversionFunction
toFunction
-
Constructor Details
-
ElasticConfigurationConversionFunction
@Inject public ElasticConfigurationConversionFunction(BambooLicenseManager bambooLicenseManager, ElasticFunctionalityFacade elasticFunctionalityFacade, ElasticInstanceManager elasticInstanceManager, FeatureManager featureManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LinkService linkService, SecretEncryptionService secretEncryptionService)
-
-
Method Details
-
apply
@NotNull public @NotNull RestElasticConfiguration apply(@NotNull @NotNull ElasticConfiguration input, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) Description copied from interface:RestConversionFunction
Transforms a domain object to aAbstractRestModel
. The resource will include links.- Specified by:
apply
in interfaceRestConversionFunction<ElasticConfiguration,
RestElasticConfiguration> - Parameters:
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the request- Returns:
- a RestResource
-
merge
@NotNull public @NotNull ElasticConfiguration merge(@NotNull @NotNull ElasticConfiguration currentElasticConfiguration, @NotNull @NotNull RestElasticConfiguration restElasticConfig) throws WebValidationException - Throws:
WebValidationException
-