Uses of Class
models.Product
-
Uses of Product in controllers
Modifier and TypeMethodDescriptionBranchController.getProductByName
(String branchUUID, String productName) Busca por um produto específico pelo seu nomeModifier and TypeMethodDescriptionBranchController.generateCosmeticHTMLTemplate
(Product product, Branch branch) Cria um template em HTML com os detalhes de um produto do tipo cosméticoBranchController.generateMedicamentHTMLTemplate
(Product product, Branch branch) Cria um template em HTML com os detalhes de um produto do tipo medicamentoBranchController.getProductQuantity
(String branchUUID, Product product) Busca a quantidade de um produto recebido, em uma filial específicaBranchController.handleProductType
(Product product) Identifica o tipo de um produto "Medicamento" ou "Cosmético"Modifier and TypeMethodDescriptionString[]
BranchController.generatePurchasedProductsHTMLTemplate
(HashMap<Product, Integer> purchasedProducts) Cria um template em HTML com os detalhes dos produtos comprados -
Uses of Product in models
Modifier and TypeClassDescriptionclass
Representa um produto do tipo cosmético da rede de farmáciaclass
Representa um produto do tipo medicamento da rede de farmáciaModifier and TypeMethodDescriptionBranch.searchProductByName
(String name) Procura um produto por nome.Modifier and TypeMethodDescriptionBranch.getProducts()
Retorna os produtos de um objetoBranch
Client.getPurchasedProducts()
Branch.searchProductsByWord
(String word) Procura produtos por uma expressão existente em seu nome.Modifier and TypeMethodDescriptionvoid
Branch.addProduct
(Product product, Integer productsQuantity) Adiciona uma quantidade especifica de produtos do tipoProduct
ao HashMap
da filial.products void
Client.addProductToPurchasedProducts
(Product product) Adiciona um produto nos produtos comprados pelo cliente em uma unidadevoid
Branch.buyProduct
(Client client, Product product) Realiza a compra de um produto por um cliente.boolean
Branch.removeProduct
(Product product) Remove um produto do HashMapproducts
da filial.boolean
Branch.removeProduct
(Product product, Integer quantity) Remove uma quantidade especifica de produtos do HashMapproducts
da filial.