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

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "emailVorgangPageMenu";

  @Inject
  private transient EmailVorgangSearchMenuItemEntry emailVorgangSearchMenuItemEntry;

  @Inject
  private transient EmailVorlageSearchMenuItemEntry emailVorlageSearchMenuItemEntry;

  @Inject
  private transient EmailVorlageCreateMenuItemEntry emailVorlageCreateMenuItemEntry;

  //  @Inject
  //  private transient EmailVorlageExportMenuItemEntry emailVorlageExportMenuItemEntry;
  //
  //  @Inject
  //  private transient EmailVorlageImportMenuItemEntry emailVorlageImportMenuItemEntry;

  public EmailVorgangPageMenu() {
    super();
  }

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

    result.add(emailVorgangSearchMenuItemEntry);

    result.add(separator);
    result.add(emailVorlageSearchMenuItemEntry);
    result.add(emailVorlageCreateMenuItemEntry);
    //    result.add(emailVorlageImportMenuItemEntry);
    //    result.add(emailVorlageExportMenuItemEntry);

    return result;
  }
}
