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

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "dokumentVorlagePageMenu";

  @Inject
  private transient DokumentVorlageSearchMenuItemEntry dokumentVorlageSearchMenuItemEntry;

  @Inject
  private transient DokumentVorlageCreateMenuItemEntry dokumentVorlageCreateMenuItemEntry;

  @Inject
  private transient DokumentVorlageArchiveCreateMenuItemEntry dokumentVorlageArchiveCreateMenuItemEntry;

  @Inject
  private transient DokumentVorlageOpenOfficeConnectionTestMenuItemEntry dokumentVorlageOpenOfficeConnectionTestMenuItemEntry;

  public DokumentVorlagePageMenu() {
    super();
  }

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

    result.add(dokumentVorlageSearchMenuItemEntry);
    result.add(dokumentVorlageCreateMenuItemEntry);
    result.add(dokumentVorlageArchiveCreateMenuItemEntry);
    result.add(dokumentVorlageOpenOfficeConnectionTestMenuItemEntry);

    return result;
  }
}
