Class AbstractRootResourceConfigurableWebService<T extends ConfigurableService>
- java.lang.Object
-
- de.aristaflow.ilm.ws.base.service.AbstractSubResourceWebService<T>
-
- de.aristaflow.ilm.ws.base.service.AbstractRootResourceWebService<T>
-
- de.aristaflow.ilm.ws.base.service.AbstractRootResourceConfigurableWebService<T>
-
- Type Parameters:
T
- The type of the root resource web service which is the (interface of the) corresponding service.
- Direct Known Subclasses:
ExecutionManagerWebService
public class AbstractRootResourceConfigurableWebService<T extends ConfigurableService> extends AbstractRootResourceWebService<T>
This class extends theAbstractRootResourceWebService
by the means to manage a configuration. While theAbstractRootResourceWebService
corresponds toADEPT2Service
, this class corresponds toConfigurableService
.- See Also:
ConfigurableService
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRootResourceConfigurableWebService(T service, ServiceMetaData serviceMetaData)
Creates a new root resource web service for the designatedConfigurableService
using a class-specific logger from the designated log service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getChangeableConfigurationKeys(@NotNull @Valid SessionToken session)
Map<String,String>
getConfiguration(@NotNull @Valid SessionToken session)
String
getConfigurationValue(@NotNull @Valid SessionToken session, @NotNull String key)
void
setConfigurationValue(@NotNull @Valid SessionToken session, @NotNull String key, @NotNull String value)
-
Methods inherited from class de.aristaflow.ilm.ws.base.service.AbstractRootResourceWebService
getRelease, getServiceInstanceName, getUris, ping
-
Methods inherited from class de.aristaflow.ilm.ws.base.service.AbstractSubResourceWebService
getLogger, getLogService, getService, getServiceMetaData, getServiceUris, getSessionFactory, shutdown
-
-
-
-
Constructor Detail
-
AbstractRootResourceConfigurableWebService
protected AbstractRootResourceConfigurableWebService(T service, ServiceMetaData serviceMetaData)
Creates a new root resource web service for the designatedConfigurableService
using a class-specific logger from the designated log service.- Parameters:
service
- TheConfigurableService
wrapped by this root resource web service.serviceMetaData
- The service meta data for creating sub resources.
-
-
Method Detail
-
getConfiguration
public Map<String,String> getConfiguration(@NotNull @Valid @NotNull @Valid SessionToken session) throws ParameterException
-
getConfigurationValue
public String getConfigurationValue(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull String key) throws ParameterException
-
getChangeableConfigurationKeys
public List<String> getChangeableConfigurationKeys(@NotNull @Valid @NotNull @Valid SessionToken session) throws ParameterException
-
setConfigurationValue
public void setConfigurationValue(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull String key, @NotNull @NotNull String value) throws ParameterException, ConfigurationException
-
-