Index

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

A

Achievement - Class in ntnu.idatt2016.v233.SmartMat.entity.group
Achievement is an entity class representing an achievement in the system.
Achievement() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.group.Achievement
 
AchievementController - Class in ntnu.idatt2016.v233.SmartMat.controller.group
Achievement API endpoint, providing endpoints for fetching an achievement by name, and fetching all achievements stored in the database
AchievementController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.group.AchievementController
 
AchievementRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.group
Repository for achievements
AchievementService - Class in ntnu.idatt2016.v233.SmartMat.service.user
Service for achievements
AchievementService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.user.AchievementService
 
addAllergy(Allergy) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Product
Adds an allergy to the product
addAllergy(Allergy) - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
adds an allergy to the user
addAllergyToUser(String, String) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
Adds allergy to user
addAllergyToUser(AllergyRequest, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.user.UserController
Adds the specified allergy to the user with the given username.
addConnection(GroupConnectionRequest, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Handles the HTTP POST request to add a new connection between a user and a group.
addFavoriteRecipe(String, long) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
adds recipe to users favorite recipes
addFridge(FridgeProductAsso) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Product
Adds a fridge to the product
addFridgeToGroup(long, long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Adds a group to a fridge
addGroup(UserGroupAsso) - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
adds a group to the user
addItemToShoppingList(long, String, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.ShoppingListController
Adds a product to a shopping list
addProduct(FridgeProductAsso) - Method in class ntnu.idatt2016.v233.SmartMat.entity.group.Fridge
Adds a product to the fridge
addProduct(Product) - Method in class ntnu.idatt2016.v233.SmartMat.entity.group.ShoppingList
Adds a product to the shopping list
addProduct(Product) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Allergy
adds a product to the allergy
addProduct(Product) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Category
adds a product to the category
addProduct(Product) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Recipe
Adds a product to the recipe
addProductToFridge(FridgeProductRequest) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
Adds a product to the fridge of a group
addProductToFridge(FridgeProductRequest, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.FridgeController
Adds a product to the fridge of a group
addProductToShoppingList(long, long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.ShoppingListService
Adds a product to a shopping list
addRecipe(Recipe) - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
adds a recipe to the user
addRecipeToFavorites(Long, String) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Adds a recipe to a users favorites
addRecipeToFavorites(Long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.RecipeController
add recipe to favorites in user
addShoppingList(ShoppingList) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Product
Adds a shopping list to the product
addUser(UserGroupAsso) - Method in class ntnu.idatt2016.v233.SmartMat.entity.group.Group
 
addUser(User) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Allergy
adds a user to the allergy
addUser(User) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Recipe
Adds a user to the recipe used for adding favorites
addUserToRecipe(Recipe, User) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Adds a user to a recipe used for adding favorite recipes
ADMIN - Enum constant in enum class ntnu.idatt2016.v233.SmartMat.dto.enums.Authority
 
allergies() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Returns the value of the allergies record component.
allergies() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Returns the value of the allergies record component.
Allergy - Class in ntnu.idatt2016.v233.SmartMat.entity.product
Allergy is an entity class representing an allergy
Allergy() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.product.Allergy
 
AllergyController - Class in ntnu.idatt2016.v233.SmartMat.controller.product
Controller for allergies
AllergyController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.product.AllergyController
 
AllergyRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.product
Repository for allergies
AllergyRequest - Class in ntnu.idatt2016.v233.SmartMat.dto.request.product
This class represents a request for a shopping list.
AllergyRequest() - Constructor for class ntnu.idatt2016.v233.SmartMat.dto.request.product.AllergyRequest
 
AllergyResponse - Class in ntnu.idatt2016.v233.SmartMat.dto.response.product
This class represents an allergy response
AllergyResponse() - Constructor for class ntnu.idatt2016.v233.SmartMat.dto.response.product.AllergyResponse
 
AllergyService - Class in ntnu.idatt2016.v233.SmartMat.service.product
Service for allergies
AllergyService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.product.AllergyService
 
amount() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.WasteRequest
Returns the value of the amount record component.
amount() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Returns the value of the amount record component.
AuthenticationConfig - Class in ntnu.idatt2016.v233.SmartMat.config.authentiation
Configures the authentication for the application.
AuthenticationConfig() - Constructor for class ntnu.idatt2016.v233.SmartMat.config.authentiation.AuthenticationConfig
 
AuthenticationController - Class in ntnu.idatt2016.v233.SmartMat.controller.user
AuthenticationController defines the endpoint for user authentication, authenticating user credentials and generating a JWT token.
AuthenticationController(TokenService, AuthenticationManager) - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.user.AuthenticationController
Constructs a new AuthController with the specified TokenService and AuthenticationManager.
authority() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.ChangeAuthorityRequest
Returns the value of the authority record component.
authority() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.UserAuthorityInfo
Returns the value of the authority record component.
Authority - Enum Class in ntnu.idatt2016.v233.SmartMat.dto.enums
Authority is a enum representing an authority in the system.

B

birthDate() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Returns the value of the birthDate record component.
birthDate() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Returns the value of the birthDate record component.

C

Category - Class in ntnu.idatt2016.v233.SmartMat.entity.product
Category is an entity class representing a product category
Category() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.product.Category
 
CategoryRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.product
Repository for categories
CategoryService - Class in ntnu.idatt2016.v233.SmartMat.service.product
Service for Categories
CategoryService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.product.CategoryService
 
CategoryUtil - Class in ntnu.idatt2016.v233.SmartMat.util
Utility class for category
CategoryUtil() - Constructor for class ntnu.idatt2016.v233.SmartMat.util.CategoryUtil
 
changeAuthority(ChangeAuthorityRequest, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Changes the authority level of a user in a group.
ChangeAuthorityRequest - Record Class in ntnu.idatt2016.v233.SmartMat.dto.request.group
ChangeAuthorityRequest is a record class representing a request to change the authority of a user in a group.
ChangeAuthorityRequest(String, long, String) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.request.group.ChangeAuthorityRequest
Creates an instance of a ChangeAuthorityRequest record class.
changeOpenValue(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Updates the open/closed status of the group with the specified ID.
compareWeeklyMenuAndRecipeProducts(Integer) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.WeeklyMenuController
Gets weekly menu for a fridge
CorsConfig - Class in ntnu.idatt2016.v233.SmartMat.config.security
Cors configuration for application
CorsConfig() - Constructor for class ntnu.idatt2016.v233.SmartMat.config.security.CorsConfig
 
corsConfigurer() - Method in class ntnu.idatt2016.v233.SmartMat.config.security.CorsConfig
Configures CORS for the application.
countAllUserInGroup(long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.GroupRepository
Gets the amount of users in a group with a given group id
createConnectionAfterCreateGroup(String, long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.UserGroupAssoRepository
Creates a new user-group association with the specified user and group IDs and assigns the user as the primary group administrator with ADMIN authority.
createGroup(GroupRequest, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Creates a new group
createGroup(Group) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Creates a new group
createProduct(ProductRequest) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.ProductController
Creates a product if it does not already exist.
createWaste(WasteRequest) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
Creates a new waste
createWaste(WasteRequest, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.WasteController
Saves a new waste

D

days() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Returns the value of the days record component.
defineCategory(String, String) - Static method in class ntnu.idatt2016.v233.SmartMat.util.CategoryUtil
Static method that define the category of the product.
delete(User) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
deletes user from database
deleteAllergy(Allergy) - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
Deletes the specified allergy from this user's list of allergies.
deleteAllergyByName(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.AllergyService
Deletes allergy by name
deleteAllergyFromUser(AllergyRequest, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.user.UserController
Deletes the specified allergy from the user with the given username.
deleteAmountFridgeProduct(long, String, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.FridgeController
Deletes an amount of a product from a fridge
deleteAmountFromFridge(long, double) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
Delete an amount from a fridge product
deleteProduct(long) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.ProductController
Deletes a product with the given ean.
deleteProductById(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.ProductService
Deletes a product by its ID
deleteRecipe(Recipe) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Deletes a recipe
deleteRecipeById(Long) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Deletes a recipe by its id
deleteShoppingListById(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.ShoppingListService
Deletes a shopping list by its ID
description() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Returns the value of the description record component.
domain() - Method in record class ntnu.idatt2016.v233.SmartMat.config.properties.DomainProperty
Returns the value of the domain record component.
DomainProperty - Record Class in ntnu.idatt2016.v233.SmartMat.config.properties
Configuration properties for the domain of the application
DomainProperty(String) - Constructor for record class ntnu.idatt2016.v233.SmartMat.config.properties.DomainProperty
Creates an instance of a DomainProperty record class.

E

ean() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.WasteRequest
Returns the value of the ean record component.
ean() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Returns the value of the ean record component.
ean() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Returns the value of the ean record component.
email() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Returns the value of the email record component.
email() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Returns the value of the email record component.
encoder() - Method in class ntnu.idatt2016.v233.SmartMat.config.authentiation.AuthenticationConfig
Configures the password encoder.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.config.properties.DomainProperty
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.ChangeAuthorityRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupConnectionRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.WasteRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.LoginRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.GroupResponse
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.UserAuthorityInfo
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class ntnu.idatt2016.v233.SmartMat.entity.group.Group
Checks if two objects are equal
equals(Object) - Method in class ntnu.idatt2016.v233.SmartMat.entity.group.UserGroupId
 
equals(Object) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Allergy
 
equals(Object) - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Product
 
equals(Object) - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
 

F

FavoriteRequest - Class in ntnu.idatt2016.v233.SmartMat.dto.request.product
This class represents a request for a shopping list.
FavoriteRequest() - Constructor for class ntnu.idatt2016.v233.SmartMat.dto.request.product.FavoriteRequest
 
findAllByGroup(Group) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.UserGroupAssoRepository
Retrieves a list of UserGroupAsso objects for the specified Group object.
findAllByGroupAndUser(Group, User) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.UserGroupAssoRepository
Finds all UserGroupAsso objects associated with the specified group and user.
findAllByGroupUserUserUsername(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.ShoppingListRepository
Gets all shopping lists by the username of the user
findAllById(long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.product.FridgeProductAssoRepo
Finds all fridge product associations by id
findAllByName(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.product.RecipeRepository
Gets a recipe by its name
findAllByProductsEan(long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.product.AllergyRepository
Finds all allergies by product id
findAllByUserUsername(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.UserGroupAssoRepository
Finds all groups a user is a member of
findAllLinkCode() - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.GroupRepository
Gets link codes of all groups
findAllWasteOfOneCategoryFromGroup(long, String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.WasteRepository
Returns a list of all waste items of a given category from a specific group.
findAuthorityByUser_UsernameAndGroup_GroupId(String, long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.UserGroupAssoRepository
Finds the authority level of a user in a group
findByAchievementName(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.AchievementRepository
Finds an achievement by its name
findByEmail(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.user.UserRepository
gets user from email out of database
findByGroupGroupId(long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.FridgeRepository
Gets the fridge of a group
findByGroupId(long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.GroupRepository
Finds a group by group id
findByGroupId(Group) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.WasteRepository
 
findByGroupName(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.GroupRepository
Finds a group by group name
findByLinkCode(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.GroupRepository
Gets a group with a given link code
findByName(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.product.AllergyRepository
Finds a allergy by its name
findByUser_UsernameAndPrimaryGroupTrue(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.UserGroupAssoRepository
Finds primary group for given user
findByUserGroupId(UserGroupId) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.UserGroupAssoRepository
Finds UserGroupAsso by UserGroupId
findByUsername(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.user.UserRepository
gets user from username out of database
findFirstByUserAndPrimaryGroup(User, boolean) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.UserGroupAssoRepository
Finds the first UserGroupAsso object associated with the specified user and primary group status.
findPrimaryUserGroupAssoForUser(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Finds the primary group for a user
findRecipeProductsWithName() - Method in interface ntnu.idatt2016.v233.SmartMat.repository.product.RecipeRepository
Gets a list of recipes with their products
findWeeklyMenu(long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.product.RecipeRepository
Gets a weekly menu for a fridge
firstName() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Returns the value of the firstName record component.
firstName() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Returns the value of the firstName record component.
Fridge - Class in ntnu.idatt2016.v233.SmartMat.entity.group
Fridge is an entity class representing a fridge in the system.
Fridge() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.group.Fridge
 
FridgeController - Class in ntnu.idatt2016.v233.SmartMat.controller.group
Controller for fridges API, providing endpoints for fridge management
FridgeController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.group.FridgeController
 
FridgeProductAsso - Class in ntnu.idatt2016.v233.SmartMat.entity.fridgeProduct
FridgeProductAsso is an entity class representing a fridge product association.
FridgeProductAsso() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.fridgeProduct.FridgeProductAsso
 
FridgeProductAssoRepo - Interface in ntnu.idatt2016.v233.SmartMat.repository.product
Repository for fridge product associations
fridgeProductId() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Returns the value of the fridgeProductId record component.
FridgeProductRequest - Record Class in ntnu.idatt2016.v233.SmartMat.dto.request.product
FridgeProductRequest is a record class representing a request to add a product to a fridge.
FridgeProductRequest(long, long, long, int, int, double) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Creates an instance of a FridgeProductRequest record class.
FridgeRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.group
Repository interface for the Fridge entity
FridgeService - Class in ntnu.idatt2016.v233.SmartMat.service.group
Service for management of a group fridge
FridgeService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
 

G

generateRsa() - Static method in class ntnu.idatt2016.v233.SmartMat.util.rsa.Jwks
Generates an RSA key pair, creates an RSAKey object, and assigns a unique key ID to it.
generateToken(Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.TokenService
Generates a JWT token from an Authentication object.
generateUniqueCode() - Static method in class ntnu.idatt2016.v233.SmartMat.util.GroupUtil
Generates a unique six-digit code using UUID.
getAchievement(String) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.AchievementController
Gets an achievement from the database
getAchievement(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.AchievementService
Gets an achievement from the database
getAchievements() - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.AchievementController
Gets all achievements from the database
getAchievements() - Method in class ntnu.idatt2016.v233.SmartMat.service.user.AchievementService
Gets all achievements from the database
getAllAllergies() - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.AllergyController
Gets list of all allergies, without products
getAllAllergies() - Method in class ntnu.idatt2016.v233.SmartMat.service.product.AllergyService
Returns all allergies
getAllergyByName(String) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.AllergyController
Gets allergy by name, also includes products that contain the allergy
getAllergyByName(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.AllergyService
Returns allergy by name
getAllGroupsByUser(Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Handles the HTTP DELETE request to remove a user from a group.
getAllProducts() - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.ProductController
Returns all products in the database.
getAllProducts() - Method in class ntnu.idatt2016.v233.SmartMat.service.product.ProductService
Gets all products in the database
getAllRecipes() - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Gets all recipes
getAllShoppingLists() - Method in class ntnu.idatt2016.v233.SmartMat.service.group.ShoppingListService
Gets all shopping lists
getAllShoppingListsByGroupId(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.ShoppingListController
Gets a shopping list by its group ID
getAnnualAverage(List<Waste>, int) - Static method in class ntnu.idatt2016.v233.SmartMat.util.StatisticUtil
Calculates the annual average amount of CO2 emissions per person based on a list of waste objects and a number of persons.
getAuthorities() - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
used when created jwts and validating user authority
getByGroupGroupId(long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.ShoppingListRepository
Gets a shopping list by its group ID
getByName(String) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.product.ProductRepository
Gets a Product by name
getCakeDiagram(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
Get the cake diagram for a group of waste.
getCategoryByName(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.CategoryService
gets a category
getCategoryName(int) - Static method in class ntnu.idatt2016.v233.SmartMat.util.CategoryUtil
Returns the category name corresponding to the given category number.
getCO2Annually(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.WasteController
Retrieves the amount of CO2 emitted annually per person in a specific group.
getCO2PerPerson(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
Calculates the annual average CO2 emissions per person in the specified group.
getFridgeByFridgeId(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
Gets the fridge by its fridge id
getFridgeByFridgeId(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.FridgeController
Gets the fridge by its fridge id
getFridgeByGroupId(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
Gets the fridge of a group
getFridgeByGroupId(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.FridgeController
Gets the fridge of a group
getGroupById(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Gets a group by its id
getGroupById(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Gets a group by its id
getGroupByLinkCode(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Gets a group by its link code
getGroupByName(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Gets a group by its name
getGroupIdByShoppingListId(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.ShoppingListService
Get group id by shoppinglist id
getGroupIdFromFridgeProuctId(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
Get the group id of a fridge product
getGroupLevel(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Gets the level of a group
getInformationOfCakeGraph(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.WasteController
Retrieve information about the cake diagram for a given group ID using a GET request.
getInformationOfLastMoths(long) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.WasteController
Get the information of the last months of a specific group.
getLastMonth(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
Retrieve an optional array of doubles representing the amount of waste produced in each of the last 4 months for a given group.
getLastWaste() - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.WasteRepository
Gets the last added waste item
getLevel(long) - Static method in class ntnu.idatt2016.v233.SmartMat.util.GroupUtil
Calculates the level of a group based on its experience points.
getLevelByGroupId(long) - Method in interface ntnu.idatt2016.v233.SmartMat.repository.group.GroupRepository
Gets group level by group id
getLevelByGroupId(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Gets the level of a group
getLostMoney(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
Retrieves the lost money in the last month for the group with the given ID.
getLostMoney(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.WasteController
Retrieves the amount of money lost due to expired products in a specific group.
getLostMoneyInLastMonth(List<Waste>) - Static method in class ntnu.idatt2016.v233.SmartMat.util.StatisticUtil
Calculates the total amount of money lost due to expired or discarded items in the last 30 days, based on the list of wastes passed as a parameter.
getNumberOfWasteByCategoryName(List<Waste>) - Static method in class ntnu.idatt2016.v233.SmartMat.util.StatisticUtil
Get the number of waste items for each category name in a list of waste items.
getNumberOfWasteByLastMonth(List<Waste>) - Static method in class ntnu.idatt2016.v233.SmartMat.util.StatisticUtil
Calculates the sum of waste for each of the four previous months.
getPassword() - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
getter for the user password used in userdetails service
getPassword(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
gets password from user
getProduct(long) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.ProductController
Returns a product with the given ean.
getProductById(Long) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.ProductService
Gets a product by its ID
getProductByName(String) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.ProductController
Retrieve a product by name using a GET request.
getProductByName(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.ProductService
 
getProductVolume(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.ProductService
Gets the volume of a product
getProgressOfLevel(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Returns the progress of the level for the group identified by the given ID.
getProgressOfLevel(long) - Static method in class ntnu.idatt2016.v233.SmartMat.util.GroupUtil
Calculates the progress of the current level of a group based on its experience points.
getProgressOfLevel(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Returns the progress of the level for the group identified by the given ID.
getRecipeById(Long) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.RecipeController
Gets a recipe by its id
getRecipeById(Long) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Gets a recipe by its id
getRecipeByName(String) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.RecipeController
Gets all recipes with a given name
getRecipesByName(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Gets all recipes with a given name
getShoppingListByGroupId(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.ShoppingListService
Gets a shopping list by its group ID
getShoppingListById(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.ShoppingListService
Gets a shopping list by its ID
getShoppingListById(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.ShoppingListController
Gets a shopping list by its ID
getUser(String, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.user.UserController
Get a user from the database.
getUserFromEmail(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
gets user from email out of database
getUserFromUsername(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
gets user from username out of database
getUserGroupAsso(String, Long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Gets a user group association
getUserGroupAssoAuthority(String, long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Gets the authority of a user group association
getUserGroupAssoByUserName(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Gets all user group associations for a user
getUsername() - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
getter for the user username used in userdetails service
getUsers() - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
Gets all users from the database
getVolumeFromProduct(Product) - Static method in class ntnu.idatt2016.v233.SmartMat.util.ProductUtil
Gets volume from a product
getWasteByGroupId(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
Gets a waste by its group id
getWasteByGroupId(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.WasteController
Gets a waste by its group id
getWasteById(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
Gets a waste by its id
getWasteById(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.WasteController
Gets a waste by its id
getWasteOfCategoryByGroupId(long, int, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.WasteController
Retrieves a list of Waste objects of a specific category from a group
getWasteOfCategoryByGroupId(long, String) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
Returns an Optional containing a List of Waste objects for a specific category and group id, or an empty Optional if there are no wastes for that category and group id.
getWeeklyMenu(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WeeklyMenuService
Retrieves the top 5 recipes with products that have a match with items in the given fridge.
getWeeklyMenu(Integer) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Returns a list of RecipeWithMatchCount objects representing the weekly menu based on ingredients in a fridge.
Group - Class in ntnu.idatt2016.v233.SmartMat.entity.group
Group is an entity class representing a user group in the system.
Group() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.group.Group
 
GroupConnectionRequest - Record Class in ntnu.idatt2016.v233.SmartMat.dto.request.group
GroupConnectionRequest is a record class representing a request to connect to a group.
GroupConnectionRequest(String) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupConnectionRequest
Creates an instance of a GroupConnectionRequest record class.
GroupController - Class in ntnu.idatt2016.v233.SmartMat.controller.group
Controller for groups API, providing endpoints for group management
GroupController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
 
GroupDetailsResponse - Class in ntnu.idatt2016.v233.SmartMat.dto.response.group
GroupDetailsResponse is a class representing a response containing details about a group.
GroupDetailsResponse(Group, List<UserAuthorityInfo>) - Constructor for class ntnu.idatt2016.v233.SmartMat.dto.response.group.GroupDetailsResponse
 
groupId() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.ChangeAuthorityRequest
Returns the value of the groupId record component.
groupId() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.WasteRequest
Returns the value of the groupId record component.
groupId() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Returns the value of the groupId record component.
groupId() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.GroupResponse
Returns the value of the groupId record component.
groupName() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupRequest
Returns the value of the groupName record component.
GroupRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.group
Repository for groups
GroupRequest - Record Class in ntnu.idatt2016.v233.SmartMat.dto.request.group
GroupRequest is a record class representing a request to create a group.
GroupRequest(String) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupRequest
Creates an instance of a GroupRequest record class.
GroupResponse - Record Class in ntnu.idatt2016.v233.SmartMat.dto.response.group
GroupResponse is a record class representing a response to a group request.
GroupResponse(long, String) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.response.group.GroupResponse
Creates an instance of a GroupResponse record class.
GroupService - Class in ntnu.idatt2016.v233.SmartMat.service.group
Service for groups
GroupService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
 
GroupUtil - Class in ntnu.idatt2016.v233.SmartMat.util
This class provide some useful methods used with the group entity.
GroupUtil() - Constructor for class ntnu.idatt2016.v233.SmartMat.util.GroupUtil
 

H

hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.config.properties.DomainProperty
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.ChangeAuthorityRequest
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupConnectionRequest
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupRequest
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.WasteRequest
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.LoginRequest
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.GroupResponse
Returns a hash code value for this object.
hashCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.UserAuthorityInfo
Returns a hash code value for this object.
hashCode() - Method in class ntnu.idatt2016.v233.SmartMat.entity.group.Group
Gets the hashcode of the object
hashCode() - Method in class ntnu.idatt2016.v233.SmartMat.entity.group.UserGroupId
 
hashCode() - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Allergy
 
hashCode() - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Product
 
hashCode() - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
 

I

image() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Returns the value of the image record component.
isAccountNonExpired() - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
not used
isAccountNonLocked() - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
not used
isCredentialsNonExpired() - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
not used
isEnabled() - Method in class ntnu.idatt2016.v233.SmartMat.entity.user.User
used in authentication
isHalal(String, String, boolean) - Static method in class ntnu.idatt2016.v233.SmartMat.util.CategoryUtil
Determines whether a food product is halal, based on its name and description, and whether it is already determined to be vegetarian or vegan.
isUserAssociatedWithGroup(String, Long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Checks if a user is associated with a group
isUserAssosiatedWithWaste(String, long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
Checks if the user is assosiated with the waste their trying to retrive
isUserInFridge(String, long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
check if user has accsess to fridge
isUserInGroupWithFridgeProduct(String, long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
Get all the fridge products of a group
isUserInShoppinglist(long, String) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.ShoppingListService
Check if user can edit/get shoppinglist
isVegan(String, String) - Static method in class ntnu.idatt2016.v233.SmartMat.util.CategoryUtil
Determines whether a food product is vegan, based on its name and description.
isVegetarian(String, String, boolean) - Static method in class ntnu.idatt2016.v233.SmartMat.util.CategoryUtil
Determines whether a food product is vegetarian, based on its name and description, and whether it is already determined to be vegan or not.

J

JpaUserDetailsService - Class in ntnu.idatt2016.v233.SmartMat.service.user
JpaUserDetailsService is a class that implements the UserDetailsService interface.
JpaUserDetailsService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.user.JpaUserDetailsService
 
Jwks - Class in ntnu.idatt2016.v233.SmartMat.util.rsa
Jwks is a utility class for generating RSA keys for JSON Web Key Set (JWKS) support.
jwkSource() - Method in class ntnu.idatt2016.v233.SmartMat.config.authentiation.AuthenticationConfig
Configures the JWKSource instance for handling RSA keys.
jwtDecoder() - Method in class ntnu.idatt2016.v233.SmartMat.config.authentiation.AuthenticationConfig
Configures a JwtDecoder for decoding JWT tokens.
jwtEncoder(JWKSource<SecurityContext>) - Method in class ntnu.idatt2016.v233.SmartMat.config.authentiation.AuthenticationConfig
Configures a JwtEncoder for encoding JWT tokens.

L

lastName() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Returns the value of the lastName record component.
lastName() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Returns the value of the lastName record component.
linkCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupConnectionRequest
Returns the value of the linkCode record component.
linkCode() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.GroupResponse
Returns the value of the linkCode record component.
loadUserByUsername(String) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.JpaUserDetailsService
gets user from username out of database
LoginRequest - Record Class in ntnu.idatt2016.v233.SmartMat.dto.request.user
LoginRequest is a record class representing a login request.
LoginRequest(String, String) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.request.user.LoginRequest
Creates an instance of a LoginRequest record class.

M

main(String[]) - Static method in class ntnu.idatt2016.v233.SmartMat.SmartMatApplication
 
markNewPrimaryGroup(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Handles the HTTP PUT request to change the primary group of a user.

N

name() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Returns the value of the name record component.
ntnu.idatt2016.v233.SmartMat - package ntnu.idatt2016.v233.SmartMat
 
ntnu.idatt2016.v233.SmartMat.config.authentiation - package ntnu.idatt2016.v233.SmartMat.config.authentiation
 
ntnu.idatt2016.v233.SmartMat.config.properties - package ntnu.idatt2016.v233.SmartMat.config.properties
 
ntnu.idatt2016.v233.SmartMat.config.security - package ntnu.idatt2016.v233.SmartMat.config.security
 
ntnu.idatt2016.v233.SmartMat.controller.group - package ntnu.idatt2016.v233.SmartMat.controller.group
 
ntnu.idatt2016.v233.SmartMat.controller.product - package ntnu.idatt2016.v233.SmartMat.controller.product
 
ntnu.idatt2016.v233.SmartMat.controller.user - package ntnu.idatt2016.v233.SmartMat.controller.user
 
ntnu.idatt2016.v233.SmartMat.dto.enums - package ntnu.idatt2016.v233.SmartMat.dto.enums
 
ntnu.idatt2016.v233.SmartMat.dto.request.group - package ntnu.idatt2016.v233.SmartMat.dto.request.group
 
ntnu.idatt2016.v233.SmartMat.dto.request.product - package ntnu.idatt2016.v233.SmartMat.dto.request.product
 
ntnu.idatt2016.v233.SmartMat.dto.request.user - package ntnu.idatt2016.v233.SmartMat.dto.request.user
 
ntnu.idatt2016.v233.SmartMat.dto.response.group - package ntnu.idatt2016.v233.SmartMat.dto.response.group
 
ntnu.idatt2016.v233.SmartMat.dto.response.product - package ntnu.idatt2016.v233.SmartMat.dto.response.product
 
ntnu.idatt2016.v233.SmartMat.entity.fridgeProduct - package ntnu.idatt2016.v233.SmartMat.entity.fridgeProduct
 
ntnu.idatt2016.v233.SmartMat.entity.group - package ntnu.idatt2016.v233.SmartMat.entity.group
 
ntnu.idatt2016.v233.SmartMat.entity.product - package ntnu.idatt2016.v233.SmartMat.entity.product
 
ntnu.idatt2016.v233.SmartMat.entity.user - package ntnu.idatt2016.v233.SmartMat.entity.user
 
ntnu.idatt2016.v233.SmartMat.repository.group - package ntnu.idatt2016.v233.SmartMat.repository.group
 
ntnu.idatt2016.v233.SmartMat.repository.product - package ntnu.idatt2016.v233.SmartMat.repository.product
 
ntnu.idatt2016.v233.SmartMat.repository.user - package ntnu.idatt2016.v233.SmartMat.repository.user
 
ntnu.idatt2016.v233.SmartMat.service.group - package ntnu.idatt2016.v233.SmartMat.service.group
 
ntnu.idatt2016.v233.SmartMat.service.product - package ntnu.idatt2016.v233.SmartMat.service.product
 
ntnu.idatt2016.v233.SmartMat.service.user - package ntnu.idatt2016.v233.SmartMat.service.user
 
ntnu.idatt2016.v233.SmartMat.util - package ntnu.idatt2016.v233.SmartMat.util
 
ntnu.idatt2016.v233.SmartMat.util.rsa - package ntnu.idatt2016.v233.SmartMat.util.rsa
 

O

OpenOrCloseGroup(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Updates the open/closed status of the group with the specified ID.

P

password() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.LoginRequest
Returns the value of the password record component.
password() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Returns the value of the password record component.
password() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Returns the value of the password record component.
price() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Returns the value of the price record component.
price() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Returns the value of the price record component.
Product - Class in ntnu.idatt2016.v233.SmartMat.entity.product
Product is an entity class representing a product in the system.
Product() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.product.Product
 
ProductController - Class in ntnu.idatt2016.v233.SmartMat.controller.product
The product controller is responsible for handling requests related to products.
ProductController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.product.ProductController
 
ProductRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.product
Repository for Products
ProductRequest - Record Class in ntnu.idatt2016.v233.SmartMat.dto.request.product
ProductRequest is a record class representing a request to create a product.
ProductRequest(long, String, String, String, double, List<String>) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Creates an instance of a ProductRequest record class.
ProductService - Class in ntnu.idatt2016.v233.SmartMat.service.product
Service for Products uses both the ProductRepository and the ProductUtil
ProductService(ProductRepository) - Constructor for class ntnu.idatt2016.v233.SmartMat.service.product.ProductService
Creates a new ProductService
ProductUtil - Class in ntnu.idatt2016.v233.SmartMat.util
Utility class for products
ProductUtil() - Constructor for class ntnu.idatt2016.v233.SmartMat.util.ProductUtil
 

R

Recipe - Class in ntnu.idatt2016.v233.SmartMat.entity.product
Recipe is an entity class representing a recipe in the system.
Recipe() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.product.Recipe
 
RecipeController - Class in ntnu.idatt2016.v233.SmartMat.controller.product
This class is responsible for handling requests related to recipes
RecipeController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.product.RecipeController
 
RecipeDetails - Class in ntnu.idatt2016.v233.SmartMat.dto.response.product
This class represents recipe details response
RecipeDetails() - Constructor for class ntnu.idatt2016.v233.SmartMat.dto.response.product.RecipeDetails
 
RecipeRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.product
This interface defines the methods for the recipe repository
RecipeRequest - Class in ntnu.idatt2016.v233.SmartMat.dto.request.product
This class represents a recipe request
RecipeRequest() - Constructor for class ntnu.idatt2016.v233.SmartMat.dto.request.product.RecipeRequest
 
RecipeService - Class in ntnu.idatt2016.v233.SmartMat.service.product
This class defines the methods for the recipe service
RecipeService(RecipeRepository) - Constructor for class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Creates a new recipe service
RecipeWithMatchCount - Class in ntnu.idatt2016.v233.SmartMat.dto.response.product
This class represents recipe response with match count
RecipeWithMatchCount() - Constructor for class ntnu.idatt2016.v233.SmartMat.dto.response.product.RecipeWithMatchCount
 
register(RegisterUserRequest) - Method in class ntnu.idatt2016.v233.SmartMat.controller.user.UserController
create a new user in the database uses the user service
RegisterUserRequest - Record Class in ntnu.idatt2016.v233.SmartMat.dto.request.user
RegisterUser is a record class representing a register request.
RegisterUserRequest(String, String, String, String, String, Date) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Creates an instance of a RegisterUserRequest record class.
removeAllergyFromUser(String, String) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
Removes allergy from user
removeProductFromFridge(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
Remove a product from the fridge of a group
removeProductFromFridge(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.FridgeController
Deletes a product from the fridge
removeProductFromShoppingList(long, long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.ShoppingListService
Removes a product from a shopping list
removeProductFromShoppingList(String, String, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.ShoppingListController
Removes a product from a shopping list
removeRecipeFromFavorites(Long, String) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Removes a recipe from a users favorites
removeRecipeFromFavorites(Long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.RecipeController
remove recipe from favorites in user
removeUserFromGroup(long, String, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.GroupController
Handles the HTTP DELETE request to remove a user from a group.
removeUserFromGroup(UserGroupAsso) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
removes user_group relatioon

S

saveAllergy(Allergy) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.AllergyService
Saves allergy
saveProduct(Product) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.ProductService
Saves a product to the database
saveRecipe(Recipe) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.RecipeService
Saves a recipe
saveUser(User) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
saves user to database
saveUsers(List<User>) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
saves list of users to database
SecurityConfig - Class in ntnu.idatt2016.v233.SmartMat.config.security
Configs for security and authentication
SecurityConfig() - Constructor for class ntnu.idatt2016.v233.SmartMat.config.security.SecurityConfig
 
setLevelByGroupId(long, long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Sets the level of the group identified by the given ID to the level corresponding to the given experience points.
ShoppingList - Class in ntnu.idatt2016.v233.SmartMat.entity.group
This class represents a shopping list
ShoppingList() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.group.ShoppingList
 
ShoppingListController - Class in ntnu.idatt2016.v233.SmartMat.controller.group
Controller for the shopping list
ShoppingListController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.group.ShoppingListController
 
ShoppingListRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.group
This interface defines the methods for the shopping list repository
ShoppingListRequest - Class in ntnu.idatt2016.v233.SmartMat.dto.request.group
This class represents a request for a shopping list.
ShoppingListRequest() - Constructor for class ntnu.idatt2016.v233.SmartMat.dto.request.group.ShoppingListRequest
 
ShoppingListService - Class in ntnu.idatt2016.v233.SmartMat.service.group
Service for the shopping list
ShoppingListService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.group.ShoppingListService
 
SmartMatApplication - Class in ntnu.idatt2016.v233.SmartMat
 
SmartMatApplication() - Constructor for class ntnu.idatt2016.v233.SmartMat.SmartMatApplication
 
StatisticUtil - Class in ntnu.idatt2016.v233.SmartMat.util
A utility class for calculating statistics related to waste and CO2 emissions.
StatisticUtil() - Constructor for class ntnu.idatt2016.v233.SmartMat.util.StatisticUtil
 

T

token(LoginRequest) - Method in class ntnu.idatt2016.v233.SmartMat.controller.user.AuthenticationController
Generates a token for the given user login request if the authentication is successful.
TokenService - Class in ntnu.idatt2016.v233.SmartMat.service.user
This class is used to generate a JWT token.
TokenService(JwtEncoder) - Constructor for class ntnu.idatt2016.v233.SmartMat.service.user.TokenService
Creates a new TokenService object.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.config.properties.DomainProperty
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.ChangeAuthorityRequest
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupConnectionRequest
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.GroupRequest
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.WasteRequest
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.FridgeProductRequest
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.product.ProductRequest
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.LoginRequest
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.GroupResponse
Returns a string representation of this record class.
toString() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.UserAuthorityInfo
Returns a string representation of this record class.
toString() - Method in class ntnu.idatt2016.v233.SmartMat.entity.product.Product
 

U

unit() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.WasteRequest
Returns the value of the unit record component.
updateGroup(Group) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Updates a group
updateProduct(long, ProductRequest) - Method in class ntnu.idatt2016.v233.SmartMat.controller.product.ProductController
Updates a product with the given ean.
updateProduct(Product) - Method in class ntnu.idatt2016.v233.SmartMat.service.product.ProductService
Updates a product
updateProductInFridge(FridgeProductRequest) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
Updates a product in the fridge of a group
updateProductInFridge(FridgeProductRequest, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.FridgeController
Updates a product in a fridge
updateUser(String, UpdateUserRequest, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.user.UserController
Update a user in the database.
updateUser(User) - Method in class ntnu.idatt2016.v233.SmartMat.service.user.UserService
update user if it already exists cant update username from this
updateUserGroupAsso(UserGroupAsso) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.GroupService
Updates a user group association
UpdateUserRequest - Record Class in ntnu.idatt2016.v233.SmartMat.dto.request.user
This class represents a request to update a user
UpdateUserRequest(String, String, String, String, Date, List<String>) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.request.user.UpdateUserRequest
Creates an instance of a UpdateUserRequest record class.
User - Class in ntnu.idatt2016.v233.SmartMat.entity.user
User is a class representing a user in the system.
User() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.user.User
 
USER - Enum constant in enum class ntnu.idatt2016.v233.SmartMat.dto.enums.Authority
 
UserAuthorityInfo - Record Class in ntnu.idatt2016.v233.SmartMat.dto.response.group
UserAuthorityInfo is a record class representing a response to a group request.
UserAuthorityInfo(String, String) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.response.group.UserAuthorityInfo
Creates an instance of a UserAuthorityInfo record class.
UserController - Class in ntnu.idatt2016.v233.SmartMat.controller.user
The user controller is responsible for handling requests related to users.
UserController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.user.UserController
 
UserGroupAsso - Class in ntnu.idatt2016.v233.SmartMat.entity.group
UserGroupTable is a class representing the user_group table in the database.
UserGroupAsso() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.group.UserGroupAsso
 
UserGroupAssoRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.group
Repository interface for the UserGroupAsso association entity
UserGroupId - Class in ntnu.idatt2016.v233.SmartMat.entity.group
This class represents a user group id
UserGroupId() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.group.UserGroupId
 
username() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.group.ChangeAuthorityRequest
Returns the value of the username record component.
username() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.LoginRequest
Returns the value of the username record component.
username() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.request.user.RegisterUserRequest
Returns the value of the username record component.
username() - Method in record class ntnu.idatt2016.v233.SmartMat.dto.response.group.UserAuthorityInfo
Returns the value of the username record component.
UserRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.user
repo for user entity
UserService - Class in ntnu.idatt2016.v233.SmartMat.service.user
UserService is a class that implements the UserDetailsService interface.
UserService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.user.UserService
 

V

valueOf(String) - Static method in enum class ntnu.idatt2016.v233.SmartMat.dto.enums.Authority
Returns the enum constant of this class with the specified name.
values() - Static method in enum class ntnu.idatt2016.v233.SmartMat.dto.enums.Authority
Returns an array containing the constants of this enum class, in the order they are declared.

W

Waste - Class in ntnu.idatt2016.v233.SmartMat.entity.group
This class represents a waste made by a group.
Waste() - Constructor for class ntnu.idatt2016.v233.SmartMat.entity.group.Waste
 
WasteController - Class in ntnu.idatt2016.v233.SmartMat.controller.group
Controller for handling requests related to waste
WasteController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.group.WasteController
 
wasteProductFromFridge(long) - Method in class ntnu.idatt2016.v233.SmartMat.service.group.FridgeService
Deletes a product from the fridge and saves a waste object representing the discarded product.
wasteProductFromFridge(long, Authentication) - Method in class ntnu.idatt2016.v233.SmartMat.controller.group.FridgeController
Deletes a product from the fridge and creates a waste object from it.
WasteRepository - Interface in ntnu.idatt2016.v233.SmartMat.repository.group
Repository for waste
WasteRequest - Record Class in ntnu.idatt2016.v233.SmartMat.dto.request.group
WasteRequest is a record class representing a request to add a product to a fridge.
WasteRequest(long, long, double, String) - Constructor for record class ntnu.idatt2016.v233.SmartMat.dto.request.group.WasteRequest
Creates an instance of a WasteRequest record class.
WasteService - Class in ntnu.idatt2016.v233.SmartMat.service.group
Service for waste
WasteService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.group.WasteService
 
WeeklyMenuController - Class in ntnu.idatt2016.v233.SmartMat.controller.group
Controller for weekly menu
WeeklyMenuController() - Constructor for class ntnu.idatt2016.v233.SmartMat.controller.group.WeeklyMenuController
 
WeeklyMenuResponse - Class in ntnu.idatt2016.v233.SmartMat.dto.response.group
This class represents a response for a weekly menu.
WeeklyMenuResponse() - Constructor for class ntnu.idatt2016.v233.SmartMat.dto.response.group.WeeklyMenuResponse
 
WeeklyMenuService - Class in ntnu.idatt2016.v233.SmartMat.service.group
Service class for weekly menu
WeeklyMenuService() - Constructor for class ntnu.idatt2016.v233.SmartMat.service.group.WeeklyMenuService
 
A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form