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

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "geodataOrtPageMenu";

  @Inject
  private transient GeodataOrtSearchMenuItemEntry geodataOrtSearchMenuItemEntry;

  @Inject
  private transient GeodataOrtCreateMenuItemEntry geodataOrtCreateMenuItemEntry;

  @Inject
  private transient GeodataOrtImportMenuItemEntry geodataOrtImportMenuItemEntry;

  @Inject
  private transient GeodataOrtExportMenuItemEntry geodataOrtExportMenuItemEntry;

  public GeodataOrtPageMenu() {
    super();
  }

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

    result.add(geodataOrtSearchMenuItemEntry);
    result.add(geodataOrtCreateMenuItemEntry);
    result.add(geodataOrtImportMenuItemEntry);
    result.add(geodataOrtExportMenuItemEntry);

    return result;
  }
}
