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

import javax.inject.Inject;

import de.ivu.elect.business.wertelisten.entity.WertelistenMeta;
import de.ivu.elect.jee.entity.Meta;
import de.ivu.elect.presentation.exchange.ImportDescription;
import de.ivu.elect.presentation.exchange.menu.AbstractImportMenuItemEntry;
import de.ivu.elect.presentation.wertelisten.exchange.WertelistenImportDescription;

public class WertelistenImportMenuItemEntry extends AbstractImportMenuItemEntry {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient WertelistenImportDescription importDescription;

  @Inject
  private transient WertelistenMeta wertelistenMeta;

  public WertelistenImportMenuItemEntry() {
    super();
  }

  @Override
  public boolean isRendered() {
    return isWahlSelected() && super.isRendered();
  }

  @Override
  protected ImportDescription getImportDescription() {
    return importDescription;
  }

  @Override
  protected Meta getMeta() {
    return wertelistenMeta;
  }
}
