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

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

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

import de.ivu.elect.business.gebietsbaum.entity.Gebietsart;
import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;

@Named(GebietsartActionMenu.COMPONENT_NAME)
public class GebietsartActionMenu extends AbstractActionMenuModelBuilder<Gebietsart> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "gebietsartActionMenu";

  @Inject
  private transient GebietsartEditAction editAction;

  @Inject
  private transient GebietsartDeleteAction deleteAction;

  public GebietsartActionMenu() {
    super();
  }

  @Override
  protected List<ActionEntry<Gebietsart>> getActionEntriesSorted() {
    List<ActionEntry<Gebietsart>> result = new ArrayList<>();
    result.add(editAction);
    result.add(deleteAction);

    return result;
  }

}
