package de.ivu.elect.presentation.wahl.menu;

import de.ivu.elect.jee.presentation.menu.MenuEntry;

import javax.inject.Inject;
import java.io.Serializable;
import java.util.List;

public class ExterneLinks implements Serializable {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient AbstractWahlparameterExternerLinkMenuItemEntry.ExternerLink1MenuItemEntry externerLink1MenuItemEntry;

  @Inject
  private transient AbstractWahlparameterExternerLinkMenuItemEntry.ExternerLink2MenuItemEntry externerLink2MenuItemEntry;

  @Inject
  private transient AbstractWahlparameterExternerLinkMenuItemEntry.ExternerLink3MenuItemEntry externerLink3MenuItemEntry;

  @Inject
  private transient AbstractWahlparameterExternerLinkMenuItemEntry.ExternerLink4MenuItemEntry externerLink4MenuItemEntry;

  @Inject
  private transient AbstractWahlparameterExternerLinkMenuItemEntry.ExternerLink5MenuItemEntry externerLink5MenuItemEntry;


  public void addExterneLinks(List<MenuEntry> result) {
    addLink1(result);
    addLink2(result);
    addLink3(result);
    result.add(externerLink4MenuItemEntry);
    result.add(externerLink5MenuItemEntry);
  }

  protected void addLink3(List<MenuEntry> result) {
    result.add(externerLink3MenuItemEntry);
  }

  protected void addLink2(List<MenuEntry> result) {
    result.add(externerLink2MenuItemEntry);
  }

  protected void addLink1(List<MenuEntry> result) {
    result.add(externerLink1MenuItemEntry);
  }
}
