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

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

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

import de.ivu.elect.business.wahlrechtspruefung.entity.Pruefkriterium;
import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;

@Named(PruefkriteriumActionMenu.COMPONENT_NAME)
public class PruefkriteriumActionMenu extends AbstractActionMenuModelBuilder<Pruefkriterium> {

  public static final String COMPONENT_NAME = "pruefkriteriumActionMenu";

  private static final long serialVersionUID = 1L;

  @Inject
  private transient PruefkriteriumEditAction pruefkriteriumEditAction;

  @Inject
  private transient PruefkriteriumDeleteAction pruefkriteriumDeleteAction;

  public PruefkriteriumActionMenu() {
    super();
  }

  @Override
  protected List<ActionEntry<Pruefkriterium>> getActionEntriesSorted() {
    List<ActionEntry<Pruefkriterium>> result = new ArrayList<>();
    result.add(pruefkriteriumEditAction);
    result.add(pruefkriteriumDeleteAction);

    return result;
  }
}
