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
ConstructorsConstructorDescriptionElasticConfigurationConversionFunction(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 RestElasticConfigurationapply(@NotNull ElasticConfiguration input, @NotNull Expansion expansion, @NotNull jakarta.ws.rs.core.UriInfo uriInfo) Transforms a domain object to aAbstractRestModel.@NotNull ElasticConfigurationmerge(@NotNull ElasticConfiguration currentElasticConfiguration, @NotNull RestElasticConfiguration restElasticConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 jakarta.ws.rs.core.UriInfo uriInfo) Description copied from interface:RestConversionFunctionTransforms a domain object to aAbstractRestModel. The resource will include links.- Specified by:
applyin 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
-