private AsyncCallback<QueryReturnValue> createGetStorageDomainsByStoragePoolIdCallback() { return returnValue -> { List<StorageDomain> storageDomains = returnValue.getReturnValue(); exportDomain.setEntity(getExportDomain(storageDomains)); if (exportDomain.getEntity() == null) { stopProgress(); } else { setExportName(exportDomain.getEntity().getName()); setExportDescription(exportDomain.getEntity().getDescription()); // get export-path AsyncDataProvider.getInstance().getStorageConnectionById(new AsyncQuery<>(connection -> { setExportPath(connection == null ? null : connection.getConnection()); stopProgress(); }), exportDomain.getEntity().getStorage(), true); } validateSource(); }; }
private AsyncCallback<QueryReturnValue> createGetStorageDomainsByStoragePoolIdCallback() { return returnValue -> { List<StorageDomain> storageDomains = returnValue.getReturnValue(); exportDomain.setEntity(getExportDomain(storageDomains)); if (exportDomain.getEntity() == null) { stopProgress(); } else { setExportName(exportDomain.getEntity().getName()); setExportDescription(exportDomain.getEntity().getDescription()); // get export-path AsyncDataProvider.getInstance().getStorageConnectionById(new AsyncQuery<>(connection -> { setExportPath(connection == null ? null : connection.getConnection()); stopProgress(); }), exportDomain.getEntity().getStorage(), true); } validateSource(); }; }
model.setId(entity.getId().toString()); model.setName(entity.getStorageName()); model.setDescription(entity.getDescription()); model.setComment(entity.getComment()); model.setType(map(entity.getStorageDomainType(), null));
model.setStorage(storage); model.getName().setEntity(storage.getStorageName()); model.getDescription().setEntity(storage.getDescription()); model.getComment().setEntity(storage.getComment()); model.setOriginalName(storage.getStorageName());