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

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

import de.ivu.elect.business.exchange.control.NoContext;
import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.business.staat.boundary.StaatImporter;
import de.ivu.elect.presentation.View;
import de.ivu.elect.presentation.exchange.AbstractImportFormatFestlegenView;
import de.ivu.elect.presentation.exchange.ImportDescription;

@Named(StaatImportFormatFestlegenView.COMPONENT_NAME)
@View(viewId = StaatImportFormatFestlegenView.VIEW_ID, useCase = UseCasePermission.STAATEN_IMPORTIEREN)
public class StaatImportFormatFestlegenView extends AbstractImportFormatFestlegenView<NoContext> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "staatImportFormatFestlegenView";

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

  @Inject
  private StaatImportDescription importDescription;

  @Inject
  private StaatImporter importer;

  public StaatImportFormatFestlegenView() {
    super();
  }

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

  @Override
  protected StaatImporter getImporter() {
    return importer;
  }

  @Override
  protected NoContext getContext() {
    return NoContext.NO_CONTEXT;
  }
}
