Search in sources :

Example 1 with RemoveIscsiBondParameters

use of org.ovirt.engine.core.common.action.RemoveIscsiBondParameters in project ovirt-engine by oVirt.

the class DataCenterIscsiBondListModel method onRemove.

private void onRemove() {
    ConfirmationModel model = (ConfirmationModel) getWindow();
    ArrayList<ActionParametersBase> params = new ArrayList<>();
    for (Object item : getSelectedItems()) {
        params.add(new RemoveIscsiBondParameters(((IscsiBond) item).getId()));
    }
    model.startProgress();
    Frontend.getInstance().runMultipleAction(ActionType.RemoveIscsiBond, params, result -> {
        DataCenterIscsiBondListModel localModel = (DataCenterIscsiBondListModel) result.getState();
        localModel.stopProgress();
        cancel();
    }, this);
}
Also used : ArrayList(java.util.ArrayList) RemoveIscsiBondParameters(org.ovirt.engine.core.common.action.RemoveIscsiBondParameters) IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond) ConfirmationModel(org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel) ActionParametersBase(org.ovirt.engine.core.common.action.ActionParametersBase)

Aggregations

ArrayList (java.util.ArrayList)1 ActionParametersBase (org.ovirt.engine.core.common.action.ActionParametersBase)1 RemoveIscsiBondParameters (org.ovirt.engine.core.common.action.RemoveIscsiBondParameters)1 IscsiBond (org.ovirt.engine.core.common.businessentities.IscsiBond)1 ConfirmationModel (org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel)1