use of org.ovirt.engine.core.common.action.gluster.GlusterVolumeSnapshotActionParameters in project ovirt-engine by oVirt.
the class GlusterVolumeSnapshotListModel method onDeleteSnapshot.
private void onDeleteSnapshot() {
if (getConfirmWindow() == null) {
return;
}
final ConfirmationModel model = (ConfirmationModel) getConfirmWindow();
List<ActionParametersBase> paramsList = new ArrayList<>();
for (GlusterVolumeSnapshotEntity snapshot : getSelectedItems()) {
GlusterVolumeSnapshotActionParameters param = new GlusterVolumeSnapshotActionParameters(getEntity().getId(), snapshot.getSnapshotName(), true);
paramsList.add(param);
}
model.startProgress();
Frontend.getInstance().runMultipleAction(ActionType.DeleteGlusterVolumeSnapshot, paramsList, result -> {
model.stopProgress();
setConfirmWindow(null);
}, model);
}
Aggregations