mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-04 18:19:40 +02:00
55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
@startuml
|
|
skinparam linetype ortho
|
|
skinparam groupInheritance 2
|
|
|
|
package Spring {
|
|
class Assert
|
|
class Errors
|
|
interface Model
|
|
}
|
|
|
|
package Salespoint {
|
|
interface DataInitializer
|
|
class Product
|
|
class Quantity
|
|
interface UniqueInventory<T extends UniqueInventoryItem>
|
|
class UniqueInventoryItem
|
|
}
|
|
|
|
package catering {
|
|
package catalog {
|
|
interface CateringCatalog
|
|
}
|
|
|
|
package inventory {
|
|
class InventoryController {
|
|
+ InventoryController(inventory : UniqueInventory)
|
|
+ list(model : Model) : String
|
|
+ edit(model : Model, pid : Product) : String
|
|
+ edit(form : InventoryMutateForm, result : Errors, pid : Product) : String
|
|
+ add() : String
|
|
+ add(form : InventoryMutateForm, result : Errors) : String
|
|
+ delete(pid : Product) : String
|
|
}
|
|
InventoryController ..> InventoryMutateForm
|
|
InventoryController .u.> Salespoint.Product
|
|
InventoryController -u-> "1" Salespoint.UniqueInventory : "-inventory"
|
|
InventoryController .u.> Salespoint.UniqueInventoryItem
|
|
InventoryController .u.> Spring.Assert
|
|
InventoryController .u.> Spring.Errors
|
|
InventoryController .u.> Spring.Model
|
|
|
|
class InventoryInitializer {
|
|
+ InventoryInitializer(inventory : UniqueInventory, catalog : CateringCatalog)
|
|
+ initialize() : void
|
|
}
|
|
InventoryInitializer --> "1" catering.catalog.CateringCatalog : "-cateringCatalog"
|
|
InventoryInitializer .u.|> Salespoint.DataInitializer
|
|
InventoryInitializer .u.> Salespoint.Quantity
|
|
InventoryInitializer -u-> "1" Salespoint.UniqueInventory : "-inventory"
|
|
InventoryInitializer .u.> Salespoint.UniqueInventoryItem
|
|
InventoryInitializer .u.> Spring.Assert
|
|
}
|
|
}
|
|
@enduml
|