|
|
|
@ -52,11 +52,11 @@ public class SubscriptionManagementAPIImpl implements SubscriptionManagementAPI{
|
|
|
|
|
Object result;
|
|
|
|
|
SubscriptionManager subscriptionManager = APIUtil.getSubscriptionManager();
|
|
|
|
|
try {
|
|
|
|
|
String applicationUUTD = installationDetails.getApplicationUUID();
|
|
|
|
|
String applicationUUID = installationDetails.getApplicationUUID();
|
|
|
|
|
String versionName = installationDetails.getVersionName();
|
|
|
|
|
if (!installationDetails.getDeviceIdentifiers().isEmpty()) {
|
|
|
|
|
List<DeviceIdentifier> deviceList = installationDetails.getDeviceIdentifiers();
|
|
|
|
|
result = subscriptionManager.installApplicationForDevices(applicationUUTD, versionName, deviceList);
|
|
|
|
|
result = subscriptionManager.installApplicationForDevices(applicationUUID, versionName, deviceList);
|
|
|
|
|
} else if (!installationDetails.getUserNameList().isEmpty()) {
|
|
|
|
|
List<String> userList = installationDetails.getUserNameList();
|
|
|
|
|
result = subscriptionManager.installApplicationForUsers(applicationUUID, userList, versionName);
|
|
|
|
|