use of org.ovirt.engine.core.common.action.ExportRepoImageParameters in project ovirt-engine by oVirt.
the class ExportRepoImageModel method executeCommand.
@Override
public void executeCommand(UICommand command) {
super.executeCommand(command);
startProgress();
ArrayList<ActionParametersBase> actionParameters = new ArrayList<>();
for (EntityModel entity : getEntities()) {
actionParameters.add(new ExportRepoImageParameters(// Source
((DiskImage) entity.getEntity()).getId(), // Destination
getStorageDomain().getSelectedItem().getId()));
}
Frontend.getInstance().runMultipleAction(ActionType.ExportRepoImage, actionParameters, result -> {
ImportExportRepoImageBaseModel model = (ImportExportRepoImageBaseModel) result.getState();
model.stopProgress();
model.cancel();
}, this);
}
Aggregations