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

import static java.util.Arrays.asList;

import java.util.Collection;

import de.ivu.elect.business.konfiguration.control.AbstractKonfigurationInit;
import de.ivu.elect.business.konfiguration.entity.Konfiguration;
import de.ivu.elect.business.konfiguration.entity.KonfigurationInitContext;
import de.ivu.elect.business.konfiguration.entity.MandantKonfigurationWerte;
import de.ivu.elect.business.system.entity.SystemStatus;

public class SystemStatusKonfigurationInit extends AbstractKonfigurationInit {

  public SystemStatusKonfigurationInit() {
    super();
  }

  @Override
  protected Collection<Konfiguration> createDefaultParameters(KonfigurationInitContext konfigurationInitContext) {
    return asList( //
        create(MandantKonfigurationWerte.SYSTEM_STATUS, getDefaultSystemStatus().name()) //
    );
  }

  protected SystemStatus getDefaultSystemStatus() {
    return SystemStatus.PRODUKTION;
  }
}
