swt23w23/src/main/asciidoc/models/design/seq_catalog.puml

59 lines
1.5 KiB
Plaintext
Raw Normal View History

' SPDX-License-Identifier: AGPL-3.0-or-later
' SPDX-FileCopyrightText: 2023 swt23w23
2023-11-11 04:21:07 +01:00
@startuml
' participant Administrator
participant User
participant Catalog
participant Inventory
participant Salespoint
participant Spring
== List Products for events of type ==
User -> Catalog : catalog(type)
2023-11-15 15:35:53 +01:00
activate User
2023-11-11 04:21:07 +01:00
activate Catalog
Catalog -> Catalog : type == 'EVENTCATERING' ? rentableCatalog.findByType(type)
Catalog -> Catalog : type != 'RENT_A_COOK' ? consumableCatalog.findByType(type)
Catalog -> Spring : type == 'EVENTCATERING' ? addAttribute(rentables_of_type)
activate Spring
Catalog <-- Spring
deactivate Spring
Catalog -> Spring : type != 'RENT_A_COOK' ? model.addAttribute(consumables_of_type)
activate Spring
Catalog <-- Spring
deactivate Spring
Catalog -> Spring : model.addAttribute(type)
activate Spring
Catalog <-- Spring
deactivate Spring
User <-- Catalog : catalog.html
deactivate Catalog
== Show product details ==
User -> Catalog : detail(id)
activate Catalog
Catalog -> Inventory : inventory.findByProductIdentifier(id)
activate Inventory
2023-11-15 15:35:53 +01:00
Catalog <-- Inventory : inventoryItem
2023-11-11 04:21:07 +01:00
deactivate Inventory
Catalog -> Salespoint : inventoryItem.getQuantity()
activate Salespoint
2023-11-15 15:35:53 +01:00
Catalog <-- Salespoint : quantity
2023-11-11 04:21:07 +01:00
deactivate Salespoint
Catalog -> Spring : model.addAttribute(inventoryItem)
activate Spring
Catalog <-- Spring
deactivate Spring
Catalog -> Spring : model.addAttribute(quantity)
activate Spring
Catalog <-- Spring
deactivate Spring
User <-- Catalog : detail.html
deactivate Catalog
' deactivate User
@enduml