package de.ivu.elect.presentation.exchange;

import javax.enterprise.inject.Specializes;
import javax.inject.Inject;

import org.apache.deltaspike.core.api.scope.ConversationGroup;

import de.ivu.elect.jee.presentation.security.StartViewResolver;

@Specializes
public class NlImportViewConfig extends ImportViewConfig {
  private static final long serialVersionUID = 1L;

  @Inject
  private transient StartViewResolver startViewResolver;

  @Inject
  @ConversationGroup(SupportedFileFormatErmittler.class)
  protected transient SupportedFileFormatErmittler supportedFileFormatErmittler;

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

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

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

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

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

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

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

  @Override
  public String getImportErfolgtViewId() {
    supportedFileFormatErmittler.reset();
    return startViewResolver.getStartViewId();
  }

  @Override
  public String getSearchViewId(String searchViewId) {
    return startViewResolver.getStartViewId();
  }

  @Override
  public boolean isRefreshRendered() {
    return false; // ELECTVAPP-112
  }
}
