package de.ivu.elect.wus.exchange.wahl;

import de.ivu.elect.business.wahl.boundary.NlExportParameter;
import de.ivu.elect.business.wahl.control.WahlExportContext;

import javax.enterprise.inject.Specializes;

@Specializes
public class NlWasWahlXmlZipExportMapper extends WasWahlXmlZipExportMapper{

  @Override
  protected String getFilnameBackup() {
    return "verkiezing.xml"; // ELECTVAPP-593
  }

  @Override
  public boolean isAcceptContext(WahlExportContext context) {
    return super.isAcceptContext(context) && !context.containsKey(NlExportParameter.IS_GBAV_VIEW.name());
  }
}
