use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class NewHostModel method updateDiscoveredHostList.
private void updateDiscoveredHostList(String searchFilter) {
Provider provider = getProviders().getSelectedItem();
if (provider != null) {
AsyncDataProvider.getInstance().getExternalProviderHostList(new AsyncQuery<>(hosts -> {
ListModel<VDS> hostNameListModel = getExternalHostName();
hostNameListModel.setItems(hosts);
hostNameListModel.setIsChangeable(true);
setEnableSearchHost(true);
}), provider.getId(), true, searchFilter);
} else {
getExternalHostName().setItems(null);
getExternalHostName().setIsChangeable(false);
setEnableSearchHost(false);
}
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class BackendOpenStackNetworkProviderResource method remove.
@Override
public Response remove() {
Provider provider = BackendExternalProviderHelper.getProvider(this, id);
ProviderParameters parameters = new ProviderParameters(provider);
return performAction(ActionType.RemoveProvider, parameters);
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class BackendOpenStackNetworkProvidersResource method getBackendCollection.
private List<Provider> getBackendCollection() {
if (isFiltered()) {
return getBackendCollection(QueryType.GetAllProviders, new GetAllProvidersParameters(ProviderType.OPENSTACK_NETWORK, ProviderType.EXTERNAL_NETWORK));
} else {
List<Provider> openstackCollection = getBackendCollection(SearchType.Provider, getConstraint(ProviderType.OPENSTACK_NETWORK.name()));
List<Provider> externalCollection = getBackendCollection(SearchType.Provider, getConstraint(ProviderType.EXTERNAL_NETWORK.name()));
openstackCollection.addAll(externalCollection);
return openstackCollection;
}
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class BackendOpenStackVolumeProviderResource method remove.
@Override
public Response remove() {
Provider provider = BackendExternalProviderHelper.getProvider(this, id);
ProviderParameters parameters = new ProviderParameters(provider, isForce());
return performAction(ActionType.RemoveProvider, parameters);
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class BackendOpenStackVolumeProvidersResource method mapCollection.
private OpenStackVolumeProviders mapCollection(List<Provider> entities) {
OpenStackVolumeProviders collection = new OpenStackVolumeProviders();
for (Provider entity : entities) {
OpenStackVolumeProvider provider = map(entity);
collection.getOpenStackVolumeProviders().add(addLinks(populate(provider, entity)));
}
return collection;
}
Aggregations