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

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

import javax.inject.Inject;

import de.ivu.elect.jee.presentation.action.AbstractActionMenuModelBuilder;
import de.ivu.elect.jee.presentation.action.ActionEntry;
import de.ivu.elect.presentation.personenregister.AbstractEntityMitPersonendatenSearchResultEntry;
import de.ivu.elect.presentation.personenregister.AbstractEntityMitPersonendatenSelectionView;

public class EntityMitPersonendatenSearchResultEntryActionMenu extends AbstractActionMenuModelBuilder<AbstractEntityMitPersonendatenSearchResultEntry> {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient EntityMitPersonendatenSearchResultEntryAuswaehlenAction entityMitPersonendatenSearchResultEntryAuswaehlenAction;

  public EntityMitPersonendatenSearchResultEntryActionMenu() {
    super();
  }

  public void setSelectionView(AbstractEntityMitPersonendatenSelectionView selectionView) {
    getSearchResultEntryAuswaehlenAction().setSelectionView(selectionView);
  }

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

    result.add(getSearchResultEntryAuswaehlenAction());

    return result;
  }

  public EntityMitPersonendatenSearchResultEntryAuswaehlenAction getSearchResultEntryAuswaehlenAction() {
    return entityMitPersonendatenSearchResultEntryAuswaehlenAction;
  }

  @Override
  public boolean isProtokollAnzeigen() {
    // ELECT-5245
    return false;
  }
}
