Uses of Class
com.esprit.models.products.Product
Packages that use Product
Package
Description
-
Uses of Product in com.esprit.controllers.products
Fields in com.esprit.controllers.products with type parameters of type ProductModifier and TypeFieldDescriptionDesignProductAdminContoller.deleteColumn
DesignProductAdminContoller.descriptionP_tableC
private javafx.scene.control.TableColumn<Product,
javafx.scene.image.ImageView> DesignProductAdminContoller.image_tableC
AfficherProductClientControllers.l1
DesignProductAdminContoller.l1
DesignProductAdminContoller.nomCP_tableC
DesignProductAdminContoller.nomP_tableC
DesignProductAdminContoller.PrixP_tableC
private javafx.scene.control.TableView<Product>
DesignProductAdminContoller.Product_tableview
DesignProductAdminContoller.quantiteP_tableC
AfficherProductClientControllers.shoppingcartList
Methods in com.esprit.controllers.products that return types with arguments of type ProductModifier and TypeMethodDescriptionAfficherProductClientControllers.getAllCategories()
Retrieves a list of all product categories from the service layer using the `ProductService`.DesignProductAdminContoller.getAllCategories()
Retrieves a list of product categories from the service layer using the `ProductService`.AfficherProductClientControllers.rechercher
(List<Product> liste, String recherche) Searches for products in a list based on a given search term and returns a list of matching products.Methods in com.esprit.controllers.products with parameters of type ProductModifier and TypeMethodDescriptionprivate void
AfficherProductClientControllers.afficherShoppingCart
(Product produitAjoute) Clears the current pane, adds the newly added product to a new pane, and makes the updated pane visible while hiding other panes.private void
DesignProductAdminContoller.changerImage
(Product produit) Allows the user to select an image, then sets the selected image as the product's image using a database connection.private javafx.scene.layout.VBox
AfficherProductClientControllers.createProductCard
(Product Product) Creates a Card component that displays the details of a product, including its image, name, description, price, and buttons for adding to cart or viewing comments.private javafx.scene.layout.HBox
DetailsProductClientController.createProductCard
(Product produit) Creates a scene containing a card for a product, with an image, name, description, price, rating, and a "Add to Cart" button.private javafx.scene.layout.HBox
AfficherProductClientControllers.createShoppingCartCard
(Product produit) Generates a card for the shopping cart, containing the total quantity and price of each product, a "Continue Shopping" button, and an "Order Now" button.private javafx.scene.layout.HBox
DetailsProductClientController.createShoppingCartCard
(Product produit) Creates a `Card` object that displays the cart contents, includes a "Continue Shopping" button and an icon for closing the card.javafx.scene.layout.VBox
AfficherProductClientControllers.createtopthree
(Product produit) Generates a `VBox` container with three components: an image view, a label with the product name, and a label with the price.javafx.scene.layout.VBox
DetailsProductClientController.createtopthree
(Product produit) Generates a `VBox` container that displays a product's name, price, and image.private void
OrderClientController.decrementStock
(Product produit, int quantity) Decrements the stock of a product in the database by subtracting the specified quantity from the product's current quantity, and updates the product record in the database using an instance of `ProductService`.private boolean
ShoppingCartProductControllers.isStockAvailable
(Product produit, int quantity) Compares the requested quantity with the available quantity of stock for a given product and returns true if there is enough stock, otherwise false.(package private) void
DesignProductAdminContoller.modifier_produit
(Product produit) Modifies the values of a `Product` object, such as its category, name, price, description, image, quantity, and ID, before saving the modified data to the database using a `ProductService`.Method parameters in com.esprit.controllers.products with type arguments of type ProductModifier and TypeMethodDescriptionprivate void
AfficherProductClientControllers.createProductCards
(List<Product> produits) Creates a card for each `Product` object in the `produits` list and adds them to the `produitFlowPane`.AfficherProductClientControllers.rechercher
(List<Product> liste, String recherche) Searches for products in a list based on a given search term and returns a list of matching products.private void
AfficherProductClientControllers.updateProductFlowPane
(List<Product> filteredProducts) Clears and re-adds a list of products to a flow pane, using a `VBox` container for each product. -
Uses of Product in com.esprit.models.products
Fields in com.esprit.models.products declared as ProductModifier and TypeFieldDescriptionprivate Product
Comment.product
private Product
OrderItem.product
private Product
Review.product
private Product
ShoppingCart.product
Fields in com.esprit.models.products with type parameters of type ProductConstructors in com.esprit.models.products with parameters of type ProductModifierConstructorDescriptionConstructor without id for creating new comment instances.Constructor without id for creating new order item instances.Constructor without id for creating new review instances.ShoppingCart
(int quantity, Product product, User user) Constructor without id for creating new shopping cart instances. -
Uses of Product in com.esprit.services.products
Methods in com.esprit.services.products that return ProductModifier and TypeMethodDescriptionProductService.getProductById
(Long productId) Retrieves the ProductById value.Methods in com.esprit.services.products that return types with arguments of type ProductModifier and TypeMethodDescriptionProductService.getProductsByCategory
(Long categoryId) Retrieves the ProductsByCategory value.ProductService.getProductsOrderByQuantityAndStatus()
Retrieves the ProductsOrderByQuantityAndStatus value.ProductService.read()
Performs sort operation.Methods in com.esprit.services.products with parameters of type Product