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

import java.util.List;

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

import de.ivu.elect.business.exchange.control.AbstractImporter;
import de.ivu.elect.business.exchange.control.NoContext;
import de.ivu.elect.business.geodata.boundary.GeodataOrtImporter;
import de.ivu.elect.business.geodata.entity.GeodataOrt;
import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.View;
import de.ivu.elect.presentation.exchange.AbstractImportBestaetigenView;
import de.ivu.elect.presentation.exchange.ImportDescription;

@Named(GeodataOrtImportBestaetigenView.COMPONENT_NAME)
@View(viewId = GeodataOrtImportBestaetigenView.VIEW_ID, useCase = UseCasePermission.GEODATA_ORT_IMPORTIEREN)
public class GeodataOrtImportBestaetigenView extends AbstractImportBestaetigenView<List<GeodataOrt>, NoContext> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "geodataOrtImportBestaetigenView";

  public static final String VIEW_ID = "/geodata/geodata-ort-import-bestaetigen.xhtml";

  @Inject
  private transient GeodataOrtImporter importer;

  @Inject
  private transient GeodataOrtImportDescription importDescription;

  public GeodataOrtImportBestaetigenView() {
    super();
  }

  @Override
  protected AbstractImporter<List<GeodataOrt>, NoContext, ? > getImporter() {
    return importer;
  }

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

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