
package de.ivu.elect.presentation.konfiguration.action;

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

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

import de.ivu.elect.business.konfiguration.entity.Konfiguration;
import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;

@Named(KonfigurationActionMenu.COMPONENT_NAME)
public class KonfigurationActionMenu extends AbstractActionMenuModelBuilder<Konfiguration> {

  public static final String COMPONENT_NAME = "konfigurationActionMenu";

  private static final long serialVersionUID = 1L;

  @Inject
  protected transient KonfigurationEditAction konfigurationEditAction;

  @Inject
  protected transient KonfigurationCreateVerzeichnisAction konfigurationCreateVerzeichnisAction;

  @Override
  protected List<ActionEntry<Konfiguration>> getActionEntriesSorted() {
    List<ActionEntry<Konfiguration>> result = new ArrayList<>();
    result.add(konfigurationEditAction);
    result.add(konfigurationCreateVerzeichnisAction);
    return result;
  }

}
