|
|
@ -319,7 +319,8 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public <T> void performEntAppSubscription(String applicationUUID, List<T> params, String subType, String action)
|
|
|
|
public <T> void performEntAppSubscription(String applicationUUID, List<T> params, String subType, String action,
|
|
|
|
|
|
|
|
boolean requiresUpdatingExternal)
|
|
|
|
throws ApplicationManagementException {
|
|
|
|
throws ApplicationManagementException {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
log.debug("Google Ent app Install operation is received to application which has UUID "
|
|
|
|
log.debug("Google Ent app Install operation is received to application which has UUID "
|
|
|
@ -347,7 +348,7 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
|
|
|
|
|
|
|
|
|
|
|
List<String> categories = getApplicationCategories(applicationDTO.getId());
|
|
|
|
List<String> categories = getApplicationCategories(applicationDTO.getId());
|
|
|
|
if (!categories.contains("GooglePlaySyncedApp")) {
|
|
|
|
if (!categories.contains("GooglePlaySyncedApp")) {
|
|
|
|
String msg = "This is not google play store synced application. Hence can't perform enteprise app "
|
|
|
|
String msg = "This is not google play store synced application. Hence can't perform enterprise app "
|
|
|
|
+ "installation.";
|
|
|
|
+ "installation.";
|
|
|
|
log.error(msg);
|
|
|
|
log.error(msg);
|
|
|
|
throw new BadRequestException(msg);
|
|
|
|
throw new BadRequestException(msg);
|
|
|
@ -424,12 +425,14 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//Installing the application
|
|
|
|
if (requiresUpdatingExternal) {
|
|
|
|
ApplicationPolicyDTO applicationPolicyDTO = new ApplicationPolicyDTO();
|
|
|
|
//Installing the application
|
|
|
|
applicationPolicyDTO.setApplicationDTO(applicationDTO);
|
|
|
|
ApplicationPolicyDTO applicationPolicyDTO = new ApplicationPolicyDTO();
|
|
|
|
applicationPolicyDTO.setDeviceIdentifierList(deviceIdentifiers);
|
|
|
|
applicationPolicyDTO.setApplicationDTO(applicationDTO);
|
|
|
|
applicationPolicyDTO.setAction(action);
|
|
|
|
applicationPolicyDTO.setDeviceIdentifierList(deviceIdentifiers);
|
|
|
|
installEnrollmentApplications(applicationPolicyDTO);
|
|
|
|
applicationPolicyDTO.setAction(action.toUpperCase());
|
|
|
|
|
|
|
|
installEnrollmentApplications(applicationPolicyDTO);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
appSubscribingDeviceIds = devices.stream().map(Device::getId).collect(Collectors.toList());
|
|
|
|
appSubscribingDeviceIds = devices.stream().map(Device::getId).collect(Collectors.toList());
|
|
|
|
Map<Integer, DeviceSubscriptionDTO> deviceSubscriptions = getDeviceSubscriptions(appSubscribingDeviceIds,
|
|
|
|
Map<Integer, DeviceSubscriptionDTO> deviceSubscriptions = getDeviceSubscriptions(appSubscribingDeviceIds,
|
|
|
@ -972,6 +975,7 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
|
|
|
Properties properties = new Properties();
|
|
|
|
Properties properties = new Properties();
|
|
|
|
properties.put(MDMAppConstants.IOSConstants.IS_PREVENT_BACKUP, true);
|
|
|
|
properties.put(MDMAppConstants.IOSConstants.IS_PREVENT_BACKUP, true);
|
|
|
|
properties.put(MDMAppConstants.IOSConstants.IS_REMOVE_APP, true);
|
|
|
|
properties.put(MDMAppConstants.IOSConstants.IS_REMOVE_APP, true);
|
|
|
|
|
|
|
|
properties.put(MDMAppConstants.IOSConstants.I_TUNES_ID, application.getPackageName());
|
|
|
|
app.setProperties(properties);
|
|
|
|
app.setProperties(properties);
|
|
|
|
return MDMIOSOperationUtil.createInstallAppOperation(app);
|
|
|
|
return MDMIOSOperationUtil.createInstallAppOperation(app);
|
|
|
|
} else if (SubAction.UNINSTALL.toString().equalsIgnoreCase(action)) {
|
|
|
|
} else if (SubAction.UNINSTALL.toString().equalsIgnoreCase(action)) {
|
|
|
|