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

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import javax.inject.Inject;

import de.ivu.elect.jee.presentation.dynamicform.FormBuilder;
import de.ivu.elect.presentation.gruppe.menu.GruppeSearchMenuItemEntry;
import de.ivu.elect.presentation.kandidatur.menu.KandidaturSearchMenuItemEntry;
import de.ivu.elect.presentation.menu.AbstractMenuItemEntry;
import de.ivu.elect.presentation.wahlvorschlag.menu.WahlvorschlagSearchMenuItemEntry;
import de.ivu.elect.presentation.wahlvorschlag.menu.WahlvorschlagStatusuebersichtMenuItemEntry;

public class WahlvorschlaegeDashboardEntry extends AbstractDashboardEntry {

  private static final long serialVersionUID = 1L;


  @Inject
  private transient GruppeSearchMenuItemEntry gruppeSearchMenuItemEntry;

  @Inject
  protected transient WahlvorschlagSearchMenuItemEntry wahlvorschlagSearchMenuItemEntry;

  @Inject
  protected transient WahlvorschlagStatusuebersichtMenuItemEntry wahlvorschlagStatusuebersichtMenuItemEntry;

  @Inject
  protected transient KandidaturSearchMenuItemEntry kandidaturSearchMenuItemEntry;


  @Override
  public String getLegend() {
    return getMessage("wahlvorschlaege.dashbaord.legend");
  }

  @Override
  protected void addProperties(FormBuilder formBuilder) {

  }

  @Override
  public List<AbstractMenuItemEntry> getMenuItemsFirst() {
    List<AbstractMenuItemEntry> result = new ArrayList<>();
    result.add(gruppeSearchMenuItemEntry);
    result.add(wahlvorschlagStatusuebersichtMenuItemEntry);
    result.add(wahlvorschlagSearchMenuItemEntry);
    result.add(kandidaturSearchMenuItemEntry);
    return result;
  }

  @Override
  public List<AbstractMenuItemEntry> getMenuItemsLast() {
    return Collections.emptyList();
  }
}
