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

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

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

import de.ivu.elect.business.gruppeimgebiet.entity.GruppeImGebiet;
import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;

@Named(ReferendumVorlageImGebietActionMenu.COMPONENT_NAME)
public class ReferendumVorlageImGebietActionMenu extends AbstractActionMenuModelBuilder<GruppeImGebiet> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "referendumVorlageImGebietActionMenu";

  @Inject
  private transient ReferendumVorlageImGebietEditAction referendumVorlageImGebietEditAction;

  @Inject
  private transient ReferendumVorlageImGebietDeleteAction referendumVorlageImGebietDeleteAction;

  public ReferendumVorlageImGebietActionMenu() {
    super();
  }

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

    result.add(referendumVorlageImGebietEditAction);
    result.add(referendumVorlageImGebietDeleteAction);

    return result;
  }
}
