mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Update inventory design model to match prototype
This commit is contained in:
parent
3feb0dfef2
commit
003e9f39c8
|
@ -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
|
||||
|
|
BIN
src/main/asciidoc/models/design/inventory.svg
(Stored with Git LFS)
BIN
src/main/asciidoc/models/design/inventory.svg
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in a new issue