swt23w23/src/main/asciidoc/models/design/seq_catalog.puml
Simon Bruder bac025fd0a
Make project REUSE compliant
This finally makes the licensing under AGPL-3.0-or-later explicit after
I got the okay from the kickstart source owners.

This also checks the REUSE compliance in a pre commit hook, and
therefore also in CI.
2023-12-11 17:59:14 +01:00

59 lines
1.5 KiB
Plaintext

' SPDX-License-Identifier: AGPL-3.0-or-later
' SPDX-FileCopyrightText: 2023 swt23w23
@startuml
' participant Administrator
participant User
participant Catalog
participant Inventory
participant Salespoint
participant Spring
== List Products for events of type ==
User -> Catalog : catalog(type)
activate User
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
Catalog <-- Inventory : inventoryItem
deactivate Inventory
Catalog -> Salespoint : inventoryItem.getQuantity()
activate Salespoint
Catalog <-- Salespoint : quantity
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