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

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

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.business.wahl.entity.WahlImportContext;
import de.ivu.elect.presentation.View;
import de.ivu.elect.presentation.exchange.AbstractImportFormatFestlegenView;
import de.ivu.elect.presentation.exchange.ImportDescription;

@Named(AbstractWahlImportFormatFestlegenView.COMPONENT_NAME)
@View(viewId = AbstractWahlImportFormatFestlegenView.VIEW_ID, useCase = UseCasePermission.WAHL_IMPORTIEREN)
public abstract class AbstractWahlImportFormatFestlegenView
    extends
      AbstractImportFormatFestlegenView<WahlImportContext> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "wahlImportFormatFestlegenView";

  public static final String VIEW_ID = "/wahl/wahl-import-format-festlegen.xhtml";

  @Inject
  WahlImportDescription importDescription;

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

  @Override
  protected WahlImportContext getContext() {
    return new WahlImportContext(getMandant());
  }
}
