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

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

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

import de.ivu.elect.business.personenpruefung.entity.PersonPruefungKonfiguration;
import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;

@Named(PersonPruefungKonfigurationActionMenu.COMPONENT_NAME)
public class PersonPruefungKonfigurationActionMenu extends AbstractActionMenuModelBuilder<PersonPruefungKonfiguration> {
  public static final String COMPONENT_NAME = "personPruefungKonfigurationActionMenu";

  private static final long serialVersionUID = 1L;

  @Inject
  private transient PersonPruefungKonfigurationEditAction personPruefungKonfigurationEditAction;

  @Inject
  private transient PersonPruefungKonfigurationAktivierenAction personPruefungKonfigurationAktivierenAction;

  @Inject
  private transient PersonPruefungKonfigurationDeaktivierenAction personPruefungKonfigurationDeaktivierenAction;

  @Inject
  private transient PersonPruefungKonfigurationResetToDefaultAction personPruefungKonfigurationResetToDefaultAction;

  @Override
  protected List<ActionEntry<PersonPruefungKonfiguration>> getActionEntriesSorted() {
    ArrayList<ActionEntry<PersonPruefungKonfiguration>> result = new ArrayList<>();
    result.add(personPruefungKonfigurationEditAction);
    result.add(personPruefungKonfigurationAktivierenAction);
    result.add(personPruefungKonfigurationDeaktivierenAction);
    result.add(personPruefungKonfigurationResetToDefaultAction);
    return result;
  }
}

