package de.ivu.elect.presentation.wahl.menu;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

import org.apache.commons.lang3.StringUtils;

import de.ivu.elect.jee.presentation.menu.MenuEntry;
import de.ivu.elect.presentation.menu.AbstractSchritteMenuModelBuilder;

public class NlWahlprozessMenuBuilder extends AbstractSchritteMenuModelBuilder implements Serializable {

  private static final long serialVersionUID = 1L;

  @Override
  protected List<MenuEntry> getMenuEntriesSorted() {
    return new ArrayList<>();
  }

  public List<String> getDialogTemplates() {
    List<String> list = new ArrayList<>();
    for (MenuEntry menuEntry : getMenuEntriesSorted()) {
      if (menuEntry instanceof AbstractNlWahlphaseSchrittMenuItem) {
        list.addAll(((AbstractNlWahlphaseSchrittMenuItem) menuEntry).getDialogTemplates());
      }
    }
    return list;
  }
}
