package de.ivu.elect.business.system.control;

import de.ivu.elect.business.konfiguration.control.AbstractKonfigurationInit;
import de.ivu.elect.business.konfiguration.entity.ElectKonfigurationWerte;
import de.ivu.elect.business.konfiguration.entity.Konfiguration;
import de.ivu.elect.business.konfiguration.entity.KonfigurationInitContext;

import java.util.Collection;

import static java.util.Arrays.asList;

public class PrimefacesCspKonfigurationInit extends AbstractKonfigurationInit {

  @Override
  protected Collection<Konfiguration> createDefaultParameters(KonfigurationInitContext konfigurationInitContext) {
    return asList( //
        create(ElectKonfigurationWerte.PRIMEFACES_CSP_AKTIVIEREN, getPrimefacesCspAktiviertDefault())
    );
  }

  protected boolean getPrimefacesCspAktiviertDefault() {
    return false;
  }
}
