
package de.ivu.elect.presentation.system.menu;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import de.ivu.elect.jee.presentation.menu.AbstractMenuModelBuilder;
import de.ivu.elect.jee.presentation.menu.MenuEntry;

@Named(SystemLogSearchMenu.COMPONENT_NAME)
public class SystemLogSearchMenu extends AbstractMenuModelBuilder {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "systemLogSearchMenu";

  @Inject
  private transient SystemLogPruefeAllMenuItemEntry systemLogPruefeAllMenuItemEntry;

  @Inject
  private transient SystemLogDeleteAllMenuItemEntry systemLogDeleteAllMenuItemEntry;

  public SystemLogSearchMenu() {
    super();
  }

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

    result.add(systemLogPruefeAllMenuItemEntry);
    result.add(systemLogDeleteAllMenuItemEntry);

    return result;
  }
}
