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);
}
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;
}
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);
}
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);
}
Aggregations