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

import java.io.Serializable;

import javax.ejb.Stateless;
import javax.inject.Inject;

import de.ivu.elect.business.konfiguration.entity.KonfigurationLoader;
import de.ivu.elect.business.konfiguration.entity.OpenOfficeStartup;


import static de.ivu.elect.business.konfiguration.entity.ElectKonfigurationWerte.OPEN_OFFICE_STARTUP;

@Stateless
public class OpenOfficeVerfuegbarkeit implements Serializable {

  private static final long serialVersionUID = 1L;

  @Inject
  protected transient KonfigurationLoader konfigurationLoader;

  public boolean isOpenOfficeVerfuegbar() {
    return konfigurationLoader.resolveEnumValue(OPEN_OFFICE_STARTUP, OpenOfficeStartup.class).isVerfuegbar();
  }

  public boolean isOpenOfficeBeiSystemStartAusfuehren() {
    return konfigurationLoader.resolveEnumValue(OPEN_OFFICE_STARTUP, OpenOfficeStartup.class).isBeiSystemStartAusfuehren();
  }


}
