Index

A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

acceptSuggestion(ItemRemoveDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
acceptSuggestion(ItemRemoveDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
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.
acceptSuggestion(ItemRemoveDTO, Authentication) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IShoppingItemsController
Accepts a suggested item on the shopping list for a given fridge.
acceptSuggestion(ItemRemoveDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.ShoppingItemsController
Accepts a suggested item on the shopping list for a given fridge.
acceptSuggestion(RecipeShoppingDTO, Long, Long, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint accepts a dinner suggestion and adds the recipe's ingredients to the user's shopping list.
addIngredientsToShoppingList(RecipeShoppingDTO, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
 
addIngredientToShoppingList(RecipeShoppingDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint adds ingredients to the user's shopping list.
addItem(ItemDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
addItem(ItemDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Adds an item to the item database.
addRecipeSuggestion(RecipeSuggestionAddDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.RecipeService
 
addSuggestion(RecipeSuggestionAddDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint adds a dinner suggestion.
addToFridge(ItemDTO, Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeItemsController
Adds an item to the fridge.
addToFridge(ItemDTO, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IFridgeItemsController
Adds an item to the fridge.
addToFridge(ItemDTO, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
addToFridge(ItemDTO, Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Adds an item to the fridge.
addToShoppingList(ItemDTO, Long, boolean) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
addToShoppingList(ItemDTO, Long, boolean) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Adds an item to the shopping list for the specified fridge.
addToShoppingList(ItemDTO, Long, boolean, Authentication) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IShoppingItemsController
Adds items to the shopping list for a given fridge.
addToShoppingList(ItemDTO, Long, boolean, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.ShoppingItemsController
Adds items to the shopping list for a given fridge.
addUnitToExistingItems() - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IItemController
This method adds amount and unit to existing items.
addUnitToExistingItems() - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.ItemController
This method adds amount and unit to existing items.
addUnitToExistingItems() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
This method fills the database's existing items with their corresponding units.
addUserToFridge(FridgeUserDTO, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method adds a user to a given fridge.
addUserToFridge(FridgeUserDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeController
This endpoint serves to add a User to a fridge.
Allergen - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
This class represents an allergen.
Allergen() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Allergen
 
AllergenNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
This exception is thrown when an allergen cannot be found.
AllergenNotFoundException(String, String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.AllergenNotFoundException
This method constructs a new AllergenNotFoundException with a given attribute and value.
AllergenRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.recipe
This repository provides CRUD operations for the Allergen entity.
amount() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the amount record component.
amount() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemUpdateDTO
Returns the value of the amount record component.
amount() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeAllergenDTO
Returns the value of the amount record component.
Amount - Enum Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
 
amountDeleted() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDeleteFromFridgeDTO
Returns the value of the amountDeleted record component.
ApiKeyConfig - Class in edu.ntnu.idatt2106_2023_06.backend.config
The ApiKeyConfig class is responsible for managing the Kassal API key.
ApiKeyConfig() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.config.ApiKeyConfig
 
ApiKeyController - Class in edu.ntnu.idatt2106_2023_06.backend.controller
This class represents a REST controller for managing Kassal API keys.
ApiKeyController() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.controller.ApiKeyController
 
ApiKeyService - Class in edu.ntnu.idatt2106_2023_06.backend.service.apiKey
 
ApiKeyService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.apiKey.ApiKeyService
 
ApplicationConfig - Class in edu.ntnu.idatt2106_2023_06.backend.config
This class provides application configuration for Spring Security.
ApplicationConfig() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.config.ApplicationConfig
 
ASC - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SortDirection
 
authenticate(UserLoginDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.AuthenticationService
Authenticates a user with the given credentials.
authenticate(UserLoginDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.security.IAuthenticationService
 
authenticationManager(AuthenticationConfiguration) - Method in class edu.ntnu.idatt2106_2023_06.backend.config.ApplicationConfig
This method returns an AuthenticationManager bean that can be used to authenticate users.
authenticationProvider() - Method in class edu.ntnu.idatt2106_2023_06.backend.config.ApplicationConfig
This method returns an AuthenticationProvider that uses the user details service and password encoder to authenticate users.
AuthenticationResponseDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.security
A data transfer object representing an authentication response with a JWT token.
AuthenticationResponseDTO(String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.security.AuthenticationResponseDTO
Creates an instance of a AuthenticationResponseDTO record class.
AuthenticationService - Class in edu.ntnu.idatt2106_2023_06.backend.service.security
 
AuthenticationService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.security.AuthenticationService
 

B

BackendApplication - Class in edu.ntnu.idatt2106_2023_06.backend
 
BackendApplication() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.BackendApplication
 
BETWEEN - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.Operator
 
BOOLEAN - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
 
build(Root<T>, CriteriaBuilder, FilterRequest, Predicate) - Method in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.Operator
 
build(Root<T>, CriteriaBuilder, SortRequest) - Method in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SortDirection
 
buyItemsFromShoppingList(List<ItemMoveDTO>) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
buyItemsFromShoppingList(List<ItemMoveDTO>) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Buys the specified list of items from the shopping list.
buyItemsFromShoppingList(List<ItemMoveDTO>, Authentication) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IShoppingItemsController
Buys the items on the shopping list for a given fridge and places it in fridge items.
buyItemsFromShoppingList(List<ItemMoveDTO>, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.ShoppingItemsController
Buys the items on the shopping list for a given fridge and places it in fridge items.

C

CategoryExistsException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.exists
An exception that is thrown when a category already exists in the database.
CategoryExistsException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.exists.CategoryExistsException
This method constructs a CategoryExistsException with the specified category name.
CHAR - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
 
confirmToken(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.ITokenService
 
confirmToken(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.TokenService
 
contains(String) - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 
ControllerAdvisor - Class in edu.ntnu.idatt2106_2023_06.backend.exception
ControllerAdvisor is a global exception handler for the Spring controllers.
ControllerAdvisor() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.exception.ControllerAdvisor
 
corsConfigurer() - Method in class edu.ntnu.idatt2106_2023_06.backend.config.SecurityConfig
Configures CORS mapping for the application.
countMatchingItems(RecipeLoadDTO, Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.RecipeService
 
createFridge(String, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method creates a new fridge and a new fridge member entry for a given user.
createFridge(String, String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.fridge.IFridgeService
This method creates a new fridge and a new fridge member entry for a given user.
createFridge(String, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeController
This endpoint allows an authenticated user to create a new fridge.
createItemByEAN(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.utils.RecipeScraper
 
createTriggerForDeletingMember() - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeRepository
 
createTriggerForDeletingMember() - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.UserRepository
 
createTriggerForNullingFridgeStats() - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeRepository
 
createTriggerForNullingUserStat() - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.UserRepository
 

D

DatabaseConfig - Class in edu.ntnu.idatt2106_2023_06.backend.config
This is a Configuration class for Database Initialization.
DatabaseConfig() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.config.DatabaseConfig
 
DATE - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
 
Day - Enum Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
 
DECILITERS - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 
deleteAllItemsFromShoppingList(List<ItemRemoveDTO>) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
deleteAllItemsFromShoppingList(List<ItemRemoveDTO>) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Deletes the specified quantity of many items from the shopping list for the specified fridge.
deleteAllItemsFromShoppingList(List<ItemRemoveDTO>, Authentication) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IShoppingItemsController
Deletes the items on the shopping list for a given fridge.
deleteAllItemsFromShoppingList(List<ItemRemoveDTO>, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.ShoppingItemsController
Deletes the items on the shopping list for a given fridge.
deleteAllNotifications(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.NotificationController
This method deletes all notifications of a user.
deleteAllNotificationsForOneUser(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
Deletes all notifications for a user in a fridge.
deleteFridgeMemberByFridge_FridgeIdAndUser_Username(Long, String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeMemberRepository
This method deletes the user attached to a given fridge id and which has a given username.
deleteItemFromFridge(ItemRemoveDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeItemsController
This method updates and ultimately removes an item from a fridge based on amount of quantity in DTO.
deleteItemFromFridge(ItemRemoveDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IFridgeItemsController
Removes an item from a fridge.
deleteItemFromShoppingList(ItemRemoveDTO, boolean, Authentication) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IShoppingItemsController
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.
deleteItemFromShoppingList(ItemRemoveDTO, boolean, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.ShoppingItemsController
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.
deleteNotification(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.NotificationController
This method deletes a single notification of a user.
deleteNotification(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
Deletes a notification.
deleteNotificationForEveryUserInFridge(ItemRemoveDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
Deletes a notification for every user in a fridge.
deletePicture(Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Deletes the user's profile picture.
deleteProfilePicture() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.files.FileStorageService
 
deleteProfilePicture() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.files.IFileStorageService
 
deleteRecipeSuggestion(Long, Long, Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.RecipeService
 
deleteUser(UserDeletionDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserService
 
deleteUser(UserDeletionDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserService
Deletes a user.
deleteUserFromFridge(FridgeUserDTO, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method removes a user from a given fridge.
deleteUserFromFridge(FridgeUserDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeController
This endpoint serves to remove a User from a fridge.
denySuggestion(Long, Long, Long, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint denies a dinner suggestion.
DESC - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SortDirection
 
description() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the description record component.
description() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns the value of the description record component.
description() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns the value of the description record component.
description() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns the value of the description record component.
displayName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeAllergenDTO
Returns the value of the displayName record component.
doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class edu.ntnu.idatt2106_2023_06.backend.filter.JwtAuthenticationFilter
This method filters the incoming request and checks for the presence of a JWT token in the Authorization header.
DOUBLE - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
 
downloadRecipe() - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint scrapes recipes from Meny.no's website, iteratively searching through their recipes.
dropMemberTrigger() - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeRepository
 
dropMemberTrigger() - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.UserRepository
 
dropStatsTrigger() - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeRepository
 
dropUserStatTrigger() - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.UserRepository
 

E

ean() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the ean record component.
ean() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns the value of the ean record component.
EAN() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns the value of the EAN record component.
edu.ntnu.idatt2106_2023_06.backend - package edu.ntnu.idatt2106_2023_06.backend
 
edu.ntnu.idatt2106_2023_06.backend.config - package edu.ntnu.idatt2106_2023_06.backend.config
 
edu.ntnu.idatt2106_2023_06.backend.controller - package edu.ntnu.idatt2106_2023_06.backend.controller
 
edu.ntnu.idatt2106_2023_06.backend.dto.fridge - package edu.ntnu.idatt2106_2023_06.backend.dto.fridge
 
edu.ntnu.idatt2106_2023_06.backend.dto.items - package edu.ntnu.idatt2106_2023_06.backend.dto.items
 
edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items - package edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items
 
edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list - package edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list
 
edu.ntnu.idatt2106_2023_06.backend.dto.notification - package edu.ntnu.idatt2106_2023_06.backend.dto.notification
 
edu.ntnu.idatt2106_2023_06.backend.dto.recipe - package edu.ntnu.idatt2106_2023_06.backend.dto.recipe
 
edu.ntnu.idatt2106_2023_06.backend.dto.security - package edu.ntnu.idatt2106_2023_06.backend.dto.security
 
edu.ntnu.idatt2106_2023_06.backend.dto.stat - package edu.ntnu.idatt2106_2023_06.backend.dto.stat
 
edu.ntnu.idatt2106_2023_06.backend.dto.users - package edu.ntnu.idatt2106_2023_06.backend.dto.users
 
edu.ntnu.idatt2106_2023_06.backend.exception - package edu.ntnu.idatt2106_2023_06.backend.exception
 
edu.ntnu.idatt2106_2023_06.backend.exception.exists - package edu.ntnu.idatt2106_2023_06.backend.exception.exists
 
edu.ntnu.idatt2106_2023_06.backend.exception.illegal - package edu.ntnu.idatt2106_2023_06.backend.exception.illegal
 
edu.ntnu.idatt2106_2023_06.backend.exception.not_found - package edu.ntnu.idatt2106_2023_06.backend.exception.not_found
 
edu.ntnu.idatt2106_2023_06.backend.filter - package edu.ntnu.idatt2106_2023_06.backend.filter
 
edu.ntnu.idatt2106_2023_06.backend.mapper - package edu.ntnu.idatt2106_2023_06.backend.mapper
 
edu.ntnu.idatt2106_2023_06.backend.mapper.recipe - package edu.ntnu.idatt2106_2023_06.backend.mapper.recipe
 
edu.ntnu.idatt2106_2023_06.backend.metamodel - package edu.ntnu.idatt2106_2023_06.backend.metamodel
 
edu.ntnu.idatt2106_2023_06.backend.model.fridge - package edu.ntnu.idatt2106_2023_06.backend.model.fridge
 
edu.ntnu.idatt2106_2023_06.backend.model.items - package edu.ntnu.idatt2106_2023_06.backend.model.items
 
edu.ntnu.idatt2106_2023_06.backend.model.notification - package edu.ntnu.idatt2106_2023_06.backend.model.notification
 
edu.ntnu.idatt2106_2023_06.backend.model.recipe - package edu.ntnu.idatt2106_2023_06.backend.model.recipe
 
edu.ntnu.idatt2106_2023_06.backend.model.stats - package edu.ntnu.idatt2106_2023_06.backend.model.stats
 
edu.ntnu.idatt2106_2023_06.backend.model.users - package edu.ntnu.idatt2106_2023_06.backend.model.users
 
edu.ntnu.idatt2106_2023_06.backend.repo.fridge - package edu.ntnu.idatt2106_2023_06.backend.repo.fridge
 
edu.ntnu.idatt2106_2023_06.backend.repo.item - package edu.ntnu.idatt2106_2023_06.backend.repo.item
 
edu.ntnu.idatt2106_2023_06.backend.repo.notification - package edu.ntnu.idatt2106_2023_06.backend.repo.notification
 
edu.ntnu.idatt2106_2023_06.backend.repo.recipe - package edu.ntnu.idatt2106_2023_06.backend.repo.recipe
 
edu.ntnu.idatt2106_2023_06.backend.repo.stat - package edu.ntnu.idatt2106_2023_06.backend.repo.stat
 
edu.ntnu.idatt2106_2023_06.backend.repo.store - package edu.ntnu.idatt2106_2023_06.backend.repo.store
 
edu.ntnu.idatt2106_2023_06.backend.repo.users - package edu.ntnu.idatt2106_2023_06.backend.repo.users
 
edu.ntnu.idatt2106_2023_06.backend.service.apiKey - package edu.ntnu.idatt2106_2023_06.backend.service.apiKey
 
edu.ntnu.idatt2106_2023_06.backend.service.files - package edu.ntnu.idatt2106_2023_06.backend.service.files
 
edu.ntnu.idatt2106_2023_06.backend.service.fridge - package edu.ntnu.idatt2106_2023_06.backend.service.fridge
 
edu.ntnu.idatt2106_2023_06.backend.service.items - package edu.ntnu.idatt2106_2023_06.backend.service.items
 
edu.ntnu.idatt2106_2023_06.backend.service.notification - package edu.ntnu.idatt2106_2023_06.backend.service.notification
 
edu.ntnu.idatt2106_2023_06.backend.service.security - package edu.ntnu.idatt2106_2023_06.backend.service.security
 
edu.ntnu.idatt2106_2023_06.backend.service.stat - package edu.ntnu.idatt2106_2023_06.backend.service.stat
 
edu.ntnu.idatt2106_2023_06.backend.service.users - package edu.ntnu.idatt2106_2023_06.backend.service.users
 
edu.ntnu.idatt2106_2023_06.backend.sortAndFilter - package edu.ntnu.idatt2106_2023_06.backend.sortAndFilter
 
edu.ntnu.idatt2106_2023_06.backend.utils - package edu.ntnu.idatt2106_2023_06.backend.utils
 
email() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Returns the value of the email record component.
email() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadDTO
Returns the value of the email record component.
email() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoginDTO
Returns the value of the email record component.
email() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserRegisterDTO
Returns the value of the email record component.
email() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserUpdateDTO
Returns the value of the email record component.
EmailService - Class in edu.ntnu.idatt2106_2023_06.backend.service.users
This class allows for emails to be sent to users regarding issues such as registration and password resetting.
EmailService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.users.EmailService
 
EQUAL - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.Operator
 
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeLoadAllDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadAllDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeUserDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemUpdateDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemMoveDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemRemoveDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.RecipeShoppingDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingItemUpdateDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.NotificationDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.UpdateNotificationDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.InstructionDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeAllergenDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipePartDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionAddDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionLoad
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.security.AuthenticationResponseDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatAddItemToFridgeDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDeleteFromFridgeDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.LoginReplyDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserDeletionDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadAllDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoginDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserPasswordUpdateDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserRegisterDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserSearchDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserUpdateDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class edu.ntnu.idatt2106_2023_06.backend.model.fridge.Fridge
 
equals(Object) - Method in class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Recipe
 
equals(Object) - Method in class edu.ntnu.idatt2106_2023_06.backend.model.users.User
 
exceptionAction(Exception, WebRequest) - Method in class edu.ntnu.idatt2106_2023_06.backend.exception.ControllerAdvisor
This method handles all uncaught exceptions in the application and returns a response with a 400 Bad Request status code.
existsAction(ExistsException, WebRequest) - Method in class edu.ntnu.idatt2106_2023_06.backend.exception.ControllerAdvisor
This method handles ExistsException by returning an HTTP response entity with a body containing the time of the error and the message to be returned to the client with a status code of 400.
existsByUserIdIs(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.UserRepository
This method checks whether a user exists, given the user id.
ExistsException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.exists
An exception that is thrown when an entity already exists in the system.
ExistsException(String, Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.exists.ExistsException
This method constructs a new ExistsException with the given attribute and value.
ExistsException(String, String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.exists.ExistsException
This method constructs a new ExistsException with the given attribute and value.
ExistsException(String, String, String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.exists.ExistsException
This method constructs a new ExistsException with the given type, attribute, and value.
existsFridgeMemberByFridge_FridgeIdAndUser_Username(Long, String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeMemberRepository
This method tries to find whether an entry with a given user and fridge exists, by checking the fridge id and the username in the table.
existsFridgeMemberByFridge_FridgeIdAndUser_UsernameAndSuperUserIs(Long, String, boolean) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeMemberRepository
This method tries to find whether an entry with a given user and fridge exists, by checking the fridge id and the username in the table, and where the user is a super user.
existsItemRecipeScoreByItem_ItemIdAndRecipe_RecipeId(Long, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.recipe.ItemRecipeScoreRepository
This method determines whether a given ItemRecipeScore is made, by checking the item id and recipe id.
expirationDate() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the expirationDate record component.
expirationDate() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemUpdateDTO
Returns the value of the expirationDate record component.
expirationDate() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.NotificationDTO
Returns the value of the expirationDate record component.
extractClaim(String, Function<Claims, T>) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
Extracts a claim from a JWT token.
extractExpiration(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
Extracts the expiration date from a JWT token.
extractUsername(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
Extracts the username from a JWT token.

F

FieldType - Enum Class in edu.ntnu.idatt2106_2023_06.backend.sortAndFilter
The different types a field can have.
FileAlreadyExistsException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.exists
This is an exception thrown when trying to create a file that already exists.
FileAlreadyExistsException(String, Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.exists.FileAlreadyExistsException
This method constructs a new FileAlreadyExistsException with the specified attribute and value.
FileAlreadyExistsException(String, String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.exists.FileAlreadyExistsException
This method constructs a new FileAlreadyExistsException with the specified attribute and value.
FileNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
This exception is thrown when a file with a given attribute and value cannot be found.
FileNotFoundException(String, Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.FileNotFoundException
This method constructs a new FileNotFoundException with the given attribute and value.
FileNotFoundException(String, String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.FileNotFoundException
This method constructs a new FileNotFoundException with the given attribute and value.
FileStorageService - Class in edu.ntnu.idatt2106_2023_06.backend.service.files
Service for handling file uploads.
FileStorageService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.files.FileStorageService
Constructor for the FileStorageService.
FilterRequest - Class in edu.ntnu.idatt2106_2023_06.backend.sortAndFilter
The request body for filtering a list of objects.
FilterRequest() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FilterRequest
 
findAllByFridge(Fridge) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.recipe.RecipeSuggestionRepository
 
findAllByFridge(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.stat.StatRepository
Find all statistics by fridge ID.
findAllByFridge_FridgeId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeItemsRepository
This method retrieves a list of all the fridge items from a given fridge.
findAllByFridgeAndStatType(Long, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.stat.StatRepository
 
findAllByUser(User) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.stat.StatRepository
Find all statistics by user ID.
findAllByUserAndStatType(Long, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.stat.StatRepository
 
findAllergenByAllergenName(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.recipe.AllergenRepository
 
findByEmail(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.UserRepository
Retrieves an Optional User instance based on the provided email.
findByFridge(Fridge) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeItemsRepository
Find FridgeItems by fridge
findByFridge(Fridge) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ShoppingItemsRepository
Find ShoppingItems by fridge
findByFridgeId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeRepository
Finds a fridge by its fridge ID.
findByFridgeItem(FridgeItems) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.notification.NotificationRepository
 
findByItem_ItemId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.recipe.ItemRecipeScoreRepository
This method retrieves a list of Item Recipe Score entities for a given item.
findByItem_ItemIdAndFridge_FridgeId(Long, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeItemsRepository
Find a FridgeItem by item ID and fridge ID
findByItem_ItemIdAndFridge_FridgeId(Long, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ShoppingItemsRepository
Find a ShoppingItem by item ID and fridge ID
findByItem_ProductName(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeItemsRepository
Find a fridgeItem with the given name
findByItem_ProductNameAndItem_Store_StoreNameAndFridge_FridgeId(String, String, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeItemsRepository
Find a fridgeItem with the given name
findByItemAndFridge(Item, Fridge) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeItemsRepository
Find a FridgeItem by items and fridge
findByItemAndFridgeAndSuggestion(Item, Fridge, boolean) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ShoppingItemsRepository
Find a ShoppingItem by items, fridge and suggestion
findByItemId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds an item by its items ID.
findByProductNameAndStore(String, Store) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds an item by its item name and store.
findByRecipeId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.recipe.RecipeRepository
This method retrieves a recipe by recipe id.
findByRecipeNameContainingIgnoreCase(String, Pageable) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.recipe.RecipeRepository
This method retrieves a page of recipes by recipe name.
findByStoreName(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.store.StoreRepository
Find a Store by its name
findByUser(User) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.notification.NotificationRepository
 
findByUserAndFridgeItem_Item_ItemId(User, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.notification.NotificationRepository
 
findByUsername(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.UserRepository
Retrieves an Optional User instance based on the provided username.
findByUsernameContaining(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.UserRepository
 
findFridgeItemsByPurchaseDateBefore(LocalDateTime) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeItemsRepository
Finds fridge items with purchase dates before a given date.
findFridgeMemberByFridge_FridgeIdAndUser_Username(Long, String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeMemberRepository
This method retrieves the user attached to a given fridge id and which has a given username.
findFridgeMembersByFridge_FridgeId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeMemberRepository
This method retrieves all the entries in the fridge member table for a given fridge.
findFridgeMembersByUser_Username(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.fridge.FridgeMemberRepository
This method retrieves all the entries in the fridge member table for a given user.
findItemByEanAndStore_StoreName(String, String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
This method finds items with a given ean.
findItemByProductName(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds an items by their product name.
findItemByProductNameAndStore_StoreName(String, String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
This method finds items with a given store name and product name.
findItemRecipeScoreByItem_ItemIdAndRecipe_RecipeId(Long, Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.recipe.ItemRecipeScoreRepository
This method retrieves the ItemRecipeScore based on the item id and recipe id provided.
findItemsByDescContainingIgnoreCase(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds a list of items whose brief description contains the given phrase, ignoring case.
findItemsByEan(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
This method finds items with a given ean.
findItemsByPriceBetween(double, double) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds items with prices between the given lower and upper bounds (inclusive).
findItemsByPriceGreaterThan(double) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds items with prices greater than the given price.
findItemsByPriceGreaterThanEqual(double) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds items with prices greater than or equal to the given price.
findItemsByPriceLessThan(double) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds a list of items whose price is less than the given price.
findItemsByPriceLessThanEqual(double) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds items with prices less than or equal to the given price.
findItemsByStore(Store) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.item.ItemRepository
Finds a list of items by their store.
findRandomSubset(Pageable) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.recipe.RecipeRepository
This method retrieves a random list of recipe objects given paging details.
findRecipeByRecipeNameContainingIgnoreCase(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.recipe.RecipeRepository
This method retrieves a recipe by its name.
findStoreByStoreId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.store.StoreRepository
Find a Store by its ID
findTokenByToken(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.TokenRepository
This method retrieves the token object attached to the token value.
findTokenByTokenId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.TokenRepository
This method retrieves the token attached to the given id.
findTokenByUser_userId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.TokenRepository
This method retrieves the token attached to the given user id.
findUserByUserId(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.repo.users.UserRepository
Retrieves an Optional User instance based on the provided user id.
firstName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Returns the value of the firstName record component.
firstName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadDTO
Returns the value of the firstName record component.
firstName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserRegisterDTO
Returns the value of the firstName record component.
firstName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserUpdateDTO
Returns the value of the firstName record component.
FRIDAY - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
 
Fridge - Class in edu.ntnu.idatt2106_2023_06.backend.model.fridge
Fridge class represents a common storage of food items in the application.
Fridge() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.fridge.Fridge
 
FridgeController - Class in edu.ntnu.idatt2106_2023_06.backend.controller
The FridgeController class provides API endpoints for managing fridge users.
FridgeController() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeController
 
FridgeDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.fridge
This record represents a fridge DTO.
FridgeDTO(Long, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeDTO
Creates an instance of a FridgeDTO record class.
fridgeDTOS() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeLoadAllDTO
Returns the value of the fridgeDTOS record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeUserDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemUpdateDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemMoveDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemRemoveDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.RecipeShoppingDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingItemUpdateDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.NotificationDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionAddDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatAddItemToFridgeDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDeleteFromFridgeDTO
Returns the value of the fridgeId record component.
fridgeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns the value of the fridgeId record component.
FridgeItemLoadDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items
This record represents a data transfer object for loading a fridge item.
FridgeItemLoadDTO(Long, String, String, String, double, String, double, String, LocalDateTime, LocalDateTime, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Creates an instance of a FridgeItemLoadDTO record class.
FridgeItemMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper
This class provides methods for mapping between different types of Fridge items DTOs and Fridge items models.
FridgeItemMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeItemMapper
 
FridgeItems - Class in edu.ntnu.idatt2106_2023_06.backend.model.fridge
This class represents an items in the fridge.
FridgeItems() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.fridge.FridgeItems
 
FridgeItemsController - Class in edu.ntnu.idatt2106_2023_06.backend.controller
This class represents the REST controller for managing items in a fridge and shopping list.
FridgeItemsController() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeItemsController
 
FridgeItemSearchDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items
Data Transfer Object for searching Fridge items.
FridgeItemSearchDTO(Long, String, String, String, Integer, Integer) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Creates an instance of a FridgeItemSearchDTO record class.
FridgeItemsId - Class in edu.ntnu.idatt2106_2023_06.backend.model.fridge
A class that serves as the id for the FridgeItems entity in the app.
FridgeItemsId() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.fridge.FridgeItemsId
 
FridgeItemsNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
Exception thrown when a fridge's items cannot be found.
FridgeItemsNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.FridgeItemsNotFoundException
This method constructs a new FridgeItemsNotFoundException with the given fridge ID.
FridgeItemsNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.FridgeItemsNotFoundException
This method constructs a new FridgeItemsNotFoundException with the given fridge name.
FridgeItemsRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.fridge
This repository provides CRUD operations for the FridgeItem entity.
FridgeItemUpdateDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items
This record represents a DTO for updating a fridge item.
FridgeItemUpdateDTO(Long, Long, Double, LocalDateTime, LocalDateTime) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemUpdateDTO
Creates an instance of a FridgeItemUpdateDTO record class.
FridgeLoadAllDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.fridge
This record represents a list of fridge loading DTO.
FridgeLoadAllDTO(List<FridgeDTO>) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeLoadAllDTO
Creates an instance of a FridgeLoadAllDTO record class.
FridgeMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper
This class contains all the mapping methods between the fridge model and DTO.
FridgeMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeMapper
 
FridgeMember - Class in edu.ntnu.idatt2106_2023_06.backend.model.fridge
This class represents a user who is a member of a fridge.
FridgeMember() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.fridge.FridgeMember
 
FridgeMemberId - Class in edu.ntnu.idatt2106_2023_06.backend.model.fridge
A class that serves as the id for a member of a fridge in the app.
FridgeMemberId() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.fridge.FridgeMemberId
 
FridgeMemberLoadAllDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.fridge
This data transfer object contains all the members and their corresponding information.
FridgeMemberLoadAllDTO(List<FridgeMemberLoadDTO>) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadAllDTO
Creates an instance of a FridgeMemberLoadAllDTO record class.
FridgeMemberLoadDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.fridge
A data transfer object representing a user's basic information, used for loading user data.
FridgeMemberLoadDTO(long, String, String, String, String, Boolean) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Creates an instance of a FridgeMemberLoadDTO record class.
FridgeMemberMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper
This class is a maps between the FridgeMember model and FridgeMember DTOs.
FridgeMemberMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeMemberMapper
 
FridgeMemberNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
An exception to be thrown when a fridge member is not found.
FridgeMemberNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.FridgeMemberNotFoundException
This method constructs a new FridgeMemberNotFoundException with the given fridge member ID that was not found.
FridgeMemberNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.FridgeMemberNotFoundException
This method constructs a FridgeMemberNotFoundException with the specified member username.
FridgeMemberRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.fridge
This repository provides CRUD operations for the RecipeItem entity.
fridgeName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeDTO
Returns the value of the fridgeName record component.
FridgeNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
Exception thrown when a fridge is not found in the system.
FridgeNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.FridgeNotFoundException
Constructs a FridgeNotFoundException with the specified fridge ID.
FridgeNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.FridgeNotFoundException
This method constructs a FridgeNotFoundException with the specified fridge name.
FridgeRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.fridge
This repository provides CRUD operations for the Fridge entity.
FridgeService - Class in edu.ntnu.idatt2106_2023_06.backend.service.fridge
This service class handles the business logic for fridge-related operations.
FridgeService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
 
FridgeUserDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.fridge
A DTO class representing the relationship between a user and a fridge.
FridgeUserDTO(Long, String, boolean) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeUserDTO
Creates an instance of a FridgeUserDTO record class.
fromString(String) - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 

G

GALLONS - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 
generateItemRecipeScores() - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint generates item recipe scores between all items and recipes.
generateItemRecipeScoresTest(Long, Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint generates item recipe scores for a specific item and recipe.
generateScoreByIds(Long, Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
generateScoreForItem(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
generateScoreForRecipe(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
generateScores() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
generateSingleScore(Item, Recipe) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
generateToken(Map<String, Object>, UserDetails) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
Generates a JWT token with extra claims for a given user.
generateToken(UserDetails) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
Generates a JWT token for a given user.
getAllNotificationsOfSingeUser() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
Get all notifications of a user.
getAllNotificationsOfSingeUserAsDTO() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
Get all notifications of a user as DTOs.
getApiKey() - Method in class edu.ntnu.idatt2106_2023_06.backend.config.ApiKeyConfig
This method returns the Kassal API key if the user is authenticated.
getApiKey() - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.ApiKeyController
This method retrieves the Kassal API key if the user is authenticated.
getAuthenticatedUserEmail() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
Gets the email of the authenticated user.
getAuthenticatedUserEmail() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserInfoService
 
getAuthenticatedUserEmail() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserInfoService
 
getAuthenticatedUserFirstName() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserInfoService
 
getAuthenticatedUserFirstName() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserInfoService
 
getAuthenticatedUserId() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
Gets the ID of the authenticated user.
getAuthenticatedUserId() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserInfoService
 
getAuthenticatedUserId() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserInfoService
 
getAuthenticatedUserLastName() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserInfoService
 
getAuthenticatedUserLastName() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserInfoService
 
getAuthenticatedUserObject() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserInfoService
 
getAuthenticatedUserObject() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserInfoService
 
getAuthenticatedUserUsername() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserInfoService
 
getAuthenticatedUserUsername() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserInfoService
 
getAuthorities() - Method in class edu.ntnu.idatt2106_2023_06.backend.model.users.User
 
getAverageThrownPerDayFridge(long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getAverageThrownPerDayFridge(long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the average thrown food per day for a fridge as JSON.
getAverageThrownPerDayUser() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getAverageThrownPerDayUser() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the average thrown food per day for a user as JSON.
getAverageThrownTotalFridge(long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getAverageThrownTotalFridge(long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the total average thrown in the fridge as JSON.
getAverageThrownTotalUser() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getAverageThrownTotalUser() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the total average thrown by the user as JSON.
getDisplayName(UnitType) - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 
getFilters() - Method in class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SearchRequest
 
getFridge(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeItemsController
Retrieves items from a fridge.
getFridge(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IFridgeItemsController
Retrieves items from a fridge.
getFridgeAvgThrownPerDay(Long, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the average percentage of items thrown per day in the fridge.
getFridgeAvgThrownTotal(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the average percentage of items thrown in total in a fridge.
getFridgeItems(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
getFridgeItems(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Retrieves a list of items from the specified fridge.
getFridgeMoneyUsedPerDay(Long, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the money spent per day in a fridge.
getFridgeMoneyWastedPerDay(Long, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the money wasted in per dey in the fridge.
getFridgeStats(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getFridgeStats(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the statistics for a fridge as JSON.
getFridgeStats(Long, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the statistics of a fridge.
getInfo(Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Retrieves the user's text information.
getMoneyUsedPerDayFridge(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getMoneyUsedPerDayFridge(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the total money spent by fridge per day.
getMoneyUsedPerDayUser() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getMoneyUsedPerDayUser() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the total money spent by user per day.
getMoneyWastedPerDayFridge(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getMoneyWastedPerDayFridge(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the total money wasted by throwing food by fridge.
getMoneyWastedPerDayUser() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getMoneyWastedPerDayUser() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the total money wasted by throwing food by user.
getNextDateTime() - Method in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
 
getNotifications() - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.NotificationController
This method returns all notifications for a given user.
getPageable(Integer, Integer) - Static method in class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SearchSpecification
 
getPassword() - Method in class edu.ntnu.idatt2106_2023_06.backend.model.users.User
 
getPicture(Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Retrieves the user's profile picture.
getPictureFromId(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Retrieves the user's profile picture from ID.
getProfilePicture(long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.files.FileStorageService
 
getProfilePicture(long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.files.IFileStorageService
 
getRankedRecipeByDate(Long, int, int, LocalDateTime) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
getRankedRecipesByFridge(Long, int, int) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
getRecipe(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.RecipeService
 
getRecipesByFridgeId(Long, int, int) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.RecipeService
 
getRecipesByFridgeIdAndDay(Long, int, int, Day) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.RecipeService
 
getRecipesByName(String, int, int) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.RecipeService
 
getScore(Item, RecipeItems) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
getShoppingList(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IShoppingItemsController
Gets the items on the shopping list for a given fridge.
getShoppingList(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.ShoppingItemsController
Gets the items on the shopping list for a given fridge.
getShoppingListItems(Long) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
getShoppingListItems(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Retrieves a list of items from the shopping list for the specified fridge.
getSorts() - Method in class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SearchRequest
 
getUserAvgThrownPerDay(Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the average percentage of items thrown per day by the user.
getUserAvgThrownTotal() - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the average percentage of items thrown in total by the user.
getUserMoneyUsedPerDay(Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the money spent per day by the user.
getUserMoneyWastedPerDay(Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the money wasted per day by the user.
getUserStats() - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
getUserStats() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Gets the statistics for a user as JSON.
getUserStats(Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Get the personal statistics of the user.
getWeightedScore(ItemRecipeScore, FridgeItems, LocalDateTime) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
GRAMS - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 

H

hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeLoadAllDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadAllDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeUserDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemUpdateDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemMoveDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemRemoveDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.RecipeShoppingDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingItemUpdateDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.NotificationDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.UpdateNotificationDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.InstructionDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeAllergenDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipePartDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionAddDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionLoad
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.security.AuthenticationResponseDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatAddItemToFridgeDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDeleteFromFridgeDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.LoginReplyDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserDeletionDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadAllDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoginDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserPasswordUpdateDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserRegisterDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserSearchDTO
Returns a hash code value for this object.
hashCode() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserUpdateDTO
Returns a hash code value for this object.
hashCode() - Method in class edu.ntnu.idatt2106_2023_06.backend.model.fridge.Fridge
 
hashCode() - Method in class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Recipe
 
hashCode() - Method in class edu.ntnu.idatt2106_2023_06.backend.model.users.User
 

I

IApiKeyService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.apiKey
 
IAuthenticationService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.security
 
IEmailService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.users
 
IFileStorageService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.files
 
IFridgeItemsController - Interface in edu.ntnu.idatt2106_2023_06.backend.controller
This interface contains the essential methods for the FridgeItems controller.
IFridgeService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.fridge
This interface contains the methods that the fridge service needs to implement.
IItemController - Interface in edu.ntnu.idatt2106_2023_06.backend.controller
This interface contains the methods needed in the ItemController.
IItemService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.items
 
IllegalException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.illegal
This exception is thrown when an illegal argument is passed to a method.
IllegalException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.illegal.IllegalException
This method constructs a new IllegalException with the specified message.
IllegalFileTypeException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.illegal
This exception is thrown when a file with an illegal file type is uploaded.
IllegalFileTypeException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.illegal.IllegalFileTypeException
This method constructs a new IllegalFileTypeException with the specified file type.
IllegalStatTypeException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.illegal
This exception is thrown when a stat type is not valid.
IllegalStatTypeException(int) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.illegal.IllegalStatTypeException
This method constructs a new IllegalStatTypeException with the specified stat type.
IllegalStatValueException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.illegal
This exception is thrown when a stat value is not valid.
IllegalStatValueException() - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.illegal.IllegalStatValueException
This method constructs a new IllegalStatValueException with the specified lower bound of zero.
IllegalStatValueException(int) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.illegal.IllegalStatValueException
This method constructs a new IllegalStatValueException with the specified lower bound for legal values.
IllegalStatValueException(int, int) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.illegal.IllegalStatValueException
This method constructs a new IllegalStatValueException with the specified bounds for legal values.
illegalStatValueExceptionAction(IllegalStatValueException, WebRequest) - Method in class edu.ntnu.idatt2106_2023_06.backend.exception.ControllerAdvisor
This method handles ServletExceptions in the application and returns a response with a 500 Internal Server Error status code.
image() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the image record component.
image() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns the value of the image record component.
image() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns the value of the image record component.
image() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns the value of the image record component.
imageLink() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.InstructionDTO
Returns the value of the imageLink record component.
ImageNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
An exception thrown when an image is not found.
ImageNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.ImageNotFoundException
This method constructs an ImageNotFoundException with the specified image ID.
ImageNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.ImageNotFoundException
This method constructs an ImageNotFoundException with the specified image name.
IN - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.Operator
 
ingredients() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipePartDTO
Returns the value of the ingredients record component.
init() - Method in class edu.ntnu.idatt2106_2023_06.backend.config.DatabaseConfig
This method initializes the database triggers.
initializeFridge(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method creates a new fridge and a new fridge member entry for a given user.
initializeFridge(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.fridge.IFridgeService
This method creates a new fridge and a new fridge member entry for a given user.
INotificationService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.notification
 
instruction() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.InstructionDTO
Returns the value of the instruction record component.
InstructionDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.recipe
This record represents a DTO for a recipe instruction.
InstructionDTO(String, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.InstructionDTO
Creates an instance of a InstructionDTO record class.
InstructionMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper.recipe
The InstructionMapper class contains methods for mapping between Instructions model and DTO.
InstructionMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.InstructionMapper
 
InstructionRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.recipe
 
Instructions - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
This class represents an instruction for a recipe.
Instructions() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Instructions
 
INTEGER - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
 
InvalidTokenException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception
This exception is thrown to indicate that a token is invalid.
InvalidTokenException() - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.InvalidTokenException
This method constructs an InvalidTokenException with no detail message.
InvalidTokenException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.InvalidTokenException
This method constructs an InvalidTokenException with the specified token as the detail message.
InvalidTokenException(String, Throwable) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.InvalidTokenException
This method constructs an InvalidTokenException with the specified detail message and cause.
InvalidTokenException(Throwable) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.InvalidTokenException
This method constructs an InvalidTokenException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
ioExceptionAction(IOException, WebRequest) - Method in class edu.ntnu.idatt2106_2023_06.backend.exception.ControllerAdvisor
This method handles IOExceptions in the application and returns a response with a 500 Internal Server Error status code.
isAccountNonExpired() - Method in class edu.ntnu.idatt2106_2023_06.backend.model.users.User
 
isAccountNonLocked() - Method in class edu.ntnu.idatt2106_2023_06.backend.model.users.User
 
isAuthenticated() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
Checks if the user is authenticated.
isAuthenticated() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserInfoService
 
isCredentialsNonExpired() - Method in class edu.ntnu.idatt2106_2023_06.backend.model.users.User
 
isEnabled() - Method in class edu.ntnu.idatt2106_2023_06.backend.model.users.User
 
IShoppingItemsController - Interface in edu.ntnu.idatt2106_2023_06.backend.controller
This interface contains the outline of essential functions for the ShoppingItemsController.
isRead() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.NotificationDTO
Returns the value of the isRead record component.
isSuperUser() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Returns the value of the isSuperUser record component.
isSuperUser() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeUserDTO
Returns the value of the isSuperUser record component.
isSuperUser(Long, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserService
This method checks the isSuperUser status for a user and a given fridge.
IStatService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.stat
 
isTokenValid(String, UserDetails) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
Checks if a JWT token is valid for a given user.
isUserInFridge(Long, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserService
This method checks if a given user is in a fridge, given fridge id.
Item - Class in edu.ntnu.idatt2106_2023_06.backend.model.items
This class represents a food items.
Item() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.items.Item
 
Item_ - Class in edu.ntnu.idatt2106_2023_06.backend.metamodel
 
Item_() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.metamodel.Item_
 
ItemController - Class in edu.ntnu.idatt2106_2023_06.backend.controller
This class represents the REST controller for managing items in a fridge and shopping list.
ItemController() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.controller.ItemController
 
ItemDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items
A DTO representing an item.
ItemDTO(String, String, String, double, String, int, Boolean, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Creates an instance of a ItemDTO record class.
itemId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the itemId record component.
itemId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemUpdateDTO
Returns the value of the itemId record component.
itemId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns the value of the itemId record component.
itemId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemMoveDTO
Returns the value of the itemId record component.
itemId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingItemUpdateDTO
Returns the value of the itemId record component.
itemId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns the value of the itemId record component.
itemIds() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.RecipeShoppingDTO
Returns the value of the itemIds record component.
ItemLoadDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items
This record represents a DTO for loading an item.
ItemLoadDTO(Long, String, String, String, double, String, int, Boolean) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Creates an instance of a ItemLoadDTO record class.
ItemMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper
This class is a mapper that maps between the Item model and the Item DTOs.
ItemMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.ItemMapper
 
ItemMoveDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items
 
ItemMoveDTO(Long, Long) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemMoveDTO
Creates an instance of a ItemMoveDTO record class.
itemName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemRemoveDTO
Returns the value of the itemName record component.
itemName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.NotificationDTO
Returns the value of the itemName record component.
itemName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatAddItemToFridgeDTO
Returns the value of the itemName record component.
itemName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDeleteFromFridgeDTO
Returns the value of the itemName record component.
itemName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns the value of the itemName record component.
ItemNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
This exception is thrown when an item is not found in the database.
ItemNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.ItemNotFoundException
This method constructs a new ItemNotFoundException with the given itemId.
ItemNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.ItemNotFoundException
This method constructs a new ItemNotFoundException with the given itemName.
ItemRecipeScore - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
This class represents the score between a given item and a recipe.
ItemRecipeScore() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.ItemRecipeScore
 
ItemRecipeScoreId - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
A class that serves as the id for an item recipe score.
ItemRecipeScoreId() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.ItemRecipeScoreId
 
ItemRecipeScoreMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper.recipe
Mapper for ItemRecipeScore entity.
ItemRecipeScoreMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.ItemRecipeScoreMapper
 
ItemRecipeScoreRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.recipe
 
ItemRecipeScoreService - Class in edu.ntnu.idatt2106_2023_06.backend.service.items
 
ItemRecipeScoreService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemRecipeScoreService
 
ItemRemoveDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items
 
ItemRemoveDTO(String, String, Long, int) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemRemoveDTO
Creates an instance of a ItemRemoveDTO record class.
ItemRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.item
This repository provides CRUD operations for the Item entity.
ItemService - Class in edu.ntnu.idatt2106_2023_06.backend.service.items
ItemService is responsible for handling requests related to items, including adding items to the store, fridge and shopping list.
ItemService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
 
ITokenService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.users
 
IUserInfoService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.users
 
IUserService - Interface in edu.ntnu.idatt2106_2023_06.backend.service.users
 

J

javaMailSender() - Method in class edu.ntnu.idatt2106_2023_06.backend.config.MailConfig
This method creates a new JavaMailSender bean with the configured properties.
JwtAuthenticationFilter - Class in edu.ntnu.idatt2106_2023_06.backend.filter
JwtAuthenticationFilter is responsible for authentication of incoming requests with JWT token.
JwtAuthenticationFilter() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.filter.JwtAuthenticationFilter
 
jwtExceptionAction(ServletException, WebRequest) - Method in class edu.ntnu.idatt2106_2023_06.backend.exception.ControllerAdvisor
This method handles JwtExceptions in the application and returns a response with a 400 Bad Request status code.
JwtService - Class in edu.ntnu.idatt2106_2023_06.backend.service.security
 
JwtService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.security.JwtService
 

K

KILOGRAMS - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 

L

lastName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Returns the value of the lastName record component.
lastName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadDTO
Returns the value of the lastName record component.
lastName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserRegisterDTO
Returns the value of the lastName record component.
lastName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserUpdateDTO
Returns the value of the lastName record component.
LIKE - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.Operator
 
LITERS - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 
loadFridgeIdsByUser(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeController
This endpoint retrieves all the fridge ids for a given user.
loadFridgesByUser(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeController
This endpoint retrieves all the fridges for a given user.
loadRecipe(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint retrieves a single recipe with the given name from Meny.
loadRecipe(String, int, int) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint retrieves a page of recipes with a given name from Meny, allowing for pagination.
loadRecipeByFridgeItems(Long, int, int) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint retrieves a page of recipes from Meny that use ingredients in the given fridge, allowing for pagination.
loadRecipeByFridgeItemsAndDay(Long, Day, int, int) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint retrieves a page of recipes from Meny that use ingredients in the given fridge on the given day, allowing for pagination.
loadRecipeSuggestion(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.RecipeService
 
loadSuggestion(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
This endpoint loads the dinner suggestions for a given fridge.
loadUser() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserService
Loads user information from the database.
loadUserDTOByUsername(String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserService
 
loadUserDTOByUsername(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserService
Loads a user's DTO information.
loadUsersByFridgeId(Long, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeController
This endpoint retrieves all the users for a given fridge id.
LoginReplyDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.users
A data transfer object representing a response for user login.
LoginReplyDTO(String, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.users.LoginReplyDTO
Creates an instance of a LoginReplyDTO record class.
LONG - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
 

M

MailConfig - Class in edu.ntnu.idatt2106_2023_06.backend.config
This class provides a configuration for the JavaMailSender, which is used to send email.
MailConfig() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.config.MailConfig
 
main(String[]) - Static method in class edu.ntnu.idatt2106_2023_06.backend.BackendApplication
 
memberInfo() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadAllDTO
Returns the value of the memberInfo record component.
MILLILITERS - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 
MONDAY - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
 

N

name() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the name record component.
name() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns the value of the name record component.
name() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns the value of the name record component.
name() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns the value of the name record component.
newPassword() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserPasswordUpdateDTO
Returns the value of the newPassword record component.
NOT_EQUAL - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.Operator
 
notFoundAction(NotFoundException, WebRequest) - Method in class edu.ntnu.idatt2106_2023_06.backend.exception.ControllerAdvisor
This method handles NotFoundException by returning an HTTP response entity with a body containing the time of the error and the message to be returned to the client with a status code of 404.
NotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
Exception thrown when an entity with a certain attribute value or ID cannot be found in the database.
NotFoundException(String, Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.NotFoundException
This method constructs a new NotFoundException with the given attribute name and ID.
NotFoundException(String, String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.NotFoundException
This method constructs a new NotFoundException with the given attribute name and value.
Notification - Class in edu.ntnu.idatt2106_2023_06.backend.model.notification
 
Notification() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.notification.Notification
 
NotificationController - Class in edu.ntnu.idatt2106_2023_06.backend.controller
This class represents the REST controller for managing notifications for a user.
NotificationController() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.controller.NotificationController
 
NotificationDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.notification
This record represents a DTO for a notification.
NotificationDTO(Long, Boolean, String, String, Long) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.NotificationDTO
Creates an instance of a NotificationDTO record class.
notificationId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.NotificationDTO
Returns the value of the notificationId record component.
notificationId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.UpdateNotificationDTO
Returns the value of the notificationId record component.
NotificationMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper
The NotificationMapper class contains methods for mapping between Notification model and DTO.
NotificationMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.NotificationMapper
 
NotificationNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
This exception is thrown when a notification can not be found.
NotificationNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.NotificationNotFoundException
This method constructs a new NotificationNotFoundException with the given notification ID.
NotificationRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.notification
 
NotificationService - Class in edu.ntnu.idatt2106_2023_06.backend.service.notification
 
NotificationService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
 

O

oldPassword() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserPasswordUpdateDTO
Returns the value of the oldPassword record component.
Operator - Enum Class in edu.ntnu.idatt2106_2023_06.backend.sortAndFilter
The different operators a field can have.
OUNCES - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 

P

page() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Returns the value of the page record component.
pageSize() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Returns the value of the pageSize record component.
parse(String) - Method in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
 
parse(String) - Static method in class edu.ntnu.idatt2106_2023_06.backend.utils.UnitParser
 
partName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipePartDTO
Returns the value of the partName record component.
password() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoginDTO
Returns the value of the password record component.
password() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserRegisterDTO
Returns the value of the password record component.
passwordEncoder() - Method in class edu.ntnu.idatt2106_2023_06.backend.config.ApplicationConfig
This method return the application's current Password Encoder, which leverages the bcrypt algorithm.
PIECES - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 
POUNDS - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
 
PRESENT - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Amount
 
price() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the price record component.
price() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns the value of the price record component.
price() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns the value of the price record component.
price() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns the value of the price record component.
price() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatAddItemToFridgeDTO
Returns the value of the price record component.
productName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Returns the value of the productName record component.
purchaseDate() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the purchaseDate record component.
purchaseDate() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemUpdateDTO
Returns the value of the purchaseDate record component.

Q

quantity() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns the value of the quantity record component.
quantity() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns the value of the quantity record component.
quantity() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemRemoveDTO
Returns the value of the quantity record component.
quantity() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingItemUpdateDTO
Returns the value of the quantity record component.
quantity() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns the value of the quantity record component.
quantity() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatAddItemToFridgeDTO
Returns the value of the quantity record component.

R

Recipe - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
This class represents a recipe.
Recipe() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Recipe
 
RecipeAllergen - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
This class represents an allergen in a recipe.
RecipeAllergen() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.RecipeAllergen
 
RecipeAllergenDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.recipe
This record represents a DTO for a recipe allergen.
RecipeAllergenDTO(String, Amount) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeAllergenDTO
Creates an instance of a RecipeAllergenDTO record class.
RecipeAllergenId - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
A class that serves as the id for an allergen in a recipe.
RecipeAllergenId() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.RecipeAllergenId
 
RecipeAllergenMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper.recipe
This class provides a static method for converting a RecipeAllergen object to a RecipeAllergenDTO object.
RecipeAllergenMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipeAllergenMapper
 
RecipeAllergenRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.recipe
 
RecipeController - Class in edu.ntnu.idatt2106_2023_06.backend.controller
The RecipeController class is responsible for handling requests related to recipes.
RecipeController() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.controller.RecipeController
 
recipeHasFridgeItems(Long) - Static method in class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.RecipeSpecification
 
recipeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionAddDTO
Returns the value of the recipeId record component.
RecipeItemDTO - Class in edu.ntnu.idatt2106_2023_06.backend.dto.recipe
This record represents a dto for an ingredient in a recipe.
RecipeItemDTO() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeItemDTO
 
RecipeItemId - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
A class that serves as the id for the RecipeItems entity in the app.
RecipeItemId() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.RecipeItemId
 
RecipeItemMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper.recipe
This class maps RecipeItems to RecipeItemDTO.
RecipeItemMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipeItemMapper
 
RecipeItems - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
This class represents an items in a recipe.
RecipeItems() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.RecipeItems
 
RecipeItemsRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.recipe
This repository provides CRUD operations for the RecipeItem entity.
recipeLoadDTO() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionLoad
Returns the value of the recipeLoadDTO record component.
RecipeLoadDTO - Class in edu.ntnu.idatt2106_2023_06.backend.dto.recipe
This record represents the DTO used for loading a whole recipe.
RecipeLoadDTO() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeLoadDTO
 
RecipeMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper.recipe
Mapper class for the Recipe entity and its DTOs.
RecipeMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipeMapper
 
RecipeNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
This exception is thrown when a Recipe is not found.
RecipeNotFoundException(String, Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.RecipeNotFoundException
This method constructs a new RecipeNotFoundException with a given attribute and value.
RecipeNotFoundException(String, String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.RecipeNotFoundException
This method constructs a new RecipeNotFoundException with a given attribute and value.
RecipePart - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
This class represents a part of a recipe.
RecipePart() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.RecipePart
 
RecipePartDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.recipe
This record represents a DTO for a part of the ingredient list.
RecipePartDTO(String, List<RecipeItemDTO>) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipePartDTO
Creates an instance of a RecipePartDTO record class.
RecipePartMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper.recipe
Mapper class for mapping RecipePart objects to RecipePartDTO objects.
RecipePartMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipePartMapper
 
RecipePartRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.recipe
 
RecipeRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.recipe
This repository provides CRUD operations for the Recipe entity.
RecipeScraper - Class in edu.ntnu.idatt2106_2023_06.backend.utils
 
RecipeScraper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.utils.RecipeScraper
 
RecipeService - Class in edu.ntnu.idatt2106_2023_06.backend.service.items
 
RecipeService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.items.RecipeService
 
RecipeShoppingDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list
This record represents a DTO for the items to add to a shopping list from a recipe.
RecipeShoppingDTO(Long, List<Long>) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.RecipeShoppingDTO
Creates an instance of a RecipeShoppingDTO record class.
RecipeSpecification - Class in edu.ntnu.idatt2106_2023_06.backend.sortAndFilter
 
RecipeSpecification() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.RecipeSpecification
 
RecipeSuggestion - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
This class represents a recipe suggestion.
RecipeSuggestion() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.RecipeSuggestion
 
RecipeSuggestionAddDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.recipe
This record represents a DTO for a suggestion of a recipe
RecipeSuggestionAddDTO(Long, Long, Long) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionAddDTO
Creates an instance of a RecipeSuggestionAddDTO record class.
RecipeSuggestionId - Class in edu.ntnu.idatt2106_2023_06.backend.model.recipe
A class that serves as the id for the RecipeSuggestion entity in the app.
RecipeSuggestionId() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.recipe.RecipeSuggestionId
 
RecipeSuggestionLoad - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.recipe
This record represents a DTO for loading a recipe suggestion.
RecipeSuggestionLoad(RecipeLoadDTO, Long) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionLoad
Creates an instance of a RecipeSuggestionLoad record class.
RecipeSuggestionNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
This exception is thrown when a recipe suggestion is not found
RecipeSuggestionNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.RecipeSuggestionNotFoundException
This method constructs a new RecipeSuggestionNotFoundException with the specified value.
RecipeSuggestionNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.RecipeSuggestionNotFoundException
This method constructs a new RecipeSuggestionNotFoundException with the specified value.
RecipeSuggestionRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.recipe
This repository provides CRUD operations for the RecipeSuggestion entity.
register(UserLoginDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Authenticates a user with login information.
register(UserRegisterDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Registers a new user.
register(UserRegisterDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.security.AuthenticationService
Registers a user to the system.
register(UserRegisterDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.security.IAuthenticationService
 
removeItemFromFridge(ItemRemoveDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
removeItemFromFridge(ItemRemoveDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Removes the specified quantity of an item from the specified fridge.
removeItemFromShoppingList(ItemRemoveDTO, boolean) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
removeItemFromShoppingList(ItemRemoveDTO, boolean) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Removes the specified quantity of an item from the shopping list for the specified fridge.
retrieveFridgeIdsByUsername(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method retrieves all the fridge ids for a given user.
retrieveFridgesByUsername(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method retrieves all the fridge ids for a given user.
retrieveMembersByFridgeId(Long, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method retrieves all the users for a given fridge.
retrieveMembersByFridgeId(Long, String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.fridge.IFridgeService
This method retrieves all the users for a given fridge.
runtimeExceptionAction(RuntimeException, WebRequest) - Method in class edu.ntnu.idatt2106_2023_06.backend.exception.ControllerAdvisor
This method handles RuntimeExceptions in the application and returns a response with a 500 Internal Server Error status code.

S

SATURDAY - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
 
saveToken(String, User) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.ITokenService
 
saveToken(String, User) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.TokenService
 
scrapeRecipe(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.utils.RecipeScraper
 
search(Long, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
This method checks whether a user with the given fridge id.
search(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Searches for a user by username.
searchFridgeItems(FridgeItemSearchDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeItemsController
Search and filter items from a fridge.
searchFridgeItems(FridgeItemSearchDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.items.IItemService
 
searchFridgeItems(FridgeItemSearchDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
Searches for items in the fridge.
SearchRequest - Class in edu.ntnu.idatt2106_2023_06.backend.sortAndFilter
The request body for filtering a list of objects.
SearchRequest() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SearchRequest
 
SearchSpecification<T> - Class in edu.ntnu.idatt2106_2023_06.backend.sortAndFilter
The specification for filtering a list of objects.
SearchSpecification() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SearchSpecification
 
searchUser(String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserService
This method searches for users by username.
SecurityConfig - Class in edu.ntnu.idatt2106_2023_06.backend.config
Configuration class for Spring Security.
SecurityConfig() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.config.SecurityConfig
 
securityFilterChain(HttpSecurity) - Method in class edu.ntnu.idatt2106_2023_06.backend.config.SecurityConfig
Configures the security filter chain.
sendActivationEmail(User) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.EmailService
 
sendActivationEmail(User) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IEmailService
 
sendResetPassword(User) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.EmailService
 
sendResetPassword(User) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IEmailService
 
setAllNotificationsAsRead() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
Sets all notifications for a user as read.
setFileStorageLocation(Path) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.files.FileStorageService
Sets the file storage location.
setNotificationAsRead() - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.NotificationController
Set all notifications as read.
setNotificationAsRead(UpdateNotificationDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
Sets a notification as read.
ShoppingItemMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper
The ShoppingItemMapper class contains methods for mapping between FridgeItems and ShoppingItems model, and between Item and ShoppingListLoadDTO DTO.
ShoppingItemMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.ShoppingItemMapper
 
ShoppingItems - Class in edu.ntnu.idatt2106_2023_06.backend.model.fridge
This class represents a shopping list.
ShoppingItems() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.fridge.ShoppingItems
 
ShoppingItemsController - Class in edu.ntnu.idatt2106_2023_06.backend.controller
A controller class handling shopping items and their operations.
ShoppingItemsController() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.controller.ShoppingItemsController
 
ShoppingItemsNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
An exception thrown when a shopping items is not found.
ShoppingItemsNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.ShoppingItemsNotFoundException
This method constructs a new ShoppingItemsNotFoundException with the specified shopping items id.
ShoppingItemsNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.ShoppingItemsNotFoundException
This method constructs a new ShoppingItemsNotFoundException with the specified shopping items name.
ShoppingItemsRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.item
This repository provides CRUD operations for the ShoppingItem entity.
ShoppingItemUpdateDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list
This record represents a dto for updating a shopping list item.
ShoppingItemUpdateDTO(Long, Long, Integer, Boolean) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingItemUpdateDTO
Creates an instance of a ShoppingItemUpdateDTO record class.
ShoppingListLoadDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list
A data transfer object representing a shopping list item to be loaded.
ShoppingListLoadDTO(Long, String, String, String, double, String, int, Boolean, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Creates an instance of a ShoppingListLoadDTO record class.
SortDirection - Enum Class in edu.ntnu.idatt2106_2023_06.backend.sortAndFilter
The different sort directions a field can have.
sortField() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Returns the value of the sortField record component.
sortOrder() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Returns the value of the sortOrder record component.
SortRequest - Class in edu.ntnu.idatt2106_2023_06.backend.sortAndFilter
The request body for filtering a list of objects.
SortRequest() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SortRequest
 
statAddItemToFridge(StatAddItemToFridgeDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
statAddItemToFridge(StatAddItemToFridgeDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Adds a new statistic to the database.
StatAddItemToFridgeDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.stat
This record represents a dto for adding a statistic.
StatAddItemToFridgeDTO(Double, Integer, String, String, Long) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatAddItemToFridgeDTO
Creates an instance of a StatAddItemToFridgeDTO record class.
statBoughtItem(StatAddItemToFridgeDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Adds a new stat to the database.
StatController - Class in edu.ntnu.idatt2106_2023_06.backend.controller
The StatController class contains the API endpoints related to statistics.
StatController() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
 
StatDeleteFromFridgeDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.stat
This record represents a DTO for the statistic of deleting from a fridge.
StatDeleteFromFridgeDTO(Integer, String, String, Long) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDeleteFromFridgeDTO
Creates an instance of a StatDeleteFromFridgeDTO record class.
statDeleteItem(StatDeleteFromFridgeDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.StatController
Adds a new stat to the database.
statDeleteItemFromFridge(StatDeleteFromFridgeDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.stat.IStatService
 
statDeleteItemFromFridge(StatDeleteFromFridgeDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
Adds a new statistic to the database.
StatDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.stat
This record represents a general statistics DTO.
StatDTO(Long, Double, Date, Long, Long, Long, String, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Creates an instance of a StatDTO record class.
statId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns the value of the statId record component.
Statistics - Class in edu.ntnu.idatt2106_2023_06.backend.model.stats
This class represents a statistical entry.
Statistics() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.stats.Statistics
 
StatMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper
The StatMapper class contains methods for mapping between Stat DTOs and Statistics models.
StatMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.StatMapper
 
StatNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
The exception thrown when a requested Stat cannot be found in the system.
StatNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.StatNotFoundException
This method constructs a new StatNotFoundException with the specified id value.
StatNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.StatNotFoundException
This method constructs a new StatNotFoundException with the specified name value.
StatRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.stat
 
StatService - Class in edu.ntnu.idatt2106_2023_06.backend.service.stat
Service for handling statistics.
StatService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.stat.StatService
 
StatType - Class in edu.ntnu.idatt2106_2023_06.backend.model.stats
This class represents the different types of statistics saved.
StatType() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.stats.StatType
 
statTypeId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns the value of the statTypeId record component.
StatTypeRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.stat
 
statValue() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns the value of the statValue record component.
store() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the store record component.
store() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns the value of the store record component.
store() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns the value of the store record component.
store() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemRemoveDTO
Returns the value of the store record component.
store() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns the value of the store record component.
Store - Class in edu.ntnu.idatt2106_2023_06.backend.model.items
This class represents a store from which the food came from.
Store() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.items.Store
 
storeName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatAddItemToFridgeDTO
Returns the value of the storeName record component.
storeName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDeleteFromFridgeDTO
Returns the value of the storeName record component.
storeName() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns the value of the storeName record component.
StoreNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
An exception to be thrown when a store is not found.
StoreNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.StoreNotFoundException
This method constructs a new StoreNotFoundException with the specified store id.
StoreNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.StoreNotFoundException
This method constructs a new StoreNotFoundException with the specified store name.
storeProfilePicture(String, MultipartFile) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.files.FileStorageService
 
storeProfilePicture(String, MultipartFile) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.files.IFileStorageService
 
StoreRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.store
This repository provides CRUD operations for the Store entity.
STRING - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
 
suggestion() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns the value of the suggestion record component.
suggestion() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns the value of the suggestion record component.
suggestion() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingItemUpdateDTO
Returns the value of the suggestion record component.
suggestion() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns the value of the suggestion record component.
SUNDAY - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
 

T

THURSDAY - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
 
timestamp() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns the value of the timestamp record component.
toFridgeItemLoadDTO(FridgeItems) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeItemMapper
Converts a FridgeItems object into a FridgeItemLoadDTO object.
toFridgeItems(ShoppingItems) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeItemMapper
Converts a ShoppingItems object into a FridgeItems object.
toFridgeLoadAllDTO(List<Fridge>) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeMapper
This method converts a list of fridges to fridgeLoadDTO.
toFridgeLoadDTO(Fridge) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeMapper
This method converts a fridge to a fridgeDTO.
toFridgeMember(User, Fridge, boolean) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeMemberMapper
This method maps a User, a Fridge, and a boolean indicating whether the user is a superuser to a FridgeMember.
toFridgeMemberLoadAllDTO(List<FridgeMember>) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeMemberMapper
This method converts a list of fridge member objects into a data transfer object.
toFridgeMemberLoadDTO(User, boolean) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.FridgeMemberMapper
This method converts a list of user objects into a data transfer object.
toInstructionDTO(Instructions) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.InstructionMapper
Maps Instructions object to InstructionDTO object.
toItem(ItemDTO, Store) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.ItemMapper
This method maps an ItemDTO and a Store to an Item.
toItemDTO(Item, int, Boolean) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.ItemMapper
This method maps an Item and a quantity to an ItemDTO.
toItemRecipeScore(Item, Recipe, double) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.ItemRecipeScoreMapper
Maps an Item, a Recipe, and a score to an ItemRecipeScore object.
token() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.security.AuthenticationResponseDTO
Returns the value of the token record component.
token() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.LoginReplyDTO
Returns the value of the token record component.
Token - Class in edu.ntnu.idatt2106_2023_06.backend.model.users
This class represents a user token.
Token() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.users.Token
 
TokenNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
An exception to be thrown when a token is not found.
TokenNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.TokenNotFoundException
This method constructs a new TokenNotFoundException with the specified user id.
TokenNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.TokenNotFoundException
This method constructs a new with the specified token value.
TokenRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.users
This repository provides CRUD operations for the Token entity.
TokenService - Class in edu.ntnu.idatt2106_2023_06.backend.service.users
This class allows for emails to be sent to users regarding issues such as registration and password resetting.
TokenService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.users.TokenService
 
toNotificationDTO(Notification) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.NotificationMapper
This method converts a Notification object to a NotificationDTO object.
toNotificationDTO(List<Notification>) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.NotificationMapper
This method converts a list of notifications to a list of notificationDTOs.
toPredicate(Root<T>, CriteriaQuery<?>, CriteriaBuilder) - Method in class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SearchSpecification
 
toRecipeAllergenDTO(RecipeAllergen) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipeAllergenMapper
Converts a RecipeAllergen object to a RecipeAllergenDTO object.
toRecipeItemDTO(RecipeItems) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipeItemMapper
Maps RecipeItems to RecipeItemDTO.
toRecipeLoadDTO(Recipe) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipeMapper
Maps a Recipe object to a RecipeLoadDTO object.
toRecipeLoadDTO(Recipe, int) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipeMapper
Maps a Recipe object to a RecipeLoadDTO object.
toRecipePartDTO(RecipePart) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipePartMapper
Converts a RecipePart object to a RecipePartDTO object.
toRecipeSuggestionLoadDTO(Recipe, Long) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipeMapper
Maps a Recipe object to a RecipeSuggestionLoad object.
toShoppingItem(FridgeItems) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.ShoppingItemMapper
This method converts a FridgeItems object to a ShoppingItems object.
toShoppingListLoadDTO(Item, int, boolean) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.ShoppingItemMapper
This method converts an Item object to a ShoppingListLoadDTO object.
toStatistics(StatAddItemToFridgeDTO, User, Fridge, StatType) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.StatMapper
Converts StatAddItemToFridgeDTO to a Statistics model.
toStatistics(StatDeleteFromFridgeDTO, User, Fridge, StatType) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.StatMapper
Converts StatDeleteFromFridgeDTO to a list of Statistics models.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeLoadAllDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadAllDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeUserDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemSearchDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemUpdateDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemLoadDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemMoveDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.ItemRemoveDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.RecipeShoppingDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingItemUpdateDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.shopping_list.ShoppingListLoadDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.NotificationDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.UpdateNotificationDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.InstructionDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeAllergenDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipePartDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionAddDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionLoad
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.security.AuthenticationResponseDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatAddItemToFridgeDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDeleteFromFridgeDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.LoginReplyDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserDeletionDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadAllDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoginDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserPasswordUpdateDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserRegisterDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserSearchDTO
Returns a string representation of this record class.
toString() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserUpdateDTO
Returns a string representation of this record class.
toUser(UserRegisterDTO) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.UserMapper
Convert a UserCreateDTO object to a User object.
toUserLoadAllDTO(List<User>) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.UserMapper
This method converts a list of user objects into a data transfer object.
TRACE - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Amount
 
TUESDAY - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
 

U

unauthorizedAction(UnauthorizedException, WebRequest) - Method in class edu.ntnu.idatt2106_2023_06.backend.exception.ControllerAdvisor
This method handles UnauthorizedExceptions by returning an HTTP response entity with a body containing the time of the error and the message to be returned to the client with a status code of 401.
UnauthorizedException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception
An exception thrown when a user is not authorized to perform a certain action.
UnauthorizedException() - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.UnauthorizedException
This method constructs an UnauthorizedException with a default error message indicating that the user is not authorized.
UnauthorizedException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.UnauthorizedException
This method constructs an UnauthorizedException with a default error message indicating the username that is not authorized.
UnauthorizedException(String, String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.UnauthorizedException
This method constructs an UnauthorizedException with a custom error message and indicating the username that is not authorized.
unit() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.items.fridge_items.FridgeItemLoadDTO
Returns the value of the unit record component.
UnitParser - Class in edu.ntnu.idatt2106_2023_06.backend.utils
This class contains methods to extract the amount and unit of an item from its product name.
UnitParser() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.utils.UnitParser
 
UnitType - Enum Class in edu.ntnu.idatt2106_2023_06.backend.utils
This enumeration contains all the important unit types that items may have.
update(UserUpdateDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Updates the user's text information.
updateAllNotifications() - Method in class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
Updates all notifications of a user.
updateFridgeItem(FridgeItemUpdateDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
This method updates a fridge item
updateFridgeItem(FridgeItemUpdateDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeItemsController
This method updates a given fridge item to contain the information received.
updateFridgeItem(FridgeItemUpdateDTO, Authentication) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IFridgeItemsController
 
updateFridgeName(FridgeDTO, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method updates fridge's name.
updateFridgeName(FridgeDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeController
This endpoint serves to update the fridge name.
UpdateNotificationDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.notification
This record represents a DTO for updating a notification.
UpdateNotificationDTO(Long) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.notification.UpdateNotificationDTO
Creates an instance of a UpdateNotificationDTO record class.
updateNotifications() - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.NotificationController
This method updates notifications for a given user.
updateNotifications(Long) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.notification.NotificationService
Updates all notifications for a user in a fridge.
updatePassword(UserPasswordUpdateDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Updates the user's password.
updatePicture(MultipartFile, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
Updates the user's profile picture.
updateShoppingItem(ShoppingItemUpdateDTO, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.items.ItemService
This method updates a shopping list item.
updateShoppingListItem(ShoppingItemUpdateDTO, Authentication) - Method in interface edu.ntnu.idatt2106_2023_06.backend.controller.IShoppingItemsController
This method updates a given fridge item to contain the information received.
updateShoppingListItem(ShoppingItemUpdateDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.ShoppingItemsController
This method updates a given fridge item to contain the information received.
updateUser(UserUpdateDTO) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserService
 
updateUser(UserUpdateDTO) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserService
This method updates a user's information.
updateUserFromFridge(FridgeUserDTO, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method updates a user from a given fridge.
updateUserFromFridge(FridgeUserDTO, Authentication) - Method in class edu.ntnu.idatt2106_2023_06.backend.controller.FridgeController
This endpoint serves to update a User from a fridge.
updateUserPassword(UserPasswordUpdateDTO, String) - Method in interface edu.ntnu.idatt2106_2023_06.backend.service.users.IUserService
 
updateUserPassword(UserPasswordUpdateDTO, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.users.UserService
This method allows a user to update their password; however, only if the user provided the correct old password.
User - Class in edu.ntnu.idatt2106_2023_06.backend.model.users
User class represents a user of the e-commerce application with their personal information, authentication details, and activities on the platform.
User() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.model.users.User
 
UserController - Class in edu.ntnu.idatt2106_2023_06.backend.controller
UserController handles HTTP requests related to user management and authentication.
UserController() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.controller.UserController
 
UserDeletionDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.users
A data transfer object class representing the request to delete a user from the system.
UserDeletionDTO(String, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserDeletionDTO
Creates an instance of a UserDeletionDTO record class.
userDetailsService() - Method in class edu.ntnu.idatt2106_2023_06.backend.config.ApplicationConfig
This method returns a UserDetailsService that retrieves user details from the user repository.
UserExistsException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.exists
Exception thrown when attempting to create a new user with a username that already exists in the system.
UserExistsException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.exists.UserExistsException
This method constructs a new UserExistsException with the provided username.
UserExistsException(String, String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.exists.UserExistsException
This method constructs a new UserExistsException with the provided attribute and value.
userExistsInFridge(Long, String) - Method in class edu.ntnu.idatt2106_2023_06.backend.service.fridge.FridgeService
This method checks whether the effected user exists.
userId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Returns the value of the userId record component.
userId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionAddDTO
Returns the value of the userId record component.
userId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.stat.StatDTO
Returns the value of the userId record component.
userId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadDTO
Returns the value of the userId record component.
userId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserSearchDTO
Returns the value of the userId record component.
UserId() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.recipe.RecipeSuggestionLoad
Returns the value of the UserId record component.
UserInfoService - Class in edu.ntnu.idatt2106_2023_06.backend.service.users
 
UserInfoService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.users.UserInfoService
 
UserLoadAllDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.users
This data transfer object contains a list of user.
UserLoadAllDTO(List<UserLoadDTO>) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadAllDTO
Creates an instance of a UserLoadAllDTO record class.
userLoadDTO(User) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.UserMapper
Convert a User object to a UserLoadDTO object.
UserLoadDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.users
A data transfer object representing a user's basic information, used for loading user data.
UserLoadDTO(long, String, String, String, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadDTO
Creates an instance of a UserLoadDTO record class.
UserLoginDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.users
A data transfer object (DTO) representing a user login request.
UserLoginDTO(String, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoginDTO
Creates an instance of a UserLoginDTO record class.
UserMapper - Class in edu.ntnu.idatt2106_2023_06.backend.mapper
This mapper class is responsible for converting User objects to User dDTO objects and vice versa.
UserMapper() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.mapper.UserMapper
 
username() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeMemberLoadDTO
Returns the value of the username record component.
username() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.fridge.FridgeUserDTO
Returns the value of the username record component.
username() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.LoginReplyDTO
Returns the value of the username record component.
username() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserDeletionDTO
Returns the value of the username record component.
username() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadDTO
Returns the value of the username record component.
username() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserRegisterDTO
Returns the value of the username record component.
username() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserSearchDTO
Returns the value of the username record component.
username() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserUpdateDTO
Returns the value of the username record component.
UserNotFoundException - Exception in edu.ntnu.idatt2106_2023_06.backend.exception.not_found
An exception that indicates that a user was not found.
UserNotFoundException(Long) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.UserNotFoundException
This method constructs a UserNotFoundException with the specified id as the cause.
UserNotFoundException(String) - Constructor for exception edu.ntnu.idatt2106_2023_06.backend.exception.not_found.UserNotFoundException
This method constructs a UserNotFoundException with the specified value as the cause.
UserPasswordUpdateDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.users
A data transfer object (DTO) class representing the data required to update a user's password.
UserPasswordUpdateDTO(String, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserPasswordUpdateDTO
Creates an instance of a UserPasswordUpdateDTO record class.
UserRegisterDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.users
A record representing the data needed to register a new user.
UserRegisterDTO(String, String, String, String, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserRegisterDTO
Creates an instance of a UserRegisterDTO record class.
UserRepository - Interface in edu.ntnu.idatt2106_2023_06.backend.repo.users
This repository provides CRUD operations for the User entity.
users() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserLoadAllDTO
Returns the value of the users record component.
userSearchDTO(List<User>) - Static method in class edu.ntnu.idatt2106_2023_06.backend.mapper.UserMapper
 
UserSearchDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.users
This record represents a DTO for searching up a user.
UserSearchDTO(Long, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserSearchDTO
Creates an instance of a UserSearchDTO record class.
UserService - Class in edu.ntnu.idatt2106_2023_06.backend.service.users
This service class handles the business logic for user-related operations.
UserService() - Constructor for class edu.ntnu.idatt2106_2023_06.backend.service.users.UserService
 
userToDelete() - Method in record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserDeletionDTO
Returns the value of the userToDelete record component.
UserUpdateDTO - Record Class in edu.ntnu.idatt2106_2023_06.backend.dto.users
This record contains a DTO for updating a user's information.
UserUpdateDTO(String, String, String, String) - Constructor for record class edu.ntnu.idatt2106_2023_06.backend.dto.users.UserUpdateDTO
Creates an instance of a UserUpdateDTO record class.

V

valueOf(String) - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Amount
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.Operator
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SortDirection
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Amount
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.FieldType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.Operator
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.sortAndFilter.SortDirection
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.ntnu.idatt2106_2023_06.backend.utils.UnitType
Returns an array containing the constants of this enum class, in the order they are declared.

W

WEDNESDAY - Enum constant in enum class edu.ntnu.idatt2106_2023_06.backend.model.recipe.Day
 
A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form