Search in sources :

Example 6 with GMeterInfoDto

use of org.opensmartgridplatform.dto.valueobjects.smartmetering.GMeterInfoDto in project open-smart-grid-platform by OSGP.

the class SetEncryptionKeyExchangeOnGMeterRequestMessageProcessor method handleMessage.

@Override
protected Serializable handleMessage(final DlmsConnectionManager conn, final DlmsDevice device, final Serializable requestObject, final MessageMetadata messageMetadata) throws OsgpException {
    this.assertRequestObjectType(GMeterInfoDto.class, requestObject);
    final GMeterInfoDto gMeterInfo = (GMeterInfoDto) requestObject;
    return this.configurationService.setEncryptionKeyExchangeOnGMeter(conn, device, gMeterInfo, messageMetadata);
}
Also used : GMeterInfoDto(org.opensmartgridplatform.dto.valueobjects.smartmetering.GMeterInfoDto)

Aggregations

GMeterInfoDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.GMeterInfoDto)6 Device (org.opensmartgridplatform.domain.core.entities.Device)2 SmartMeter (org.opensmartgridplatform.domain.core.entities.SmartMeter)2 FunctionalException (org.opensmartgridplatform.shared.exceptionhandling.FunctionalException)2 MethodResultCode (org.openmuc.jdlms.MethodResultCode)1 DlmsDevice (org.opensmartgridplatform.adapter.protocol.dlms.domain.entities.DlmsDevice)1 GatewayDeviceNotSetForMbusDeviceException (org.opensmartgridplatform.domain.smartmetering.exceptions.GatewayDeviceNotSetForMbusDeviceException)1 ChannelElementValuesDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.ChannelElementValuesDto)1 GetMBusDeviceOnChannelRequestDataDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.GetMBusDeviceOnChannelRequestDataDto)1 SetMbusUserKeyByChannelRequestDataDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.SetMbusUserKeyByChannelRequestDataDto)1