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

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

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

import de.ivu.elect.business.stimmzettel.entity.Stimmzettel;
import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;

@Named(StimmzettelActionMenu.COMPONENT_NAME)
public class StimmzettelActionMenu extends AbstractActionMenuModelBuilder<Stimmzettel> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "stimmzettelActionMenu";

  @Inject
  private transient StimmzettelEditAction stimmzettelEditAction;

  @Inject
  private transient StimmzettelDeleteAction stimmzettelDeleteAction;

  @Override
  protected List<ActionEntry<Stimmzettel>> getActionEntriesSorted() {
    List<ActionEntry<Stimmzettel>> result = new ArrayList<>();

    result.add(stimmzettelEditAction);
    result.add(stimmzettelDeleteAction);
    return result;
  }
}
