use of org.ovirt.engine.core.common.action.ChangeQuotaParameters in project ovirt-engine by oVirt.
the class TemplateDiskListModel method onChangeQuota.
private void onChangeQuota() {
ChangeQuotaModel model = (ChangeQuotaModel) getWindow();
ArrayList<ActionParametersBase> paramerterList = new ArrayList<>();
for (Object item : model.getItems()) {
ChangeQuotaItemModel itemModel = (ChangeQuotaItemModel) item;
DiskImage disk = itemModel.getEntity();
ActionParametersBase parameters = new ChangeQuotaParameters(itemModel.getQuota().getSelectedItem().getId(), disk.getId(), itemModel.getStorageDomainId(), disk.getStoragePoolId());
paramerterList.add(parameters);
}
model.startProgress();
Frontend.getInstance().runMultipleAction(ActionType.ChangeQuotaForDisk, paramerterList, result -> cancel(), this);
}
use of org.ovirt.engine.core.common.action.ChangeQuotaParameters in project ovirt-engine by oVirt.
the class DiskListModel method onChangeQuota.
private void onChangeQuota() {
ChangeQuotaModel model = (ChangeQuotaModel) getWindow();
ArrayList<ActionParametersBase> paramerterList = new ArrayList<>();
for (ChangeQuotaItemModel item : model.getItems()) {
DiskImage disk = item.getEntity();
ActionParametersBase parameters = new ChangeQuotaParameters(item.getQuota().getSelectedItem().getId(), disk.getId(), item.getStorageDomainId(), disk.getStoragePoolId());
paramerterList.add(parameters);
}
model.startProgress();
Frontend.getInstance().runMultipleAction(ActionType.ChangeQuotaForDisk, paramerterList, result -> {
DiskListModel localModel = (DiskListModel) result.getState();
localModel.stopProgress();
cancel();
}, this);
}
use of org.ovirt.engine.core.common.action.ChangeQuotaParameters in project ovirt-engine by oVirt.
the class VmDiskListModel method onChangeQuota.
private void onChangeQuota() {
ChangeQuotaModel model = (ChangeQuotaModel) getWindow();
ArrayList<ActionParametersBase> paramerterList = new ArrayList<>();
for (Object item : model.getItems()) {
ChangeQuotaItemModel itemModel = (ChangeQuotaItemModel) item;
DiskImage disk = itemModel.getEntity();
ActionParametersBase parameters = new ChangeQuotaParameters(itemModel.getQuota().getSelectedItem().getId(), disk.getId(), itemModel.getStorageDomainId(), disk.getStoragePoolId());
paramerterList.add(parameters);
}
model.startProgress();
Frontend.getInstance().runMultipleAction(ActionType.ChangeQuotaForDisk, paramerterList, result -> cancel(), this);
}
Aggregations