use of org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel in project ovirt-engine by oVirt.
the class AddClusterRM method prepare1.
public void prepare1() {
EnlistmentContext enlistmentContext = (EnlistmentContext) context.enlistment.getContext();
HostListModel<?> model = enlistmentContext.getModel();
ConfigureLocalStorageModel configureModel = (ConfigureLocalStorageModel) model.getWindow();
ClusterModel clusterModel = configureModel.getCluster();
String clusterName = clusterModel.getName().getEntity();
if (!StringHelper.isNullOrEmpty(clusterName)) {
AsyncDataProvider.getInstance().getClusterListByName(new AsyncQuery<>(returnValue -> {
context.clusterFoundByName = Linq.firstOrNull(returnValue);
prepare2();
}), clusterName);
} else {
prepare2();
}
}
Aggregations