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

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

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

import de.ivu.elect.business.benutzerverwaltung.entity.Nachricht;
import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;

@Named(NachrichtActionMenu.COMPONENT_NAME)
public class NachrichtActionMenu extends AbstractActionMenuModelBuilder<Nachricht> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "nachrichtActionMenu";

  @Inject
  private NachrichtReplyAction nachrichtReplyAction;

  @Inject
  private NachrichtEditAction nachrichtEditAction;

  @Inject
  private NachrichtDeleteAction nachrichtDeleteAction;

  public NachrichtActionMenu() {
    super();
  }

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

    result.add(nachrichtReplyAction);
    result.add(nachrichtEditAction);
    result.add(nachrichtDeleteAction);

    return result;
  }
}
