Class BaseMicroServiceConfiguration

java.lang.Object
at.letto.basespringboot.config.BaseMicroServiceConfiguration
All Implemented Interfaces:
MicroServiceConfigurationInterface
Direct Known Subclasses:
MicroServiceConfiguration

public abstract class BaseMicroServiceConfiguration extends Object implements MicroServiceConfigurationInterface
Hier werden alle Konfigurationen welche aus der application.properties oder aus anderen Konfigurationsdateien oder einer Konfigurationsdatenbank kommen gemeinsam verwaltet.
  • Field Details

    • logfilePath

      @Value("${letto_log_path:/opt/letto/log}") private String logfilePath
    • logfileLogin

      @Value("${letto_log_login:login.log}") private String logfileLogin
    • logfileError

      @Value("${letto_log_error:error.log}") private String logfileError
    • logfileStart

      @Value("${letto_log_error:start.log}") private String logfileStart
    • lettoLogLevel

      @Value("${letto_log_level:NORMAL}") private String lettoLogLevel
    • useHttp

      @Value("${use_http:0}") private String useHttp
    • jwtSecret

      @Value("${jwt_secret:bzVPRm54bHRxaVhFUUtsaTFnNjVOZGhVYjRKY1MyNHFFUVNzaFhIYlV1eTBNUld0U1MwSFBPemd5Wm1uY1NBdEhtR2tRRDFOR1JqVmVMVHQ=}") private String jwtSecret
    • jwtExpiration

      @Value("${jwt_expiration:3600000}") private long jwtExpiration
    • jwtRefreshTime

      @Value("${jwt_refresh_time:120000}") private long jwtRefreshTime
    • serverSecret

      @Value("${server_secret:cUlRUWpQVFBHQ1FraGhSMExPaWh0ZlREdEEyZlUxS2dVUWRySWVZbVZ5c0tLZmQxRjNaVjZraWFqMlRuRkZYcGVOZzF4VTJyVVpLU3gxaHc=}") private String serverSecret
    • shortTempTokenAge

      @Value("${jwt_temptoken_age_short:10}") private long shortTempTokenAge
    • mediumTempTokenAge

      @Value("${jwt_temptoken_age_medium:600}") private long mediumTempTokenAge
    • longTempTokenAge

      @Value("${jwt_temptoken_age_long:7300}") private long longTempTokenAge
    • restkey

      @Value("${letto_local_restkey:}") private String restkey
    • localPrivateKey

      @Value("${letto_local_privatkey:}") private String localPrivateKey
    • localPublicKey

      @Value("${letto_local_publickey:}") private String localPublicKey
    • licensePublicKey

      @Value("${letto_licenseserver_publickey:}") private String licensePublicKey
    • licenseServer

      @Value("${letto_license_server:https://letto.at}") private String licenseServer
    • keyStore

      @Value("${key-store:classpath:keystore/lettolocal.p12}") private String keyStore
    • keyStorePassword

      @Value("${key-store-password:lettoserver}") private String keyStorePassword
    • keyStoreType

      @Value("${key-store-type:PKCS12}") private String keyStoreType
    • keyAlias

      @Value("${key-alias:lettolocal}") private String keyAlias
    • lettoUID

      @Value("${LETTO_UID:1000}") private String lettoUID
    • lettoPath

      @Value("${LETTO_PATH:/opt/letto}") private String lettoPath
    • setupComposePath

      @Value("${SETUP_COMPOSE:/opt/letto/docker/compose/setup}") private String setupComposePath
    • lettoComposePath

      @Value("${LETTO_COMPOSE:/opt/letto/docker/compose/letto}") private String lettoComposePath
    • hostBetriebssystem

      @Value("${HOST_BS:undefined}") private String hostBetriebssystem
    • pathSeperator

      @Value("${PATH_SEPERATOR:/}") private String pathSeperator
    • serverName

      @Value("${servername:}") private String serverName
    • userlist

      @Value("${letto_user:${letto.user:}}") private String userlist
    • userGastPassword

      @Value("${letto_user_gast_password:}") private String userGastPassword
    • userGastEncryptedPassword

      @Value("${letto_user_gast_encryptedpassword:}") private String userGastEncryptedPassword
    • userGastRoles

      @Value("${letto_user_gast_roles:}") private String userGastRoles
    • userUserPassword

      @Value("${letto_user_user_password:xyz}") private String userUserPassword
    • userUserEncryptedPassword

      @Value("${letto_user_user_encryptedpassword:}") private String userUserEncryptedPassword
    • userUserRoles

      @Value("${letto_user_user_roles:}") private String userUserRoles
    • userAdminPassword

      @Value("${letto_user_admin_password:}") private String userAdminPassword
    • userAdminEncryptedPassword

      @Value("${letto_user_admin_encryptedpassword:}") private String userAdminEncryptedPassword
    • userAdminRoles

      @Value("${letto_user_admin_roles:}") private String userAdminRoles
    • userLettoPassword

      @Value("${letto_user_letto_password:}") private String userLettoPassword
    • userLettoEncryptedPassword

      @Value("${letto_user_letto_encryptedpassword:}") private String userLettoEncryptedPassword
    • userLettoRoles

      @Value("${letto_user_letto_roles:}") private String userLettoRoles
    • ltiHttpPort

      @Value("${service_lti_http_port:8090}") private int ltiHttpPort
    • ltiAjpPort

      @Value("${service_lti_ajp_port:7090}") private int ltiAjpPort
    • ltiHttpsPort

      @Value("${service_lti_https_port:9090}") private int ltiHttpsPort
    • ltiServiceUri

      @Value("${letto_lti_uri:http://localhost:8090}") private String ltiServiceUri
    • ltiRestKey

      @Value("${letto_lti_restkey:oive9rvweve9rvb98vb23v898vbw}") private String ltiRestKey
    • imageHttpPort

      @Value("${service_image_http_port:8091}") private int imageHttpPort
    • imageAjpPort

      @Value("${service_image_ajp_port:7091}") private int imageAjpPort
    • imageHttpsPort

      @Value("${service_image_https_port:9091}") private int imageHttpsPort
    • imageServiceUri

      @Value("${letto_image_uri:http://localhost:8091}") private String imageServiceUri
    • imageServiceUser

      @Value("${letto_image_user:user}") private String imageServiceUser
    • imageServicePassword

      @Value("${letto_image_password:wqEycXhK65pPL3}") private String imageServicePassword
    • imageServiceMode

      @Value("${letto_image_mode:IMAGE}") private String imageServiceMode
    • imageServiceTempDir

      @Value("${letto_image_tempdir:/tmp/imageservice}") private String imageServiceTempDir
    • imageLocalImagePath

      @Value("${service_image_local_image_path:/opt/letto/images}") private String imageLocalImagePath
    • imageUri

      @Value("${service_image_uri:https://localhost/images}") private String imageUri
    • imagePhotosLocalImagePath

      @Value("${service_image_photos_local_image_path:/opt/letto/images/photos}") private String imagePhotosLocalImagePath
    • imagePhotosUri

      @Value("${service_image_photos_uri:https://localhost/photos}") private String imagePhotosUri
    • imagePluginsLocalImagePath

      @Value("${service_image_plugins_local_image_path:/opt/letto/images/plugins}") private String imagePluginsLocalImagePath
    • imagePluginsUri

      @Value("${service_image_plugins_uri:https://localhost/plugins}") private String imagePluginsUri
    • imageProjektePath

      @Value("${service_image_projekte_path:/opt/letto/projekte}") private String imageProjektePath
    • imageProjekteUri

      @Value("${service_image_projekte_uri:https://localhost/projekte}") private String imageProjekteUri
    • matheHttpPort

      @Value("${service_mathe_http_port:8092}") private int matheHttpPort
    • matheAjpPort

      @Value("${service_mathe_ajp_port:7092}") private int matheAjpPort
    • matheHttpsPort

      @Value("${service_mathe_https_port:9092}") private int matheHttpsPort
    • matheServiceUri

      @Value("${letto_mathe_uri:http://localhost:8092}") private String matheServiceUri
    • demoHttpPort

      @Value("${service_demo_http_port:8093}") private int demoHttpPort
    • demoAjpPort

      @Value("${service_demo_ajp_port:7093}") private int demoAjpPort
    • demoHttpsPort

      @Value("${service_demo_https_port:9093}") private int demoHttpsPort
    • demoServiceUri

      @Value("${letto_demo_uri:http://localhost:8093}") private String demoServiceUri
    • mailHttpPort

      @Value("${service_mail_http_port:8094}") private int mailHttpPort
    • mailAjpPort

      @Value("${service_mail_ajp_port:7094}") private int mailAjpPort
    • mailHttpsPort

      @Value("${service_mail_https_port:9094}") private int mailHttpsPort
    • mailServiceUri

      @Value("${letto_mail_uri:http://localhost:8094}") private String mailServiceUri
    • loginHttpPort

      @Value("${service_login_http_port:8095}") private int loginHttpPort
    • loginAjpPort

      @Value("${service_login_ajp_port:7095}") private int loginAjpPort
    • loginHttpsPort

      @Value("${service_login_https_port:9095}") private int loginHttpsPort
    • loginServiceUri

      @Value("${letto_login_uri:http://localhost:8095}") private String loginServiceUri
    • setupHttpPort

      @Value("${service_setup_http_port:8096}") private int setupHttpPort
    • setupAjpPort

      @Value("${service_setup_ajp_port:7096}") private int setupAjpPort
    • setupHttpsPort

      @Value("${service_setup_https_port:9096}") private int setupHttpsPort
    • setupServiceUri

      @Value("${letto_setup_uri:https://localhost:3096}") private String setupServiceUri
    • licenseHttpPort

      @Value("${service_license_http_port:8097}") private int licenseHttpPort
    • licenseAjpPort

      @Value("${service_license_ajp_port:7097}") private int licenseAjpPort
    • licenseHttpsPort

      @Value("${service_license_https_port:9097}") private int licenseHttpsPort
    • licenseServiceUri

      @Value("${letto_license_uri:http://localhost:8097}") private String licenseServiceUri
    • printHttpPort

      @Value("${service_print_http_port:8098}") private int printHttpPort
    • printAjpPort

      @Value("${service_print_ajp_port:7098}") private int printAjpPort
    • printHttpsPort

      @Value("${service_print_https_port:9098}") private int printHttpsPort
    • printServiceUri

      @Value("${letto_print_uri:http://localhost:8098}") private String printServiceUri
    • exportHttpPort

      @Value("${service_export_http_port:8099}") private int exportHttpPort
    • exportAjpPort

      @Value("${service_export_ajp_port:7099}") private int exportAjpPort
    • exportHttpsPort

      @Value("${service_export_https_port:9099}") private int exportHttpsPort
    • exportServiceUri

      @Value("${letto_export_uri:http://localhost:8099}") private String exportServiceUri
    • beurteilungHttpPort

      @Value("${service_beurteilung_http_port:8100}") private int beurteilungHttpPort
    • beurteilungAjpPort

      @Value("${service_beurteilung_ajp_port:7100}") private int beurteilungAjpPort
    • beurteilungHttpsPort

      @Value("${service_beurteilung_https_port:9100}") private int beurteilungHttpsPort
    • beurteilungServiceUri

      @Value("${letto_beurteilung_uri:http://localhost:8100}") private String beurteilungServiceUri
    • testHttpPort

      @Value("${service_test_http_port:8101}") private int testHttpPort
    • testAjpPort

      @Value("${service_beurteilung_ajp_port:7101}") private int testAjpPort
    • testHttpsPort

      @Value("${service_beurteilung_https_port:9101}") private int testHttpsPort
    • testServiceUri

      @Value("${letto_beurteilung_uri:http://localhost:8101}") private String testServiceUri
    • questionHttpPort

      @Value("${service_question_http_port:8102}") private int questionHttpPort
    • questionAjpPort

      @Value("${service_question_ajp_port:7102}") private int questionAjpPort
    • questionHttpsPort

      @Value("${service_question_https_port:9102}") private int questionHttpsPort
    • questionServiceUri

      @Value("${letto_question_uri:http://localhost:8102}") private String questionServiceUri
    • pluginHttpPort

      @Value("${service_plugin_http_port:8200}") private int pluginHttpPort
    • pluginAjpPort

      @Value("${service_plugin_ajp_port:7200}") private int pluginAjpPort
    • pluginHttpsPort

      @Value("${service_plugin_https_port:9200}") private int pluginHttpsPort
    • pluginServiceUri

      @Value("${letto_plugin_uri:http://localhost:8200}") private String pluginServiceUri
    • pluginsourcecodeHttpPort

      @Value("${service_pluginsourcecode_http_port:8204}") private int pluginsourcecodeHttpPort
    • pluginsourcecodeAjpPort

      @Value("${service_pluginsourcecode_ajp_port:7204}") private int pluginsourcecodeAjpPort
    • pluginsourcecodeHttpsPort

      @Value("${service_pluginsourcecode_https_port:9204}") private int pluginsourcecodeHttpsPort
    • pluginsourcecodeServiceUri

      @Value("${letto_pluginsourcecode_uri:http://localhost:8204}") private String pluginsourcecodeServiceUri
    • plugintesterHttpPort

      @Value("${service_plugintester_http_port:8290}") private int plugintesterHttpPort
    • plugintesterAjpPort

      @Value("${service_plugintester_ajp_port:7290}") private int plugintesterAjpPort
    • plugintesterHttpsPort

      @Value("${service_plugintes_https_port:9290}") private int plugintesterHttpsPort
    • plugintesterServiceUri

      @Value("${letto_plugintester_uri:http://localhost:8290}") private String plugintesterServiceUri
    • lettoEditHttpPort

      @Value("${service_edit_http_port:8103}") private int lettoEditHttpPort
    • lettoEditAjpPort

      @Value("${service_edit_ajp_port:7103}") private int lettoEditAjpPort
    • lettoEditHttpsPort

      @Value("${service_edit_https_port:9103}") private int lettoEditHttpsPort
    • lettoEditServiceUri

      @Value("${letto_edit_uri:http://localhost:8103}") private String lettoEditServiceUri
    • lettoAppHttpPort

      @Value("${service_app_http_port:8199}") private int lettoAppHttpPort
    • lettoAppAjpPort

      @Value("${service_app_ajp_port:7199}") private int lettoAppAjpPort
    • lettoAppHttpsPort

      @Value("${service_app_https_port:9199}") private int lettoAppHttpsPort
    • lettoAppServiceUri

      @Value("${letto_app_uri:http://localhost:8199}") private String lettoAppServiceUri
    • lettoFrontendEditServiceUri

      @Value("${frontend_edit_uri:http://localhost:8080}") private String lettoFrontendEditServiceUri
    • lehrplanHttpPort

      @Value("${service_lehrplan_http_port:8104}") private int lehrplanHttpPort
    • lehrplanAjpPort

      @Value("${service_lehrplan_ajp_port:7104}") private int lehrplanAjpPort
    • lehrplanHttpsPort

      @Value("${service_lehrplan_https_port:9104}") private int lehrplanHttpsPort
    • lehrplanServiceUri

      @Value("${letto_lehrplan_uri:https://lehrplan.letto.at}") private String lehrplanServiceUri
    • lettodataHttpPort

      @Value("${service_lettodata_http_port:8300}") private int lettodataHttpPort
    • lettodataAjpPort

      @Value("${service_lettodata_ajp_port:7300}") private int lettodataAjpPort
    • lettodataHttpsPort

      @Value("${service_lettodata_https_port:9300}") private int lettodataHttpsPort
    • lettodataServiceUri

      @Value("${letto_lettodata_uri:http://localhost:8300}") private String lettodataServiceUri
    • lettodataRedirectTokenUri

      @Value("${letto_lettodata_redirecttokenuri:http://localhost:8088/letto_war_exploded/loginTempToken.jsf}") private String lettodataRedirectTokenUri
    • schuleStandardIdSchuleLizenz

      @Value("${letto_schule_standard_idschule_lizenz:0}") private String schuleStandardIdSchuleLizenz
    • schuleStandardIdSchuleData

      @Value("${letto_schule_standard_idschule_data:0}") private String schuleStandardIdSchuleData
    • schuleStandardSchulename

      @Value("${letto_schule_standard_schulname:HTL-Testschule}") private String schuleStandardSchulename
    • schuleStandardLettoDataUri

      @Value("${letto_schule_standard_lettodata_uri:http://localhost:8300}") private String schuleStandardLettoDataUri
    • schuleStandardLettoDataUser

      @Value("${letto_schule_standard_lettodata_user:user}") private String schuleStandardLettoDataUser
    • schuleStandardLettoDataPassword

      @Value("${letto_schule_standard_lettodata_password:wqEycXhK65pPL3}") private String schuleStandardLettoDataPassword
    • schuleStandardLettoUri

      @Value("${letto_schule_standard_letto_uri:https://localhost/letto}") private String schuleStandardLettoUri
    • schuleStandardLizenz

      @Value("${letto_schule_standard_lizenz:}") private String schuleStandardLizenz
    • schuleStandardLettoLoginUriExtern

      @Value("${letto_schule_standard_login_uriextern:https://localhost/login}") private String schuleStandardLettoLoginUriExtern
    • schuleStandardLettoUriExtern

      @Value("${letto_schule_standard_letto_uriextern:https://localhost/letto}") private String schuleStandardLettoUriExtern
    • schulen

      @Value("${letto_schulen:}") private String schulen
    • schule

      @Value("${letto_schule:}") private String schule
    • webSecurityConfig

      public WebSecurityConfig webSecurityConfig
  • Constructor Details

    • BaseMicroServiceConfiguration

      public BaseMicroServiceConfiguration()
      Daten von den Konfigurationsdateien laden und Bean Initialisieren
      Im Fehlerfall ins Logfile, auf die Kommandozeile loggen bzw. ggf mit einer Exception die Bean beenden.
  • Method Details

    • setJwtSecret

      public void setJwtSecret(String jwtSecret)
    • setJwtExpiration

      public void setJwtExpiration(long jwtExpiration)
    • webServerFactoryCustomizer

      public org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory> webServerFactoryCustomizer()
    • createSslConnector

      public org.apache.catalina.connector.Connector createSslConnector(int port)
      Returns:
      HTTPS-Connector
    • createAjpConnector

      public org.apache.catalina.connector.Connector createAjpConnector(int port)
      Returns:
      AJP-Connector
    • createStandardConnector

      public org.apache.catalina.connector.Connector createStandardConnector(int port)
      Returns:
      HTTP-Connector
    • getSchulen

      public List<String> getSchulen()
      Specified by:
      getSchulen in interface MicroServiceConfigurationInterface
      Returns:
      Liste aller Schulen welche von dem Server gehostet werden als Namen der Schulen
    • setSchulen

      public void setSchulen(List<String> schulenList)
    • getUserlist

      public List<String> getUserlist()
      Specified by:
      getUserlist in interface MicroServiceConfigurationInterface
      Returns:
      Liste aller Benutzer welche auf den Dienst direkt zugreifen können
    • setUserlist

      public void setUserlist(List<String> userList)
    • redirect

      public String redirect(jakarta.servlet.http.HttpServletRequest request, String endpoint)
    • baseUrl

      public String baseUrl(jakarta.servlet.http.HttpServletRequest request)