Classe UML (1)
Classe UML (1)
Notification- Service
JwtUtil
NotificationRepository
Product- Service
Order- Service
Product
ProductRepository
Commande
- IdProduct: Long
- nom: String +findById(IdProduct : Long):
- description : String Optional<Product> - IdCommande: Long
- imageUrl: String +findAll() : List<Product> - UserId: Long
+prix: double ProductController - dateCreation: Date
+save(product: Product): Product
+categorie : String - statut : String
+deleteById(IdProduct : Long):void
- total : double
- productService : ProductService
+getIdProduct():Long
+getNom() : String +getIdCommande():Long
+getProduct(idProduct : Long) : ResponseEntity<Product> CommandeRepository
+getDescription(): String +getUserId() : Long
+getAllProduct(): ResponseEntity<List<Product>>
+getImageUrl():String ProductService +getDateCreation() : Date Commande Service
+NewProduct(product:Product):ResponseEntity<Product>
+getPrix():double +getStatut() : Long +findById(IdCommande : Long): Optional<Commande>
+deleteProduct(idProduct : Long) : ResponseEntity <void>
+getCategorie():String +getTotal() : double
- productRepository : ProductRepository +finByUser(UserId :Long) :List<Commande> - commande Repository : Commande Repository
+setNom(nom : String) : void +setUserId(UserId : Long) : void
+setDateCreation(dateCreation : Date) : void +save(commande: Commande): Commande - commande ItemRepository: Commande ItemRepository
+setDescription(description : String) : void
+setStatut(statut : String) : void +deleteById(IdCommande : Long):void
+setImageUrl(imageUrl: String) :void +getProduct(idProduct : Long) : Product
+setPrix(prix: double) :void +setTotal(total : double) : void
+getAllProduct(): List<Product> +creerCommande(UserId: Long, items :List<CommandeItems>):
+setCategorie(categorie: String) :void +NewProduct(product:Product):Product Commande
+deleteProduct(idProduct : Long) : void +getCommandesParUser(UserId:Long):List<Commande>
CommandeItem
+getDetailsCommande(commandeId:Long):Commande
CommandeItemRepository +annulerCommande(commandeId :Long):void
- IdCommandeItem: Long
- commandeId: Long
- productId:Long
- quantite:int
+findByCommandeId(commandeId : Long): CommandeController
- prixUnitaire:double List<CommandeItem>
+save(commandeItem: CommandeItem): - commande Service : Commande Service
CommandeItem
+getIdCommandeItem():Long +deleteById(IdCommandeItem : Long):void
+getCommandeId() : Long +creerCommande(request :
+getProductId() : Long CreerCommandeRequest):ResponseEntity< Commande>
+getQuantite() : int +getCommandesParUser(UserId:Long):
+getPrixUnitaire():double ResponseEntity<List<Commande>>
Cart- Service
+setCommandeId(commandeId : Long):void +getDetailsCommande(commandeId:Long):
+setProductId(productId : Long) : void
ResponseEntity<Commande>
+setQuantite(quantite : int) : void
+annulerCommande(commandeId :Long): ResponseEntity<void>
+setPrixUnitaire(prixUnitaire: double): void
Panier
PanierRepository
- IdPanier: Long
- UserId: Long PanierService
+findById(IdPanier : Long): Optional<Panier> WishList- Service
+finByUser(UserId :Long) :Optional<Panier> - panierRepository : PanierRepository
+getIdPanier():Long +save(panier: Panier): Panier - panierItemRepository: PanierItemRepository
+getUserId() : Long +deleteById(IdPanier : Long):void
+setUserId(UserId : Long) : void
+getPanier(UserId : Long) : List<PanierItem> WishListRepository
+viderPanier(UserId : Long) : void
+retirerProduit(UserId : Long , productId:Long):void
PanierItem +ajouterProduit(UserId:Long, productId:Long,quantite: + findById(idWishList: Long): WishList Controller
int) : PanierItem WishList Optional<WishList>
- IdPanierItem: Long + findByUserId(userId: Long): List<WishList> - wishListService: WishListService
- panierId: Long PanierItemRepository + save(wishList: WishList): WishList
- idWishList: Long
- productId:Long - userId:Long + deleteById(idWishList: Long): void
- quantite:int ProductController + deleteByUserIdAndProductId(userId: Long, + ajouterAlaWishList(userId: Long, productId: Long):
- ProductId: Long
+findByPanierId(panierId : Long): ResponseEntity<WishList>
productId: Long): void
List<PanierItem> - panierService : PanierService + supprimerDeLaWishList(userId: Long, productId: Long):
+getIdPanierItem():Long +save(panierItem: PanierItem): PanierItem + getIdWishList(): Long ResponseEntity<Void>
+getPanierId() : Long +deleteById(IdPanierItem : Long):void + getUserId(): Long + getWishListParUser(userId: Long):
+getProduitId() : Long +getPanier(UserId : Long) : ResponseEntity<List<PanierItem>> + getProductId(): Long ResponseEntity<List<Product>>
+getQuantite() : int +viderPanier(UserId : Long) : ResponseEntity<void> + setUserId(userId: Long): void WishListService
+setPanierId(panierId : Long):void +retirerProduit(UserId : Long , productId:Long):ResponseEntity<void>
+ setProductId(productId: Long): void
+setProduitId(produitId : Long) : void +ajouterProduit(UserId:Long, productId:Long,quantite: int) :
+setQuantite(quantite : int) : void ResponseEnity<PanierItem> - wishListRepository: WishListRepository