|
|
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
| {{#mermaid:journey | | {{#mermaid:pie title Flächenverteilung von Ahrensburg |
| title Benutzerreise: Spring Boot MVC-Anwendung
| | "Wohnbaufläche" : 963 |
| section Benutzer sendet Anfrage
| | "Gewerbefläche" : 253 |
| Anfrage an Controller: 5: Benutzer sendet HTTP-Anfrage
| | "Waldfläche" : 635 |
| section Controller verarbeitet Anfrage
| | "Wasserfläche" : 80 |
| Anfrage validieren: 4: Controller validiert Anfrage
| |
| Service aufrufen: 3: Controller ruft Service-Schicht auf
| |
| section Service-Schicht führt Logik aus | |
| Geschäftslogik ausführen: 4: Service-Schicht führt Geschäftslogik aus
| |
| Daten abrufen: 3: Service-Schicht ruft Daten aus Repository ab
| |
| section Repository-Schicht interagiert mit Datenbank | |
| Datenbankabfrage: 4: Repository führt Datenbankabfrage aus
| |
| Daten zurückgeben: 3: Repository gibt Daten an Service-Schicht zurück
| |
| section Service-Schicht gibt Daten zurück | |
| Daten verarbeiten: 4: Service-Schicht verarbeitet Daten
| |
| Daten an Controller zurückgeben: 3: Service-Schicht gibt Daten an Controller zurück
| |
| section Controller erstellt Antwort | |
| Antwort erstellen: 4: Controller erstellt HTTP-Antwort
| |
| Antwort senden: 3: Controller sendet Antwort an Benutzer
| |
| }} | | }} |
| | <br> |
| | {{#mermaid:classDiagram |
| | class ActionResult { |
| | <<abstract>> |
| | +ExecuteResultAsync(ActionContext context) Task |
| | } |
| | |
| | class ViewResult { |
| | +ViewName : string |
| | +Model : object |
| | +ExecuteResultAsync(ActionContext context) Task |
| | } |
|
| |
|
| <br>
| | class JsonResult { |
| <graph>
| | +Value : object |
| {
| | +ExecuteResultAsync(ActionContext context) Task |
| "title": "Benutzerreise: Spring Boot MVC-Anwendung",
| | } |
| "sections": [
| | |
| { | | class FileResult { |
| "title": "Benutzer sendet Anfrage",
| | +FileName : string |
| "steps": [
| | +ContentType : string |
| { "text": "Anfrage an Controller", "duration": 5, "actor": "Benutzer" } | | +ExecuteResultAsync(ActionContext context) Task |
| ]
| | } |
| }, | | |
| { | | class RedirectResult { |
| "title": "Controller verarbeitet Anfrage",
| | +Url : string |
| "steps": [
| | +Permanent : bool |
| { "text": "Anfrage validieren", "duration": 4, "actor": "Controller" }, | | +ExecuteResultAsync(ActionContext context) Task |
| { "text": "Service aufrufen", "duration": 3, "actor": "Controller" } | | } |
| ]
| | |
| }, | | class StatusCodeResult { |
| { | | +StatusCode : int |
| "title": "Service-Schicht führt Logik aus",
| | +ExecuteResultAsync(ActionContext context) Task |
| "steps": [
| |
| { "text": "Geschäftslogik ausführen", "duration": 4, "actor": "Service-Schicht" }, | |
| { "text": "Daten abrufen", "duration": 3, "actor": "Service-Schicht" } | |
| ]
| |
| },
| |
| {
| |
| "title": "Repository-Schicht interagiert mit Datenbank",
| |
| "steps": [
| |
| { "text": "Datenbankabfrage", "duration": 4, "actor": "Repository" },
| |
| { "text": "Daten zurückgeben", "duration": 3, "actor": "Repository" } | |
| ]
| |
| }, | |
| {
| |
| "title": "Service-Schicht gibt Daten zurück",
| |
| "steps": [
| |
| { "text": "Daten verarbeiten", "duration": 4, "actor": "Service-Schicht" },
| |
| { "text": "Daten an Controller zurückgeben", "duration": 3, "actor": "Service-Schicht" }
| |
| ]
| |
| },
| |
| { | |
| "title": "Controller erstellt Antwort",
| |
| "steps": [
| |
| { "text": "Antwort erstellen", "duration": 4, "actor": "Controller" }, | |
| { "text": "Antwort senden", "duration": 3, "actor": "Controller" } | |
| ]
| |
| } | | } |
| ]
| | |
| }
| | ActionResult <|-- ViewResult |
| </graph> | | ActionResult <|-- JsonResult |
| | ActionResult <|-- FileResult |
| | ActionResult <|-- RedirectResult |
| | ActionResult <|-- StatusCodeResult |
| | }} |