public class ElasticConfigurationResource extends Object
Modifier and Type | Field and Description |
---|---|
static RestElasticConfiguration |
REST_ELASTIC_CONFIGURATION |
static String |
REST_PATH |
Constructor and Description |
---|
ElasticConfigurationResource(RestPermissionCheck restPermissionCheck,
ElasticConfigurationConversionFunction elasticConfigurationConversionFunction,
ElasticAccountBean elasticAccountBean) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getRestElasticConfiguration(javax.ws.rs.core.UriInfo uriInfo,
Expansion expansion)
Return the current elastic configuration.
|
javax.ws.rs.core.Response |
updateRestElasticConfiguration(RestElasticConfiguration restElasticConfiguration,
javax.ws.rs.core.UriInfo uriInfo)
Update elastic configuration.
|
public static final String REST_PATH
public static final RestElasticConfiguration REST_ELASTIC_CONFIGURATION
public ElasticConfigurationResource(RestPermissionCheck restPermissionCheck, ElasticConfigurationConversionFunction elasticConfigurationConversionFunction, ElasticAccountBean elasticAccountBean)
public javax.ws.rs.core.Response getRestElasticConfiguration(@Context javax.ws.rs.core.UriInfo uriInfo, @Context Expansion expansion)
uriInfo
- Provides access to request URI information.expansion
- Provides information about expansionpublic javax.ws.rs.core.Response updateRestElasticConfiguration(@NotNull RestElasticConfiguration restElasticConfiguration, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
uriInfo
- Provide access to request URI information.restElasticConfiguration
- The updated elastic configurationWebValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.