use of org.opensmartgridplatform.dto.valueobjects.smartmetering.GetConfigurationObjectRequestDto in project open-smart-grid-platform by OSGP.
the class ConfigurationService method getConfigurationObject.
public void getConfigurationObject(final MessageMetadata messageMetadata, final GetConfigurationObjectRequest getConfigurationObjectRequest) throws FunctionalException {
log.info("getConfigurationObject for organisationIdentification: {} for deviceIdentification: {}", messageMetadata.getOrganisationIdentification(), messageMetadata.getDeviceIdentification());
final SmartMeter smartMeter = this.domainHelperService.findSmartMeter(messageMetadata.getDeviceIdentification());
final GetConfigurationObjectRequestDto requestDto = this.configurationMapper.map(getConfigurationObjectRequest, GetConfigurationObjectRequestDto.class);
this.osgpCoreRequestMessageSender.send(requestDto, messageMetadata.builder().withIpAddress(smartMeter.getIpAddress()).withNetworkSegmentIds(smartMeter.getBtsId(), smartMeter.getCellId()).build());
}
Aggregations