|
|
@ -34,11 +34,31 @@ public class SubscriptionManagerImpl implements SubscriptionManager {
|
|
|
|
log.info("Install application: " + applicationUUID + " to: " + deviceList.size() + " devices.");
|
|
|
|
log.info("Install application: " + applicationUUID + " to: " + deviceList.size() + " devices.");
|
|
|
|
for (DeviceIdentifier device : deviceList) {
|
|
|
|
for (DeviceIdentifier device : deviceList) {
|
|
|
|
String deviceId = device.getId();
|
|
|
|
String deviceId = device.getId();
|
|
|
|
|
|
|
|
//Todo: implementation, validations
|
|
|
|
|
|
|
|
//Todo: generating one time download link for the application and put install operation to device.
|
|
|
|
|
|
|
|
//Todo: Store the mappings in DB.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return deviceList;
|
|
|
|
return deviceList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public List<String> installApplicationForUsers(String applicationUUID, List<String> userList) throws ApplicationManagementException {
|
|
|
|
|
|
|
|
log.info("Install application: " + applicationUUID + " to: " + userList.size() + " users.");
|
|
|
|
|
|
|
|
for (String user : userList) {
|
|
|
|
|
|
|
|
//Todo: implementation
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return userList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public List<String> installApplicationForRoles(String applicationUUID, List<String> roleList) throws ApplicationManagementException {
|
|
|
|
|
|
|
|
log.info("Install application: " + applicationUUID + " to: " + roleList.size() + " users.");
|
|
|
|
|
|
|
|
for (String role : roleList) {
|
|
|
|
|
|
|
|
//Todo: implementation
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return roleList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<DeviceIdentifier> uninstallApplication(String applicationUUID, List<DeviceIdentifier> deviceList) throws ApplicationManagementException {
|
|
|
|
public List<DeviceIdentifier> uninstallApplication(String applicationUUID, List<DeviceIdentifier> deviceList) throws ApplicationManagementException {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|