package de.ivu.elect.presentation.dashboard.entries;

import de.ivu.elect.jee.presentation.menu.AbstractMenuModelBuilder;
import de.ivu.elect.jee.presentation.menu.MenuEntry;
import de.ivu.elect.presentation.wahl.menu.WahlMainMenuEntry;

import javax.inject.Inject;
import java.util.ArrayList;
import java.util.List;

public class WahlDashboardSplitModelBuilder extends AbstractMenuModelBuilder {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient WahlMainMenuEntry wahlMainMenuEntry;

  @Override
  protected List<MenuEntry> getMenuEntriesSorted() {
    List<MenuEntry> result = new ArrayList<>();
    wahlMainMenuEntry.addAuszuwaehlendeWahlenMenuEntries(result, false);
    return result;
  }
}

