Add device identifier for configuration retrieval endpoint

merge-requests/222/head
Pahansith 5 years ago
parent f01448d396
commit 3ae5339eff

@ -32,7 +32,7 @@ import java.util.List;
"the server")
public class DeviceConfiguration {
@ApiModelProperty(name = "deviceId", value = "ID of the device", required = true)
private int deviceId;
private String deviceId;
@ApiModelProperty(name = "deviceType", value = "Type of the device", required = true)
private String deviceType;
@ -52,11 +52,11 @@ public class DeviceConfiguration {
@ApiModelProperty(name = "deviceOwner", value = "Owner of the selected device", required = true)
private String deviceOwner;
public int getDeviceId() {
public String getDeviceId() {
return deviceId;
}
public void setDeviceId(int deviceId) {
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}

@ -3352,7 +3352,7 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
List<ConfigurationEntry> configurationEntries,
String deviceOwner) {
DeviceConfiguration deviceConfiguration = new DeviceConfiguration();
deviceConfiguration.setDeviceId(device.getId());
deviceConfiguration.setDeviceId(device.getDeviceIdentifier());
deviceConfiguration.setDeviceType(device.getType());
deviceConfiguration.setTenantDomain(tenantDomain);
deviceConfiguration.setConfigurationEntries(configurationEntries);

Loading…
Cancel
Save