Uses of Class
ntnu.idatt2016.v233.SmartMat.entity.product.Product
Packages that use Product
Package
Description
-
Uses of Product in ntnu.idatt2016.v233.SmartMat.controller.group
Methods in ntnu.idatt2016.v233.SmartMat.controller.group that return types with arguments of type ProductModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Product>
FridgeController.addProductToFridge
(FridgeProductRequest request, org.springframework.security.core.Authentication authentication) Adds a product to the fridge of a group -
Uses of Product in ntnu.idatt2016.v233.SmartMat.controller.product
Methods in ntnu.idatt2016.v233.SmartMat.controller.product that return types with arguments of type ProductModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Product>
ProductController.createProduct
(ProductRequest productRequest) Creates a product if it does not already exist.ProductController.getAllProducts()
Returns all products in the database.org.springframework.http.ResponseEntity<Product>
ProductController.getProduct
(long ean) Returns a product with the given ean.org.springframework.http.ResponseEntity<Product>
ProductController.getProductByName
(String name) Retrieve a product by name using a GET request.org.springframework.http.ResponseEntity<Product>
ProductController.updateProduct
(long ean, ProductRequest productRequest) Updates a product with the given ean. -
Uses of Product in ntnu.idatt2016.v233.SmartMat.entity.group
Methods in ntnu.idatt2016.v233.SmartMat.entity.group with parameters of type ProductModifier and TypeMethodDescriptionvoid
ShoppingList.addProduct
(Product product) Adds a product to the shopping list -
Uses of Product in ntnu.idatt2016.v233.SmartMat.entity.product
Methods in ntnu.idatt2016.v233.SmartMat.entity.product with parameters of type ProductModifier and TypeMethodDescriptionvoid
Allergy.addProduct
(Product product) adds a product to the allergyvoid
Category.addProduct
(Product product) adds a product to the categoryvoid
Recipe.addProduct
(Product product) Adds a product to the recipe -
Uses of Product in ntnu.idatt2016.v233.SmartMat.repository.product
Methods in ntnu.idatt2016.v233.SmartMat.repository.product that return types with arguments of type Product -
Uses of Product in ntnu.idatt2016.v233.SmartMat.service.group
Methods in ntnu.idatt2016.v233.SmartMat.service.group that return types with arguments of type ProductModifier and TypeMethodDescriptionFridgeService.addProductToFridge
(FridgeProductRequest fridgeProductRequest) Adds a product to the fridge of a group -
Uses of Product in ntnu.idatt2016.v233.SmartMat.service.product
Methods in ntnu.idatt2016.v233.SmartMat.service.product that return ProductModifier and TypeMethodDescriptionProductService.saveProduct
(Product product) Saves a product to the databaseMethods in ntnu.idatt2016.v233.SmartMat.service.product that return types with arguments of type ProductModifier and TypeMethodDescriptionProductService.getAllProducts()
Gets all products in the databaseProductService.getProductById
(Long id) Gets a product by its IDProductService.getProductByName
(String name) Methods in ntnu.idatt2016.v233.SmartMat.service.product with parameters of type ProductModifier and TypeMethodDescriptionProductService.saveProduct
(Product product) Saves a product to the databasevoid
ProductService.updateProduct
(Product product) Updates a product -
Uses of Product in ntnu.idatt2016.v233.SmartMat.util
Methods in ntnu.idatt2016.v233.SmartMat.util with parameters of type ProductModifier and TypeMethodDescriptionProductUtil.getVolumeFromProduct
(Product product) Gets volume from a product