Search in sources :

Example 1 with SetConfigurationObjectRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetConfigurationObjectRequest in project open-smart-grid-platform by OSGP.

the class BundledSetActivityCalendarSteps method theBundleRequestContainsASetConfigurationObjectAction.

@Given("^the bundle request contains a set activity calendar action with parameters$")
public void theBundleRequestContainsASetConfigurationObjectAction(final Map<String, String> parameters) throws Throwable {
    final SetConfigurationObjectRequest action = new SetConfigurationObjectRequestBuilder().fromParameterMap(parameters).build();
    this.addActionToBundleRequest(action);
}
Also used : SetConfigurationObjectRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetConfigurationObjectRequest) SetConfigurationObjectRequestBuilder(org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetConfigurationObjectRequestBuilder) Given(io.cucumber.java.en.Given)

Example 2 with SetConfigurationObjectRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetConfigurationObjectRequest in project open-smart-grid-platform by OSGP.

the class SetConfigurationObjectRequestBuilder method build.

public SetConfigurationObjectRequest build() {
    final ConfigurationObject configurationObject = new ConfigurationObject();
    configurationObject.setGprsOperationMode(this.gprsOperationModeType);
    if (!CollectionUtils.isEmpty(this.configurationFlags)) {
        final ConfigurationFlags configurationFlagsElement = new ConfigurationFlags();
        configurationFlagsElement.getConfigurationFlag().addAll(this.configurationFlags);
        configurationObject.setConfigurationFlags(configurationFlagsElement);
    }
    final SetConfigurationObjectRequest request = new SetConfigurationObjectRequest();
    request.setConfigurationObject(configurationObject);
    return request;
}
Also used : ConfigurationObject(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigurationObject) SetConfigurationObjectRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetConfigurationObjectRequest) ConfigurationFlags(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigurationFlags)

Example 3 with SetConfigurationObjectRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetConfigurationObjectRequest in project open-smart-grid-platform by OSGP.

the class BundledSetConfigurationObjectSteps method theBundleRequestContainsASetConfigurationObjectAction.

@Given("^the bundle request contains a set configuration object action$")
public void theBundleRequestContainsASetConfigurationObjectAction() throws Throwable {
    final SetConfigurationObjectRequest action = new SetConfigurationObjectRequestBuilder().withDefaults().build();
    this.addActionToBundleRequest(action);
}
Also used : SetConfigurationObjectRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetConfigurationObjectRequest) SetConfigurationObjectRequestBuilder(org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetConfigurationObjectRequestBuilder) Given(io.cucumber.java.en.Given)

Example 4 with SetConfigurationObjectRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetConfigurationObjectRequest in project open-smart-grid-platform by OSGP.

the class BundledSetConfigurationObjectSteps method theBundleRequestContainsASetConfigurationObjectAction.

@Given("^the bundle request contains a set configuration object action with parameters$")
public void theBundleRequestContainsASetConfigurationObjectAction(final Map<String, String> parameters) throws Throwable {
    final SetConfigurationObjectRequest action = new SetConfigurationObjectRequestBuilder().fromParameterMap(parameters).build();
    this.addActionToBundleRequest(action);
}
Also used : SetConfigurationObjectRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetConfigurationObjectRequest) SetConfigurationObjectRequestBuilder(org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetConfigurationObjectRequestBuilder) Given(io.cucumber.java.en.Given)

Aggregations

SetConfigurationObjectRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.SetConfigurationObjectRequest)4 Given (io.cucumber.java.en.Given)3 SetConfigurationObjectRequestBuilder (org.opensmartgridplatform.cucumber.platform.smartmetering.support.ws.smartmetering.bundle.SetConfigurationObjectRequestBuilder)3 ConfigurationFlags (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigurationFlags)1 ConfigurationObject (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigurationObject)1