|
|
@ -73,7 +73,8 @@ public class ApplicationOperationsImpl implements ApplicationOperations {
|
|
|
|
getDevicesOfUser(userName);
|
|
|
|
getDevicesOfUser(userName);
|
|
|
|
|
|
|
|
|
|
|
|
for (org.wso2.carbon.device.mgt.common.Device device : deviceList) {
|
|
|
|
for (org.wso2.carbon.device.mgt.common.Device device : deviceList) {
|
|
|
|
if(applicationOperationAction.getApp().getPlatform().equalsIgnoreCase(device.getType())){
|
|
|
|
if(MDMAppConstants.WEBAPP.equals(applicationOperationAction.getApp().getPlatform()) ||
|
|
|
|
|
|
|
|
applicationOperationAction.getApp().getPlatform().equalsIgnoreCase(device.getType())){
|
|
|
|
deviceIdentifiers.add(getDeviceIdentifierByDevice(device));
|
|
|
|
deviceIdentifiers.add(getDeviceIdentifierByDevice(device));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -176,8 +177,11 @@ public class ApplicationOperationsImpl implements ApplicationOperations {
|
|
|
|
operation =
|
|
|
|
operation =
|
|
|
|
IOSApplicationOperationUtil.createInstallAppOperation(mobileApp);
|
|
|
|
IOSApplicationOperationUtil.createInstallAppOperation(mobileApp);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
operation =
|
|
|
|
if (MDMAppConstants.WEBAPP.equals(app.getPlatform())) {
|
|
|
|
IOSApplicationOperationUtil.createAppUninstallOperation(mobileApp);
|
|
|
|
operation = IOSApplicationOperationUtil.createWebClipUninstallOperation(mobileApp);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
operation = IOSApplicationOperationUtil.createAppUninstallOperation(mobileApp);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
activity = MDMServiceAPIUtils.getAppManagementService(applicationOperationAction.getTenantId())
|
|
|
|
activity = MDMServiceAPIUtils.getAppManagementService(applicationOperationAction.getTenantId())
|
|
|
|