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

import de.ivu.elect.business.exchange.entity.DateiImportArt;
import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.jee.exchange.ImportOptions;
import de.ivu.elect.presentation.exchange.ImportDescription;
import de.ivu.elect.presentation.statistik.menu.StatistikPageMenu;

public class StatistikLaufImportDescription implements ImportDescription {

  private static final long serialVersionUID = 1L;

  @Override
  public String getImportSearchViewId() {
    return StatistikLaufImportSearchView.VIEW_ID;
  }

  @Override
  public String getImportFormatFestlegenViewId() {
    return StatistikLaufImportFormatFestlegenView.VIEW_ID;
  }

  @Override
  public String getImportBestaetigenViewId() {
    return StatistikLaufImportBestaetigenView.VIEW_ID;
  }

  @Override
  public boolean isConfirmationForImportNeeded() {
    return false;
  }

  @Override
  public boolean isSpecificPerWahlOrWahltermin() {
    return true;
  }

  @Override
  public DateiImportArt getDateiImportArt() {
    return DateiImportArt.STATISTIKLAUF_IMPORT;
  }

  @Override
  public UseCasePermission getUseCasePermission() {
    return UseCasePermission.STATISTIK_LAUF_IMPORTIEREN;
  }

  @Override
  public String getPageMenuComponentName() {
    return StatistikPageMenu.COMPONENT_NAME;
  }

  @Override
  public ImportOptions getDefaultImportOptions() {
    return ImportOptions.NEUE_DATEN_ANLEGEN_BESTEHENDE_DATEN_UNVERAENDERT_LASSEN;
  }
}
