use of org.ovirt.engine.ui.uicommonweb.action.UiVdcMultipleAction in project ovirt-engine by oVirt.
the class VfsConfigAction method onActionExecute.
@Override
protected void onActionExecute() {
for (HostNicVfsConfig originalVfsConfig : originalVfsConfigs) {
HostNicVfsConfig updatedVfsConfig = updatedNicToVfsConfig.get(originalVfsConfig.getNicId());
initUpdateVfsConfigParams(originalVfsConfig, updatedVfsConfig);
if (!updatedVfsConfig.isAllNetworksAllowed()) {
initAddedNetworksParams(originalVfsConfig, updatedVfsConfig);
initRemovedNetworksParams(originalVfsConfig, updatedVfsConfig);
initAddedLabelsParams(originalVfsConfig, updatedVfsConfig);
initRemovedLabelsParams(originalVfsConfig, updatedVfsConfig);
}
}
UiAction updateAction = new UiVdcMultipleAction(ActionType.UpdateHostNicVfsConfig, updatedVfsConfigsParams, getModel(), true, false);
updateAction.then(new UiVdcMultipleAction(ActionType.AddVfsConfigNetwork, addedNetworksParams, getModel())).and(new UiVdcMultipleAction(ActionType.RemoveVfsConfigNetwork, removedNetworksParams, getModel())).and(new UiVdcMultipleAction(ActionType.AddVfsConfigLabel, addedLabelsParams, getModel())).and(new UiVdcMultipleAction(ActionType.RemoveVfsConfigLabel, removedLabelsParams, getModel())).then(getNextAction());
then(null);
updateAction.runParallelAction(getActionFlowState());
}
Aggregations