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.internet.menu.InternetSeiteSearchMenuItemEntry;
import de.ivu.elect.presentation.menu.AbstractMenuItemEntry;
import de.ivu.elect.presentation.praesentation.menu.PraesentationOeffnenMenuItemEntry;
import de.ivu.elect.presentation.praesentation.menu.PraesentationPlatzhalterEditMenuItemEntry;
import de.ivu.elect.presentation.praesentation.menu.PraesentationStatusMenuItemEntry;

public class PraesentationDashboardEntry extends AbstractDashboardEntry {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient PraesentationStatusMenuItemEntry praesentationStatusMenuItemEntry;

  @Inject
  private transient PraesentationPlatzhalterEditMenuItemEntry praesentationPlatzhalterEditMenuItemEntry;

  @Inject
  private transient InternetSeiteSearchMenuItemEntry internetSeiteSearchMenuItemEntry;

  @Inject
  private transient PraesentationOeffnenMenuItemEntry praesentationOeffnenMenuItemEntry;

  @Override
  public String getLegend() {
    return getMessage("praesentation.dashboard.legend");
  }

  @Override
  protected void addProperties(FormBuilder formBuilder) {

  }

  @Override
  public List<AbstractMenuItemEntry> getMenuItemsFirst() {
    List<AbstractMenuItemEntry> result = new ArrayList<>();
    result.add(praesentationStatusMenuItemEntry);
    result.add(praesentationPlatzhalterEditMenuItemEntry);
    result.add(internetSeiteSearchMenuItemEntry);
    result.add(praesentationOeffnenMenuItemEntry);
    return result;
  }

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