
package de.ivu.elect.presentation.staat.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(StaatPageMenu.COMPONENT_NAME)
public class StaatPageMenu extends AbstractPageMenuModelBuilder {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "staatPageMenu";

  @Inject
  private transient StaatSearchMenuItemEntry staatSearchMenuItemEntry;

  @Inject
  private transient StaatCreateMenuItemEntry staatCreateMenuItemEntry;

  @Inject
  private transient StaatImportMenuItemEntry staatImportMenuItemEntry;

  @Inject
  private transient StaatExportMenuItemEntry staatExportMenuItemEntry;

  public StaatPageMenu() {
    super();
  }

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

    result.add(staatSearchMenuItemEntry);
    result.add(staatCreateMenuItemEntry);
    result.add(staatImportMenuItemEntry);
    result.add(staatExportMenuItemEntry);

    return result;
  }
}
