Update inventory design model to match prototype

This commit is contained in:
Simon Bruder 2023-11-05 16:36:32 +01:00
parent 3feb0dfef2
commit 003e9f39c8
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 37 additions and 29 deletions

View file

@ -1,46 +1,54 @@
@startuml
'maybe for sbruder since he did videoshop:inventory-increment'
'maybe TR0N-ZEN since he did videoshop:keyword-search'
skinparam linetype ortho
skinparam groupInheritance 2
package Spring {
class Assert
class Errors
interface Model
'havent used Assert yet as in example'
}
package Salespoint {
interface DataInitializer
class Product
class Quantity
interface UniqueInventory<T extends UniqueInventoryItem>
class UniqueInventoryItem
}
package catering.catalog {
package catering {
package catalog {
interface CateringCatalog
}
package catering.inventory {
package inventory {
class InventoryController {
+ InventoryController(inventory : UniqueInventory)
+ stock(model : Model) : String
+ 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 ..> Model
InventoryController --> UniqueInventory : "-inventory"
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 --> CateringCatalog : "-cateringCatalog"
InventoryInitializer ..|> DataInitializer
InventoryInitializer ..> Quantity
InventoryInitializer ..> UniqueInventoryItem
InventoryInitializer ---> UniqueInventory : "-inventory"
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

Binary file not shown.