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

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

import javax.inject.Inject;

import de.ivu.elect.business.dokumente.entity.DokumentVorlageConstants;
import de.ivu.elect.jee.presentation.dynamicform.FormBuilder;
import de.ivu.elect.presentation.dokumente.menu.DokumentVorlageVerwaltenMenuItemEntry;
import de.ivu.elect.presentation.menu.AbstractMenuItemEntry;
import de.ivu.elect.presentation.wahl.menu.WahlDokumentplatzhalterEditMenuItemEntry;

public class DokumentvorlagenDashboardEntry extends AbstractDashboardEntry {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient DokumentVorlageVerwaltenMenuItemEntry dokumentVorlageVerwaltenMenuItemEntry;

  @Inject
  protected transient WahlDokumentplatzhalterEditMenuItemEntry wahlDokumentplatzhalterEditMenuItemEntry;

  @Override
  public String getLegend() {
    return getMessage(DokumentVorlageConstants.MESSAGE_KEY_ENTITY_MEHRZAHL);
  }

  @Override
  protected void addProperties(FormBuilder formBuilder) {

  }


  @Override
  public List<AbstractMenuItemEntry> getMenuItemsFirst() {
    List<AbstractMenuItemEntry> result = new ArrayList<>();
    result.add(dokumentVorlageVerwaltenMenuItemEntry);
    result.add(wahlDokumentplatzhalterEditMenuItemEntry);
    return result;
  }

  @Override
  public List<AbstractMenuItemEntry> getMenuItemsLast() {
    List<AbstractMenuItemEntry> result = new ArrayList<>();

    return result;
  }

}

