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

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "pruefkriteriumPageMenu";

  @Inject
  private transient PruefkriteriumCreateMenuItemEntry pruefkriteriumCreateMenuItemEntry;

  @Inject
  private transient PruefkriteriumSearchMenuItemEntry pruefkriteriumSearchMenuItemEntry;

  @Inject
  private transient PruefkriteriumImportMenuItemEntry pruefkriteriumImportMenuItemEntry;

  @Inject
  private transient PruefkriteriumExportMenuItemEntry pruefkriteriumExportMenuItemEntry;

  public PruefkriteriumPageMenu() {
    super();
  }

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

    result.add(pruefkriteriumSearchMenuItemEntry);
    result.add(pruefkriteriumCreateMenuItemEntry);
    result.add(pruefkriteriumImportMenuItemEntry);
    result.add(pruefkriteriumExportMenuItemEntry);

    return result;
  }
}
