Modify setting app type

feature/appm-store/pbac
Saad Sahibjan 6 years ago
parent c9c4d7a64b
commit 857f9057d3

@ -459,9 +459,10 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
//todo rethink and modify the {@link MobileApp} usage
MobileApp mobileApp = new MobileApp();
MobileAppTypes mobileAppType = MobileAppTypes.valueOf(application.getType());
if (DeviceTypes.ANDROID.toString().equalsIgnoreCase(deviceType)) {
if (SubAction.INSTALL.toString().equalsIgnoreCase(action)) {
mobileApp.setType(MobileAppTypes.ENTERPRISE);
mobileApp.setType(mobileAppType);
mobileApp.setLocation(application.getApplicationReleases().get(0).getInstallerPath());
return MDMAndroidOperationUtil.createInstallAppOperation(mobileApp);
} else if (SubAction.UNINSTALL.toString().equalsIgnoreCase(action)) {

@ -48,12 +48,9 @@ public class MDMAndroidOperationUtil {
switch (application.getType()) {
case ENTERPRISE:
EnterpriseApplication enterpriseApplication =
new EnterpriseApplication();
EnterpriseApplication enterpriseApplication = new EnterpriseApplication();
enterpriseApplication.setType(application.getType().toString());
//TODO: replace needs to be removed after doing the proper config update in application-mgt.xml
enterpriseApplication.setUrl(application.getLocation().replace("https://localhost:9443",
"http://192.168.8.6:9763"));
enterpriseApplication.setUrl(application.getLocation());
operation.setPayLoad(enterpriseApplication.toJSON());
break;
case PUBLIC:

Loading…
Cancel
Save