Uses of Record Class
edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemRemoveDTO
Packages that use ItemRemoveDTO
Package
Description
-
Uses of ItemRemoveDTO in edu.ntnu.idatt2106_2023_06.backend.controller
Methods in edu.ntnu.idatt2106_2023_06.backend.controller with parameters of type ItemRemoveDTOModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>
IShoppingItemsController.acceptSuggestion
(ItemRemoveDTO itemDTO, org.springframework.security.core.Authentication authentication) Accepts a suggested item on the shopping list for a given fridge.org.springframework.http.ResponseEntity<Object>
ShoppingItemsController.acceptSuggestion
(ItemRemoveDTO itemDTO, org.springframework.security.core.Authentication authentication) Accepts a suggested item on the shopping list for a given fridge.org.springframework.http.ResponseEntity<Object>
FridgeItemsController.deleteItemFromFridge
(ItemRemoveDTO itemRemoveDTO) This method updates and ultimately removes an item from a fridge based on amount of quantity in DTO.org.springframework.http.ResponseEntity<Object>
IFridgeItemsController.deleteItemFromFridge
(ItemRemoveDTO itemRemoveDTO) Removes an item from a fridge.org.springframework.http.ResponseEntity<Object>
IShoppingItemsController.deleteItemFromShoppingList
(ItemRemoveDTO itemRemoveDTO, boolean suggestion, org.springframework.security.core.Authentication authentication) An item can be deleted from a shopping list of a fridge given the following conditions: - User is a superuser, then user can delete both suggested and actual items - User is a normal user, then user can delete suggested items but not actual items.org.springframework.http.ResponseEntity<Object>
ShoppingItemsController.deleteItemFromShoppingList
(ItemRemoveDTO itemRemoveDTO, boolean suggestion, org.springframework.security.core.Authentication authentication) An item can be deleted from a shopping list of a fridge given the following conditions: - User is a superuser, then user can delete both suggested and actual items - User is a normal user, then user can delete suggested items but not actual items.Method parameters in edu.ntnu.idatt2106_2023_06.backend.controller with type arguments of type ItemRemoveDTOModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>
IShoppingItemsController.deleteAllItemsFromShoppingList
(List<ItemRemoveDTO> itemDTOList, org.springframework.security.core.Authentication authentication) Deletes the items on the shopping list for a given fridge.org.springframework.http.ResponseEntity<Object>
ShoppingItemsController.deleteAllItemsFromShoppingList
(List<ItemRemoveDTO> itemDTOList, org.springframework.security.core.Authentication authentication) Deletes the items on the shopping list for a given fridge. -
Uses of ItemRemoveDTO in edu.ntnu.idatt2106_2023_06.backend.service.items
Methods in edu.ntnu.idatt2106_2023_06.backend.service.items with parameters of type ItemRemoveDTOModifier and TypeMethodDescriptionvoid
IItemService.acceptSuggestion
(ItemRemoveDTO itemDTO) void
ItemService.acceptSuggestion
(ItemRemoveDTO itemDTO) Accepts the suggested item by finding the store, item, fridge, and shopping item associated with the given itemDTO, and then sets the suggestion status of the shopping item to false.void
IItemService.removeItemFromFridge
(ItemRemoveDTO itemRemoveDTO) void
ItemService.removeItemFromFridge
(ItemRemoveDTO itemRemoveDTO) Removes the specified quantity of an item from the specified fridge.void
IItemService.removeItemFromShoppingList
(ItemRemoveDTO itemRemoveDTO, boolean suggestion) void
ItemService.removeItemFromShoppingList
(ItemRemoveDTO itemRemoveDTO, boolean suggestion) Removes the specified quantity of an item from the shopping list for the specified fridge.Method parameters in edu.ntnu.idatt2106_2023_06.backend.service.items with type arguments of type ItemRemoveDTOModifier and TypeMethodDescriptionvoid
IItemService.deleteAllItemsFromShoppingList
(List<ItemRemoveDTO> itemRemoveDTOList) void
ItemService.deleteAllItemsFromShoppingList
(List<ItemRemoveDTO> itemRemoveDTOList) Deletes the specified quantity of many items from the shopping list for the specified fridge. -
Uses of ItemRemoveDTO in edu.ntnu.idatt2106_2023_06.backend.service.notification
Methods in edu.ntnu.idatt2106_2023_06.backend.service.notification with parameters of type ItemRemoveDTOModifier and TypeMethodDescriptionvoid
NotificationService.deleteNotificationForEveryUserInFridge
(ItemRemoveDTO itemRemoveDTO) Deletes a notification for every user in a fridge.