|
|
@ -94,12 +94,17 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
|
|
|
|
device.getEnrolmentInfo().getId());
|
|
|
|
device.getEnrolmentInfo().getId());
|
|
|
|
DeviceManagementDAOFactory.commitTransaction();
|
|
|
|
DeviceManagementDAOFactory.commitTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
DeviceDetailsWrapper deviceDetailsWrapper = new DeviceDetailsWrapper();
|
|
|
|
String reportingHost = System.getProperty(DeviceManagementConstants.Report
|
|
|
|
deviceDetailsWrapper.setDevice(device);
|
|
|
|
.REPORTING_EVENT_HOST);
|
|
|
|
deviceDetailsWrapper.setDeviceInfo(deviceInfo);
|
|
|
|
if (reportingHost != null && !reportingHost.isEmpty()) {
|
|
|
|
deviceDetailsWrapper.getJSONString();
|
|
|
|
DeviceDetailsWrapper deviceDetailsWrapper = new DeviceDetailsWrapper();
|
|
|
|
HttpReportingUtil.invokeApi(deviceDetailsWrapper.getJSONString(),
|
|
|
|
deviceDetailsWrapper.setDevice(device);
|
|
|
|
"http://localhost:8081" + DeviceManagementConstants.Report.DEVICE_INFO_ENDPOINT);
|
|
|
|
deviceDetailsWrapper.setDeviceInfo(deviceInfo);
|
|
|
|
|
|
|
|
deviceDetailsWrapper.getJSONString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HttpReportingUtil.invokeApi(deviceDetailsWrapper.getJSONString(),
|
|
|
|
|
|
|
|
reportingHost + DeviceManagementConstants.Report.DEVICE_INFO_ENDPOINT);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//TODO :: This has to be fixed by adding the enrollment ID.
|
|
|
|
//TODO :: This has to be fixed by adding the enrollment ID.
|
|
|
|
if (DeviceManagerUtil.isPublishDeviceInfoResponseEnabled()) {
|
|
|
|
if (DeviceManagerUtil.isPublishDeviceInfoResponseEnabled()) {
|
|
|
|