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