use of org.ovirt.engine.core.common.action.ProviderParameters 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.action.ProviderParameters in project ovirt-engine by oVirt.
the class BackendExternalHostProviderResource 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.action.ProviderParameters in project ovirt-engine by oVirt.
the class ProviderModel method actualSave.
protected void actualSave() {
flush();
Frontend.getInstance().runAction(action, new ProviderParameters(provider), result -> {
if (result.getReturnValue() == null || !result.getReturnValue().getSucceeded()) {
return;
}
sourceListModel.getSearchCommand().execute();
cancel();
}, this);
}
use of org.ovirt.engine.core.common.action.ProviderParameters 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();
}
Aggregations