mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Update order package diagram
This commit is contained in:
parent
8929868895
commit
1f5b897c2b
|
@ -32,23 +32,31 @@ package order {
|
|||
class OrderController {
|
||||
+OrderController(oM: OrderManagement<CustomOrder>, cOR: CustomOrderRepository, inv: UniqueInventory<UniqueInventoryItem>, cat: CateringCatalog, stM: StaffManagement)
|
||||
+orders(model: Model, userAccount: Optional<UserAccount>): String
|
||||
+orders(model: Model): String
|
||||
+orders(model: Model, String day): String
|
||||
+ordersForAdmin(model: Model, form: OrderQueryForm): String
|
||||
+ordersForAdmin(model: Model, day: String, form: OrderQueryForm): String
|
||||
~initializeCart(): CustomCart
|
||||
+event(model: Model, cart: CustomCart): String
|
||||
+addEmployeeToCart(empId: long, cart: CustomCart): String
|
||||
+removeEmployeeFromCart(empId: long, cart: CustomCart): String
|
||||
+removeOrder(orderId: Order.OrderIdentifier, userAccount: Optional<UserAccount>): String
|
||||
+addProduct(product: Product, number: int, cart: CustomCart): String
|
||||
+addProduct(product: Optional<Product>, number: int, cart: CustomCart): String
|
||||
+removeProduct(itemId: String, cart: CustomCart): String
|
||||
+changeDate(start: LocalDate, startHour: Optional<Integer>, finish: LocalDate, finishHour: Optional<Integer>, cart: CustomCart): String
|
||||
+checkout(cart: CustomCart, userAccount: Optional<UserAccount>): String
|
||||
+orderError(): String
|
||||
+changeOrderType(orderType: String, cart: CustomCart): String
|
||||
+{static}findFreeAmountInInterval(product: Rentable, start: LocalDatetime, finish: LocalDatetime, inv: UniqueInventory<UniqueInventoryItem>, cOR: CustomOrderRepository): Quantity
|
||||
+calender(model: Model): String
|
||||
+invoice(model: Model, userAccount: UserAccount, order: Order): String
|
||||
}
|
||||
|
||||
class OrderQueryForm {
|
||||
-orderStatus: Optional<OrderStatus>
|
||||
+of(order: CustomOrder): OrderQueryForm
|
||||
+getOrderStatus(): Optional<OrderStatus>
|
||||
+setOrderStatus(orderStatus: Optional<OrderStatus>)
|
||||
}
|
||||
|
||||
interface CustomOrderRepository {
|
||||
+findOrdersByInterval(start: LocalDateTime, finish: LocalDateTime): Streamable<CustomOrder>
|
||||
}
|
||||
|
@ -96,6 +104,7 @@ OrderController o--------> staff.StaffManagement: -staffManagement
|
|||
OrderController ........> Product
|
||||
OrderController ........> Cash
|
||||
OrderController ........> OrderStatus
|
||||
OrderController ........> OrderQueryForm
|
||||
|
||||
OrderController ........> UserAccount
|
||||
OrderController ........> time.LocalDate
|
||||
|
|
BIN
src/main/asciidoc/models/design/order.svg
(Stored with Git LFS)
BIN
src/main/asciidoc/models/design/order.svg
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in a new issue