Fix spelling errors and minor mistakes in dev-doc

This is the last update of the developer documentation
and this fixes minor inconsistencies as well as spelling errors.
This commit is contained in:
Mathis Kral 2024-01-19 17:16:48 +01:00 committed by Mathis
parent 43dbb222a9
commit 6f0d78b6f8
6 changed files with 27 additions and 12 deletions

View file

@ -139,7 +139,7 @@ image:models/design/systemContextDiagram.svg[]
|Quality Demand |Solution approach |Quality Demand |Solution approach
|Functional Suitability a| |Functional Suitability a|
* *Exchange* Ensure that the exchange of system data between the system component works flowlessly. * *Exchange* Ensure that the exchange of system data between the system component works flowlessly.
* *Requirements* Ensure that all functional requirements as descripted in the contrect are fulfilled. * *Requirements* Ensure that all functional requirements as descripted in the contract are fulfilled.
|Performance efficient a| |Performance efficient a|
*Not important* *Not important*
|Compatability a| |Compatability a|
@ -201,6 +201,7 @@ image:models/design/dialogue_map.svg[Dialog Map of the Videoshop]
* catering.catalog * catering.catalog
* catering.inventory * catering.inventory
* catering.order * catering.order
* catering.orderCatalog
| Application should be provided as a static website | Application should be provided as a static website
|org.springframework.security a| |org.springframework.security a|
* catering * catering
@ -208,12 +209,14 @@ image:models/design/dialogue_map.svg[Dialog Map of the Videoshop]
| Security features for the videoshop application and authorization of website access | Security features for the videoshop application and authorization of website access
|org.springframework.data a| |org.springframework.data a|
* catering.order * catering.order
* catering.orderCatalog
| JPA connection utility to the database layer | JPA connection utility to the database layer
|org.salespointframework a| |org.salespointframework a|
* catering * catering
* catering.catalog * catering.catalog
* catering.inventory * catering.inventory
* caterin.orger * catering.order
* catering.orderCatalog
* caterin.users * caterin.users
| Reuse of SalesPoints POS functionality | Reuse of SalesPoints POS functionality
|=== |===
@ -253,8 +256,10 @@ image:models/design/inventory.svg[class design diagram - Inventory]
|=== |===
|Class/Enumeration |Description |Class/Enumeration |Description
|InventoryController |A Spring MVC Controller to handle the request to list and mutate the catering services inventory |InventoryController |A Spring MVC Controller to handle the request to list and mutate the catering services inventory
|InventoryInitilalizer |An implementation of the DataInitializer to create dummy data on application startup |InventoryInitializer |An implementation of the DataInitializer to create dummy data on application startup
|InventoryMutateForm |An class to validate the user input of the edit/add form |InventoryMutateForm |A class to validate the user input of the edit/add form
|ConsumableMutateForm |A subclass of InventoryMutateForm for Consumables
|RentableMutateForm |A subclass of InventoryMutateForm for Rentables
|=== |===
=== OrderCatalog === OrderCatalog
@ -279,7 +284,8 @@ image:models/design/order.svg[class design diagram - Order]
|Class/Enumeration |Description |Class/Enumeration |Description
|OrderController |A Spring MVC Controller to handle the cart and all orders |OrderController |A Spring MVC Controller to handle the cart and all orders
|CustomOrder |An extension of `Order` to save the start and finish of an event |CustomOrder |An extension of `Order` to save the start and finish of an event
|ProductForm |A Form to cache a user input that was made while planning and event |CustomCart | An extension of `Cart` to save the start and finish of an event
|OrderQueryForm |A Form to cache a user input that was made while filtering orders
|=== |===
=== User === User
@ -290,7 +296,7 @@ image:models/design/user.svg[class design diagram - User]
|=== |===
|Class/Enumeration |Description |Class/Enumeration |Description
|Usercontroller |A Spring MVC Controller to handle profile management. |Usercontroller |A Spring MVC Controller to handle profile management.
|UserDataInitalizer |An Initializer with primary purpose to add the admin. |UserDataInitializer |An Initializer with primary purpose to add the admin.
|UserManagement |A class that manages the UserRepository. |UserManagement |A class that manages the UserRepository.
|UserRepository |An extension of 'CrudRepository' to store Users. |UserRepository |An extension of 'CrudRepository' to store Users.
|User |A class that allows a person to associate system data with themselves. |User |A class that allows a person to associate system data with themselves.

View file

@ -20,6 +20,7 @@ state Server {
state Catalog state Catalog
state Order state Order
state OrderCatalog
state Customer state Customer
state Inventory state Inventory
} }

Binary file not shown.

View file

@ -25,7 +25,7 @@ package catering {
package inventory { package inventory {
class InventoryController { class InventoryController {
+ InventoryController(inventory : UniqueInventory) + InventoryController(inventory : UniqueInventory, cateringCatalog : CateringCatalog, catalogEntryRepository : CustomCatalogEntryRepository)
+ list(model : Model) : String + list(model : Model) : String
+ edit(model : Model, pid : Product) : String + edit(model : Model, pid : Product) : String
+ edit(model : Model, pid : Product, form : InventoryMutateForm) : String + edit(model : Model, pid : Product, form : InventoryMutateForm) : String
@ -74,6 +74,7 @@ package catering {
+ getMetric(): Metric + getMetric(): Metric
+ getOrderTypes(): Set<OrderType> + getOrderTypes(): Set<OrderType>
+ setName(name: String) + setName(name: String)
+ setQuantity(quantity: Long)
+ setRetailPrice(Double retailPrice) + setRetailPrice(Double retailPrice)
+ setOrderTypes(orderTypes: Set<OrderType>) + setOrderTypes(orderTypes: Set<OrderType>)
+ setMetric(metric: Metric) + setMetric(metric: Metric)

View file

@ -29,6 +29,10 @@ package "web application\n[container]" as Package {
usecase UC5 as "**Customer** usecase UC5 as "**Customer**
[Component: Spring service, controller and JPA entity] [Component: Spring service, controller and JPA entity]
customer management of the catering-service" customer management of the catering-service"
usecase UC6 as "**OrderCatalog**
[Component: Spring service, controller and JPA entity]
event presets of the catering-service"
} }
database DB as "**Database** database DB as "**Database**
@ -41,15 +45,18 @@ UN ----> UC2 : "**view catalog**\n[HTTP]"
Kunde ----> UC2 : "**view catalog**\n[HTTP]" Kunde ----> UC2 : "**view catalog**\n[HTTP]"
Kunde ----> UC3 : "**plan a catering event**\n[HTTP]" Kunde ----> UC3 : "**plan a catering event**\n[HTTP]"
Kunde ----> UC6 : "**plan a catering event**\n[HTTP]"
Kunde ---- UC5 : "**delete account, change personal data**\n[HTTP]" Kunde ---- UC5 : "**delete account, change personal data**\n[HTTP]"
Boss ----> UC3 : "**view orders**\n[HTTP]" Boss ----> UC3 : "**view orders**\n[HTTP]"
Boss ----> UC4 : "**manage inventory/staff**\n[HTTP]" Boss ----> UC4 : "**manage inventory/staff**\n[HTTP]"
Boss ----> UC2 : "**modify catalog**\n[HTTP]" Boss ----> UC2 : "**modify catalog**\n[HTTP]"
Boss ----> UC6 : "**modify event presets**\n[HTTP]"
UC2 ----> DB : "**read and write catalog data**\n[JPA]" UC2 ----> DB : "**read and write catalog data**\n[JPA]"
UC3 ----> DB : "**read and write order data**\n[JPA]" UC3 ----> DB : "**read and write order data**\n[JPA]"
UC4 ----> DB : "**read and write inventory data**\n[JPA]" UC4 ----> DB : "**read and write inventory data**\n[JPA]"
UC5 ----> DB : "**rean and write customer data**\n[JPA]" UC5 ----> DB : "**read and write customer data**\n[JPA]"
UC6 ----> DB : "**read and write orderCatalog data**\n[JPA]"
@enduml @enduml

Binary file not shown.