use of org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters in project ovirt-engine by oVirt.
the class VmBackupModel method onRemove.
private void onRemove() {
ConfirmationModel model = (ConfirmationModel) getWindow();
if (model.getProgress() != null) {
return;
}
model.startProgress();
AsyncDataProvider.getInstance().getDataCentersByStorageDomain(new AsyncQuery<>(pools -> {
if (pools != null && pools.size() > 0) {
StoragePool pool = pools.get(0);
ArrayList<ActionParametersBase> list = new ArrayList<>();
for (VM vm : getSelectedItems()) {
list.add(new RemoveVmFromImportExportParameters(vm.getId(), getEntity().getId(), pool.getId()));
}
Frontend.getInstance().runMultipleAction(ActionType.RemoveVmFromImportExport, list, result -> {
ConfirmationModel localModel = (ConfirmationModel) result.getState();
localModel.stopProgress();
cancel();
onEntityChanged();
}, getWindow());
}
}), getEntity().getId());
}
use of org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters in project ovirt-engine by oVirt.
the class BackendStorageDomainVmResource method remove.
@Override
public Response remove() {
get();
RemoveVmFromImportExportParameters params = new RemoveVmFromImportExportParameters(guid, parent.storageDomainId, getDataCenterId(parent.storageDomainId));
return performAction(ActionType.RemoveVmFromImportExport, params);
}
Aggregations