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

import javax.inject.Inject;
import javax.inject.Named;
import java.util.List;

import de.ivu.elect.business.exchange.control.AbstractImporter;
import de.ivu.elect.business.exchange.control.NoContext;
import de.ivu.elect.business.person.boundary.BerufImporter;
import de.ivu.elect.business.person.entity.Beruf;
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(BerufImportBestaetigenView.COMPONENT_NAME)
@View(viewId = BerufImportBestaetigenView.VIEW_ID, useCase = UseCasePermission.BERUF_IMPORTIEREN)
public class BerufImportBestaetigenView extends AbstractImportBestaetigenView<List<Beruf>, NoContext> {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "berufImportBestaetigenView";

  public static final String VIEW_ID = "/person/beruf-import-bestaetigen.xhtml";

  @Inject
  private transient BerufImporter importer;

  @Inject
  private transient BerufImportDescription importDescription;

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

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

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

}
