Skip to content
Snippets Groups Projects
Select Git revision
  • 42db674016f729d51f23b36a9a0d4f838f639951
  • main default protected
  • OZG-7986-mandat-anfragen
  • OZG-8376-ods-select
  • OZG-8378-fix-routing
  • admin-cleanup
  • OZG-8405-Alfa-Bearbeiter-auswählen-und-entfernen-Design
  • wip-sebo-sebastian
  • OZG-7981-Statistik-Anzeige-von-Mandanten
  • fix-storybook
  • OZG-8314-Alfa-Vorgang-Bearbeiter-Zuweisung-entfernen
  • testing-imports
  • storybook-improvements
  • OZG-7287-forward-saml-token
  • release-administration
  • OZG-8422-BenutzerSpeichern
  • release-info
  • release
  • OZG-7856_schadcode-scanner-e2e
  • OZG-7985-fix-sorting
  • OZG-8305-Create-webpack-sbom
  • 1.12.1-administration
  • 1.12.0-administration
  • 1.12.0-info
  • 2.27.0-alfa
  • 1.11.0-info
  • 1.11.0-administration
  • 2.26.0-alfa
  • 1.10.0-info
  • 1.10.0-administration
  • 2.25.0-alfa
  • 1.9.0-info
  • 1.9.0-administration
  • 2.24.0-alfa
  • 1.8.0-info
  • 1.8.0-administration
  • 2.23.0-alfa
  • 1.7.0-info
  • 1.7.0-administration
  • 2.22.0-alfa
  • 1.6.0-info
41 results

delete-icon.component.ts

Blame
  • RootController.java 1.92 KiB
    /*
     * Copyright (c) 2024.
     * Lizenziert unter der EUPL, Version 1.2 oder - sobald
     * diese von der Europäischen Kommission genehmigt wurden -
     * Folgeversionen der EUPL ("Lizenz");
     * Sie dürfen dieses Werk ausschließlich gemäß
     * dieser Lizenz nutzen.
     * Eine Kopie der Lizenz finden Sie hier:
     *
     * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
     *
     * Sofern nicht durch anwendbare Rechtsvorschriften
     * gefordert oder in schriftlicher Form vereinbart, wird
     * die unter der Lizenz verbreitete Software "so wie sie
     * ist", OHNE JEGLICHE GEWÄHRLEISTUNG ODER BEDINGUNGEN -
     * ausdrücklich oder stillschweigend - verbreitet.
     * Die sprachspezifischen Genehmigungen und Beschränkungen
     * unter der Lizenz sind dem Lizenztext zu entnehmen.
     */
    
    package de.ozgcloud.antragsraum;
    
    import static java.util.Objects.*;
    
    import org.springframework.beans.factory.annotation.Value;
    import org.springframework.boot.info.BuildProperties;
    import org.springframework.http.ResponseEntity;
    import org.springframework.web.bind.annotation.GetMapping;
    import org.springframework.web.bind.annotation.RestController;
    
    import lombok.RequiredArgsConstructor;
    
    @RestController(RootController.PATH)
    @RequiredArgsConstructor
    public class RootController {
    
    	static final String PATH = "/"; // NOSONAR
    	private static final String JAVA_VERSION_PROPERTY_NAME = "java.version";
    
    	private final BuildProperties buildProperties;
    	@Value("${ozgcloud.stage.production:#{true}}")
    	private boolean production = true;
    
    	@GetMapping
    	public ResponseEntity<Root> getRoot() {
    		var root = new Root.RootBuilder()
    		  .version(isNull(buildProperties) ? null : buildProperties.getVersion())
    		  .buildTime(isNull(buildProperties) ? null : buildProperties.getTime())
    		  .name(isNull(buildProperties) ? null : buildProperties.getName())
    		  .javaVersion(System.getProperty(JAVA_VERSION_PROPERTY_NAME))
    		  .isProduction(production)
    		  .build();
    
    		return ResponseEntity.ok(root);
    	}
    
    }