|
|
|
@ -270,14 +270,14 @@ public class ApplicationManagerProviderServiceImpl implements ApplicationManagem
|
|
|
|
|
applicationDAO.removeApplications(new ArrayList<>(appsToRemove.values()), device.getId(),
|
|
|
|
|
device.getEnrolmentInfo().getId(), tenantId);
|
|
|
|
|
}
|
|
|
|
|
// if (!appsToUpdate.isEmpty()) {
|
|
|
|
|
// applicationDAO.updateApplications(new ArrayList<>(appsToUpdate.values()), device.getId(),
|
|
|
|
|
// device.getEnrolmentInfo().getId(), tenantId);
|
|
|
|
|
// }
|
|
|
|
|
// if (!appsToInsert.isEmpty()) {
|
|
|
|
|
// applicationDAO.addApplications(new ArrayList<>(appsToInsert.values()), device.getId(),
|
|
|
|
|
// device.getEnrolmentInfo().getId(), tenantId);
|
|
|
|
|
// }
|
|
|
|
|
if (!appsToUpdate.isEmpty()) {
|
|
|
|
|
applicationDAO.updateApplications(new ArrayList<>(appsToUpdate.values()), device.getId(),
|
|
|
|
|
device.getEnrolmentInfo().getId(), tenantId);
|
|
|
|
|
}
|
|
|
|
|
if (!appsToInsert.isEmpty()) {
|
|
|
|
|
applicationDAO.addApplications(new ArrayList<>(appsToInsert.values()), device.getId(),
|
|
|
|
|
device.getEnrolmentInfo().getId(), tenantId);
|
|
|
|
|
}
|
|
|
|
|
DeviceManagementDAOFactory.commitTransaction();
|
|
|
|
|
|
|
|
|
|
String reportingHost = HttpReportingUtil.getReportingHost();
|
|
|
|
|