Search in sources :

Example 1 with RemoveMacPoolByIdParameters

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

the class SharedMacPoolListModel method onRemove.

private void onRemove() {
    cancel();
    ArrayList<ActionParametersBase> params = new ArrayList<>();
    for (MacPool macPool : getSelectedItems()) {
        params.add(new RemoveMacPoolByIdParameters(macPool.getId()));
    }
    Frontend.getInstance().runMultipleAction(ActionType.RemoveMacPool, params);
}
Also used : MacPool(org.ovirt.engine.core.common.businessentities.MacPool) ArrayList(java.util.ArrayList) RemoveMacPoolByIdParameters(org.ovirt.engine.core.common.action.RemoveMacPoolByIdParameters) ActionParametersBase(org.ovirt.engine.core.common.action.ActionParametersBase)

Aggregations

ArrayList (java.util.ArrayList)1 ActionParametersBase (org.ovirt.engine.core.common.action.ActionParametersBase)1 RemoveMacPoolByIdParameters (org.ovirt.engine.core.common.action.RemoveMacPoolByIdParameters)1 MacPool (org.ovirt.engine.core.common.businessentities.MacPool)1