Add customer design module

This commit is contained in:
Denis Natusch 2023-11-09 18:47:11 +01:00 committed by Simon Bruder
parent b3c6e3c144
commit 3b77717506
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,64 @@
@startuml
skinparam linetype ortho
skinparam groupInheritance 2
package java.util {
class ArrayList
class Collection
class HashSet
class Optional
class Set
}
package catering {
package customer {
class Customer {
- id: int
+ Customer()
+ addCustomer(customer: Customer): boolean
+ save(customer: Customer): void
+ count(): long
+ removeCustomer(customerID: int): boolean
+ getCustomers(): Collection<Customer>
+ findById(id: int): Optional<Customer>
}
class CustomerController {
+ CustomerController(staffRepository: StaffRepository)
+ getCustomer(model Model): String
+ removeCustomer(customerID: int, model Model): String
+ editCustomer(id: int, model Model): String
+ updateCustomer(customer: Customer): String
}
class CustomerDataInitializer {
+ CustomerDataInitializer(customeRepository: CustomeRepository)
+ initialize(): void
}
class CustomerRepository {
+ CustomerRepository()
+ addCustomer(customer: Customer): boolean
+ save(customer: Customer): void
+ count(): long
+ removeStaff(staffID: int) boolean
+ getCustomer(): Collection<Customer>
+ findById(id: int): Optional<Customer>
}
}
}
CustomerRepository *-- Customer : -customer
CustomerController --> CustomerRepository : -customerRepository
CustomerDataInitializer --> CustomerRepository : -customerRepository
CustomerRepository --> Set : -customers
CustomerRepository --> HashSet : use
CustomerRepository --> Collection : use
CustomerRepository --> Optional : use
CustomerRepository --> ArrayList : use
@enduml

BIN
src/main/asciidoc/models/design/customer.svg (Stored with Git LFS) Normal file

Binary file not shown.