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

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

import javax.inject.Inject;
import javax.inject.Named;

import de.ivu.elect.jee.presentation.menu.MenuEntry;
import de.ivu.elect.presentation.ui.AbstractPageMenuModelBuilder;

@Named(WertelistenPageMenu.COMPONENT_NAME)
public class WertelistenPageMenu extends AbstractPageMenuModelBuilder {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "wertelistenPageMenu";

  @Inject
  private transient WertelistenSearchMenuItemEntry wertelistenSearchMenuItemEntry;

  @Inject
  private transient WertelistenCreateMenuItemEntry wertelistenCreateMenuItemEntry;

  @Inject
  private transient WertelistenImportMenuItemEntry wertelistenImportMenuItemEntry;

  @Inject
  private transient WertelistenExportMenuItemEntry wertelistenExportMenuItemEntry;

  @Override
  protected List<MenuEntry> getMenuEntriesSorted() {
    List<MenuEntry> result = new ArrayList<>();

    result.add(wertelistenSearchMenuItemEntry);
    result.add(wertelistenCreateMenuItemEntry);
    result.add(wertelistenImportMenuItemEntry);
    result.add(wertelistenExportMenuItemEntry);

    return result;
  }
}
