|
|
|
@ -49,6 +49,7 @@ public class DeviceProfileImportService extends BaseEntityImportService<DevicePr |
|
|
|
@Override |
|
|
|
protected DeviceProfile prepare(EntitiesImportCtx ctx, DeviceProfile deviceProfile, DeviceProfile old, EntityExportData<DeviceProfile> exportData, IdProvider idProvider) { |
|
|
|
deviceProfile.setDefaultRuleChainId(idProvider.getInternalId(deviceProfile.getDefaultRuleChainId())); |
|
|
|
deviceProfile.setDefaultEdgeRuleChainId(idProvider.getInternalId(deviceProfile.getDefaultEdgeRuleChainId())); |
|
|
|
deviceProfile.setDefaultDashboardId(idProvider.getInternalId(deviceProfile.getDefaultDashboardId())); |
|
|
|
deviceProfile.setFirmwareId(getOldEntityField(old, DeviceProfile::getFirmwareId)); |
|
|
|
deviceProfile.setSoftwareId(getOldEntityField(old, DeviceProfile::getSoftwareId)); |
|
|
|
|