|
|
@ -75,10 +75,13 @@ public class ApplicationOperationsImpl implements ApplicationOperations {
|
|
|
|
for (org.wso2.carbon.device.mgt.common.Device device : deviceList) {
|
|
|
|
for (org.wso2.carbon.device.mgt.common.Device device : deviceList) {
|
|
|
|
if(MDMAppConstants.WEBAPP.equals(applicationOperationAction.getApp().getPlatform()) ||
|
|
|
|
if(MDMAppConstants.WEBAPP.equals(applicationOperationAction.getApp().getPlatform()) ||
|
|
|
|
applicationOperationAction.getApp().getPlatform().equalsIgnoreCase(device.getType())){
|
|
|
|
applicationOperationAction.getApp().getPlatform().equalsIgnoreCase(device.getType())){
|
|
|
|
|
|
|
|
if (MDMAppConstants.ACTIVE.equalsIgnoreCase(device.getEnrolmentInfo().
|
|
|
|
|
|
|
|
getStatus().toString())) {
|
|
|
|
deviceIdentifiers.add(getDeviceIdentifierByDevice(device));
|
|
|
|
deviceIdentifiers.add(getDeviceIdentifierByDevice(device));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (DeviceManagementException devEx) {
|
|
|
|
} catch (DeviceManagementException devEx) {
|
|
|
|
String errorMsg = "Error occurred fetch device for user " + userName +
|
|
|
|
String errorMsg = "Error occurred fetch device for user " + userName +
|
|
|
|
" at app installation";
|
|
|
|
" at app installation";
|
|
|
@ -96,9 +99,11 @@ public class ApplicationOperationsImpl implements ApplicationOperations {
|
|
|
|
getAllDevicesOfRole(userRole);
|
|
|
|
getAllDevicesOfRole(userRole);
|
|
|
|
|
|
|
|
|
|
|
|
for (org.wso2.carbon.device.mgt.common.Device device : deviceList) {
|
|
|
|
for (org.wso2.carbon.device.mgt.common.Device device : deviceList) {
|
|
|
|
|
|
|
|
if (MDMAppConstants.ACTIVE.equalsIgnoreCase(device.getEnrolmentInfo().getStatus().toString())) {
|
|
|
|
deviceIdentifiers.add(getDeviceIdentifierByDevice(device));
|
|
|
|
deviceIdentifiers.add(getDeviceIdentifierByDevice(device));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (DeviceManagementException devMgtEx) {
|
|
|
|
} catch (DeviceManagementException devMgtEx) {
|
|
|
|
String errorMsg = "Error occurred fetch device for user role " + userRole +
|
|
|
|
String errorMsg = "Error occurred fetch device for user role " + userRole +
|
|
|
|
" at app installation";
|
|
|
|
" at app installation";
|
|
|
|