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

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "berufPageMenu";

  @Inject
  private transient BerufSearchMenuItemEntry berufSearchMenuItemEntry;

  @Inject
  private transient BerufCreateMenuItemEntry berufCreateMenuItemEntry;

  @Inject
  private transient BerufImportMenuItemEntry berufImportMenuItemEntry;

  @Inject
  private transient BerufExportMenuItemEntry berufExportMenuItemEntry;

  public BerufPageMenu() {
    super();
  }

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

    result.add(berufSearchMenuItemEntry);
    result.add(berufCreateMenuItemEntry);
    result.add(berufImportMenuItemEntry);
    result.add(berufExportMenuItemEntry);

    return result;
  }
}
