use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class ProviderListModel method updateDetailsAvailability.
@Override
protected void updateDetailsAvailability() {
super.updateDetailsAvailability();
Provider provider = getSelectedItem();
if (provider != null) {
networkListModel.setIsAvailable(provider.getType().getProvidedTypes().contains(VdcObjectType.Network));
secretListModel.setIsAvailable(provider.getType() == ProviderType.OPENSTACK_VOLUME);
}
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class ProviderSecretListModel method syncSearch.
@Override
protected void syncSearch() {
Provider provider = getEntity();
if (provider == null) {
return;
}
super.syncSearch(QueryType.GetAllLibvirtSecretsByProviderId, new IdQueryParameters(provider.getId()));
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class RemoveProvidersModel method onRemove.
private void onRemove(boolean force) {
List<ActionParametersBase> parameterList = new LinkedList<>();
for (Provider provider : providers) {
parameterList.add(new ProviderParameters(provider, force));
}
Frontend.getInstance().runMultipleActions(ActionType.RemoveProvider, parameterList, result -> sourceListModel.getSearchCommand().execute());
cancel();
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class HostNetworkProviderModel method getNoExternalNetworkProvider.
private Provider getNoExternalNetworkProvider() {
Provider provider = new Provider();
provider.setName(ConstantsManager.getInstance().getConstants().hostNoExternalNetworkProvider());
return provider;
}
use of org.ovirt.engine.core.common.businessentities.Provider in project ovirt-engine by oVirt.
the class ExternalNetworkSyncService method synchronize.
private void synchronize() {
List<Provider<?>> networkProviders = providerDao.getAllByTypes(ProviderType.EXTERNAL_NETWORK, ProviderType.OPENSTACK_NETWORK);
networkProviders.stream().filter(provider -> {
OpenstackNetworkProviderProperties networkProperties = (OpenstackNetworkProviderProperties) provider.getAdditionalProperties();
return networkProperties.getAutoSync();
}).map(Provider::getId).distinct().forEach(providerId -> {
backendInternal.runInternalAction(ActionType.SyncNetworkProvider, new IdParameters(providerId));
});
}
Aggregations