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

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

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

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

@Named(InternetWidgetSearchMenu.COMPONENT_NAME)
public class InternetWidgetSearchMenu extends AbstractMenuModelBuilder {

  public static final String COMPONENT_NAME = "internetWidgetSearchMenu";

  private static final long serialVersionUID = 1L;

  @Inject
  private transient InternetWidgetCreateMenuItemEntry internetWidgetCreateMenuItemEntry;

  @Inject
  private transient InternetWidgetAnordnenMenuItemEntry internetWidgetAnordnenMenuItemEntry;

  @Inject
  private transient InternetSeiteEditMenuItemEntry internetSeiteEditMenuItemEntry;

  @Override
  protected List<MenuEntry> getMenuEntriesSorted() {
    List<MenuEntry> result = new ArrayList<>();
    result.add(internetSeiteEditMenuItemEntry);
    result.add(internetWidgetCreateMenuItemEntry);
    result.add(internetWidgetAnordnenMenuItemEntry);
    return result;
  }
}
