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

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

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

import de.ivu.elect.business.dokumente.entity.DokumentVorlage;
import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;

@Named(DokumentVorlageActionMenu.COMPONENT_NAME)
public class DokumentVorlageActionMenu extends AbstractActionMenuModelBuilder<DokumentVorlage> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "dokumentVorlageActionMenu";

  @Inject
  private DokumentVorlageEditAction dokumentVorlageEditAction;

  @Inject
  private DokumentVorlageDownloadAction dokumentVorlageDownloadAction;

  @Inject
  private DokumentVorlageDeleteAction dokumentVorlageDeleteAction;

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

    result.add(dokumentVorlageEditAction);
    result.add(dokumentVorlageDownloadAction);
    result.add(dokumentVorlageDeleteAction);

    return result;
  }
}
