Index
All Classes and Interfaces|All Packages|Serialized Form
A
- accessToken() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.AccessTokenResponse
-
Returns the value of the
accessToken
record component. - accessToken() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.LoginRegisterResponse
-
Returns the value of the
accessToken
record component. - AccessTokenResponse - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token
-
DTO used when returning access token
- AccessTokenResponse(String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.AccessTokenResponse
-
Creates an instance of a
AccessTokenResponse
record class. - accNumber() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountDTO
-
Returns the value of the
accNumber
record component. - accNumber() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountUpdateDTO
-
Returns the value of the
accNumber
record component. - Account - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Represents an embeddable account entity within a database.
- Account() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.Account
- AccountAlreadyExistsException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.account
-
Exception that is thrown when creating an account that already exists
- AccountAlreadyExistsException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.account.AccountAlreadyExistsException
-
Constructs an instance of the exception class
- AccountController - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
-
Controller for endpoints related to user bank accounts
- AccountController() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AccountController
- AccountDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account
-
DTO for
Account
- AccountDTO(AccountType, Long, BigDecimal) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountDTO
-
Creates an instance of a
AccountDTO
record class. - AccountMapper - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting back and forth from the Account entity to its DTO's in addition to cascading updates from a DTO to the entity.
- AccountNotFoundException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.account
-
Exception that is thrown when putting to an account that does not exist
- AccountNotFoundException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.account.AccountNotFoundException
-
Constructs an instance of the exception class
- AccountResponseDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account
-
DTO for
Account
- AccountResponseDTO(Account, Account) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountResponseDTO
-
Creates an instance of a
AccountResponseDTO
record class. - AccountService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
-
Provides account-related operations bound to the user's session context within the application.
- AccountService() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AccountService
- accountType() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountDTO
-
Returns the value of the
accountType
record component. - accountType() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountUpdateDTO
-
Returns the value of the
accountType
record component. - AccountType - Enum Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums
-
Type of account
- AccountUpdateDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account
-
DTO for
Account
- AccountUpdateDTO(AccountType, Long, BigDecimal) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountUpdateDTO
-
Creates an instance of a
AccountUpdateDTO
record class. - ActiveGoalLimitExceededException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal
-
Exception for active goal limit (10)
- ActiveGoalLimitExceededException() - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal.ActiveGoalLimitExceededException
-
Constructor for exception
- ADMIN - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Role
-
Admin
- ApplicationConfig - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.config
-
Class for instantiating beans used during server runtime
- ApplicationConfig() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.ApplicationConfig
- ApplicationUtil - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.util
-
Util class for method used in application
- ApplicationUtil() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.util.ApplicationUtil
- AppStartup - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.startup
-
Class that populates the database with test data
- AppStartup() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.startup.AppStartup
- AssertionRequestNotFoundException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception
-
Exception thrown for when assertion request was not found
- AssertionRequestNotFoundException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.AssertionRequestNotFoundException
-
Constructor for exception
- AuthenticationController - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
-
Controller used for registering and logging in a user and returning access and refresh tokens
- AuthenticationController() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AuthenticationController
- authenticationManager(AuthenticationConfiguration) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.ApplicationConfig
-
Returns the manager for authentication context
- authenticationProvider() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.ApplicationConfig
-
Bean for authentication
- AuthenticationRequest - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
-
DTO for log in
- AuthenticationRequest(String, String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.AuthenticationRequest
-
Creates an instance of a
AuthenticationRequest
record class. - AuthenticationService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
-
Service responsible for registering a new user, logging in an existing user and refreshing a user's access token
- AuthenticationService() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AuthenticationService
- Authenticator - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Represents a registered authenticator for a user in a system that supports web authentication (WebAuthn).
- Authenticator(RegistrationResult, AuthenticatorAttestationResponse, User, String) - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.Authenticator
-
Constructs a new Authenticator instance based on the WebAuthn registration result and the attestation response.
- AuthenticatorRepository - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository
-
Repository interface for abstracting communication with the data layer related to the Authenticator entity used for storing biometric login credentials
B
- Badge - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Badge entity used to represent a badge that user's can get after completing a given amount of challenges
- Badge() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.Badge
- BadgeDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto
-
DTO for
Badge
- BadgeDTO(Long, String, String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.BadgeDTO
-
Creates an instance of a
BadgeDTO
record class. - BadgeMapper - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting back and forth from the Badge entity to its DTO's in addition to cascading updates from dto's onto the entity object from a DTO to the entity.
- badges() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
badges
record component. - BadInputException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation
-
Exception that is thrown for bad user input
- BadInputException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation.BadInputException
-
Constructs an instance of the exception class
- balance() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountDTO
-
Returns the value of the
balance
record component. - balance() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountUpdateDTO
-
Returns the value of the
balance
record component. - BioAuthMapper - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting BioAuthRequest credentials to a String.
- BioAuthMapper() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.BioAuthMapper
- bioAuthRegistration(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AuthenticationService
-
Initiates a new biometric authentication registration process for the specified user.
- bioAuthRegistration(UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AuthenticationController
-
Initiates the biometric authentication registration process for a user.
- BioAuthRequest - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
-
DTO for BioAuthRequest
- BioAuthRequest(String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.BioAuthRequest
-
Creates an instance of a
BioAuthRequest
record class. - ByteArrayAttributeConverter - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.util
-
Class used to save a handle in database inside user entity
- ByteArrayAttributeConverter() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.util.ByteArrayAttributeConverter
C
- Challenge - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Represents a saving challenge within the system.
- Challenge() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.Challenge
- ChallengeAlreadyCompletedException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.challenge
-
Exception thrown for when attempting to complete challenge that was already completed
- ChallengeAlreadyCompletedException(Long) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.challenge.ChallengeAlreadyCompletedException
-
Constructor for exception
- challengeConfig() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.UserConfigDTO
-
Returns the value of the
challengeConfig
record component. - ChallengeConfig - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Represents configuration preferences for challenges associated with a user within the system.
- ChallengeConfig() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.ChallengeConfig
- ChallengeConfigAlreadyExistsException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config
-
Exception thrown for when attempting to create Challenge config if user already has one
- ChallengeConfigAlreadyExistsException(Long) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config.ChallengeConfigAlreadyExistsException
-
Constructor for exception
- ChallengeConfigController - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
-
Controller used to manage endpoints related to a user's challenge configuration.
- ChallengeConfigController() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeConfigController
- ChallengeConfigDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config
-
DTO for
ChallengeConfig
- ChallengeConfigDTO(Experience, Motivation, Set<ChallengeTypeConfigDTO>) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeConfigDTO
-
Creates an instance of a
ChallengeConfigDTO
record class. - ChallengeConfigMapper - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting back and forth from DTO to entity for Challenge entity
- ChallengeConfigNotFoundException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config
-
Exception thrown for attempting to find non-existent Challenge config
- ChallengeConfigNotFoundException(Long) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config.ChallengeConfigNotFoundException
-
Constructor for exception
- ChallengeConfigValidator - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user
-
Validator for ChallengeConfigDTO's from HTTP requests
- ChallengeConfigValidator() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user.ChallengeConfigValidator
- ChallengeController - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
-
Controller for managing endpoints for saving challenges
- ChallengeController() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
- ChallengeCreateDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge
-
DTO for
Challenge
- ChallengeCreateDTO(String, BigDecimal, BigDecimal, BigDecimal, String, ZonedDateTime, String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Creates an instance of a
ChallengeCreateDTO
record class. - ChallengeDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge
-
DTO for
Challenge
- ChallengeDTO(Long, String, BigDecimal, BigDecimal, BigDecimal, BigDecimal, String, ZonedDateTime, ZonedDateTime, ZonedDateTime, String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Creates an instance of a
ChallengeDTO
record class. - ChallengeMapper - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting back and forth from a DTO to a Challenge entity.
- ChallengeNotFoundException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.challenge
-
Exception thrown for when challenge could not be found
- ChallengeNotFoundException(Long) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.challenge.ChallengeNotFoundException
-
Constructor for exception
- ChallengeRepository - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository
-
Repository interface that communicates with the data layer relating to the Challenge entity.
- ChallengeService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
-
Service class for managing challenges.
- ChallengeService() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
- ChallengeType - Enum Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums
-
Represents different types of challenges and their associated monetary values for each consumption.
- ChallengeTypeConfig - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Embedded class that represents configuration settings specific to a type of challenge within the system.
- ChallengeTypeConfig() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.ChallengeTypeConfig
- ChallengeTypeConfigDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config
-
DTO for
ChallengeTypeConfig
- ChallengeTypeConfigDTO(String, BigDecimal, BigDecimal) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeTypeConfigDTO
-
Creates an instance of a
ChallengeTypeConfigDTO
record class. - ChallengeTypeConfigMapper - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting back and forth from a DTO to a Challenge entity.
- challengeTypeConfigs() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeConfigDTO
-
Returns the value of the
challengeTypeConfigs
record component. - ChallengeUpdateDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge
-
DTO for
Challenge
- ChallengeUpdateDTO(String, BigDecimal, BigDecimal, BigDecimal, String, ZonedDateTime, String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Creates an instance of a
ChallengeUpdateDTO
record class. - ChallengeValidator - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.challenge
-
Validator class for fields in ChallengeCreateDTO
- ChallengeValidator() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.challenge.ChallengeValidator
- ChangePasswordController - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
-
Controller for managing forgotPassword endpoints
- ChangePasswordController() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChangePasswordController
- changePasswordRequest(ChangePasswordRequestRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChangePasswordController
-
Parses a request for forgot password and sends a mail with a link for resetting password.
- ChangePasswordRequest - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Represents a request to change a user's password.
- ChangePasswordRequest() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.ChangePasswordRequest
- ChangePasswordRequestRepository - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository
-
Repository interface for communicating with the data layer in relation to the ChangePasswordRequest entity.
- ChangePasswordRequestRequest - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
-
DTO for change password request
- ChangePasswordRequestRequest(String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ChangePasswordRequestRequest
-
Creates an instance of a
ChangePasswordRequestRequest
record class. - ChangePasswordRequestService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
-
Service for managing password change requests and related operations, such as sending password reset emails and updating user passwords.
- ChangePasswordRequestService() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChangePasswordRequestService
- checkConstraints(T) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.ObjectValidator
-
Checks that no field constraints are violated in the object
- CIGAR - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.ChallengeType
- CLOTHING - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.ChallengeType
- COFFEE - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.ChallengeType
- compareTo(Goal) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.Goal
-
Compares this goal with another to order goals based on their priority.
- completeChallenge(Long, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
-
Marks a challenge as completed, updates user statistics such as saved amounts and streaks, and persists these changes to the database.
- completeChallenge(Long, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Completes a user challenge
- completedOn() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
completedOn
record component. - completedOn() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
completedOn
record component. - completeGoal(Long, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
-
Completes a goal of a user, specified by its ID
- completeUserGoal(Long, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Completes a user's saving goal
- completion() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
completion
record component. - completion() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
completion
record component. - ConfigNotFoundException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config
-
Exception thrown for config not found
- ConfigNotFoundException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config.ConfigNotFoundException
-
Constructor for exception
- constructCredRequest(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AuthenticationService
-
Constructs a biometric authentication credential request for the specified username.
- convertToDatabaseColumn(ByteArray) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.util.ByteArrayAttributeConverter
-
Converts attribute to database column
- convertToEntityAttribute(byte[]) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.util.ByteArrayAttributeConverter
-
Converts database data to entity attribute
- corsConfigurer() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.CrossOriginConfig
-
Bean that configures CORS policy.
- createChallenge(ChallengeCreateDTO, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Creates a saving challenge
- createChallengeConfig(String, ChallengeConfigDTO) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserConfigService
-
Creates a challenge config for a user
- createChallengeConfig(ChallengeConfigDTO, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeConfigController
-
Creates a challenge config
- createdOn() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
createdOn
record component. - createdOn() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
createdOn
record component. - createUserAccount(AccountDTO, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AccountController
-
Registers a bank account for a user
- createUserGoal(GoalCreateDTO, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Creates a saving goal
- credential() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.BioAuthRequest
-
Returns the value of the
credential
record component. - credentialToString(BioAuthRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.BioAuthMapper
-
Maps a BioAuthRequest entity to a string
- CrossOriginConfig - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.config
-
Config class to enable CORS in requests.
- CrossOriginConfig() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.CrossOriginConfig
-
Default constructor
D
- defineOpenApi() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.OpenAPIConfiguration
-
Defines the OpenAPI bean for Swagger documentation.
- deleteByIdAndUser(Long, User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.GoalRepository
-
Transactional method used for deleting a goal of a user
- deleteChallenge(Long, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Deletes a challenge
- deleteChallenge(Long, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
-
Deletes a challenge by ID and user, ensuring it is no longer present in the database.
- deleteUserGoal(Long, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
-
Deletes a goal of a user, specified by its ID
- deleteUserGoal(Long, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Deletes a user's saving goal
- description() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.BadgeDTO
-
Returns the value of the
description
record component. - description() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Returns the value of the
description
record component. - description() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
description
record component. - description() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Returns the value of the
description
record component. - description() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
-
Returns the value of the
description
record component. - description() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
description
record component. - description() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
-
Returns the value of the
description
record component. - doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.JWTAuthorizationFilter
-
The JWT filter
- due() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Returns the value of the
due
record component. - due() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
due
record component. - due() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Returns the value of the
due
record component. - due() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
-
Returns the value of the
due
record component. - due() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
due
record component. - due() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
-
Returns the value of the
due
record component.
E
- email() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ChangePasswordRequestRequest
-
Returns the value of the
email
record component. - email() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
-
Returns the value of the
email
record component. - email() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
email
record component. - email() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Returns the value of the
email
record component. - EMAIL - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexPattern
-
Valid email must start with Norwegian letters, numbers, underscore, '+', ampersand, '*', '-' Valid email can include must include '@' Must include a period after '@' Must have letters after period of length 2-7 characters
- EmailNotFoundException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception
-
Exception thrown for attempting to find mail that does not exist
- EmailNotFoundException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.EmailNotFoundException
-
Constructor for exception
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountResponseDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountUpdateDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.BadgeDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeConfigDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeTypeConfigDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.UserConfigDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.AccessTokenResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.LoginRegisterResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.AuthenticationRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.BioAuthRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ChangePasswordRequestRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ResetPasswordRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.StreakResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Indicates whether some other object is "equal to" this one.
- experience() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeConfigDTO
-
Returns the value of the
experience
record component. - Experience - Enum Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums
-
Classifies user experience with saving to five distinct levels
- extractClaim(String, Function<Claims, T>) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.JWTService
-
Applies input function on the claims.
- extractUsername(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.JWTService
-
Extracts the subject (username) from JWT token
F
- FileSystemStorageService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
-
Service responsible for uploading and getting images for users, challenges and goals.
- FileSystemStorageService(UserService, ChallengeRepository, GoalRepository, StorageProperties) - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.FileSystemStorageService
-
Constructor for FileSystemStorageService
- findAllByCompletedOnIsNotNullAndUser(User, Pageable) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.ChallengeRepository
-
Finds a page of completed saving challenges of a user (completion date is set, therefore not "null")
- findAllByCompletedOnIsNotNullAndUser(User, Pageable) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.GoalRepository
-
Finds a page of saving goals of a user that are complete/inactive (completedOn is not null)
- findAllByCompletedOnIsNullAndUser(User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.ChallengeRepository
-
Finds a list of active saving challenges of a user (completion date is not set, therefore "null")
- findAllByCompletedOnIsNullAndUser(User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.GoalRepository
-
Finds all saving goals of a user that are active (completedOn is null)
- findAllByCompletedOnIsNullAndUser(User, Pageable) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.ChallengeRepository
-
Finds a page of active saving challenges of a user (completion date is not set, therefore "null")
- findAllByCompletedOnIsNullAndUserOrderByPriorityAsc(User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.GoalRepository
-
Finds all saving goals of a user that are active (completedOn is null), sorted by priority, from lowest value (high priority) to highest (low priority)
- findAllByCredentialId(ByteArray) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.AuthenticatorRepository
-
Finds a list of biometric entries using their credential id's
- findAllByUser(User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.AuthenticatorRepository
-
Finds all biometric entries for a user
- findAllByUser(User, Pageable) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.GoalRepository
-
Finds a page of all saving goal entities of a user
- findByCredentialId(ByteArray) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.AuthenticatorRepository
-
Finds an Authenticator object using its credential id, if it exists
- findByEmail(String) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.UserRepository
-
Finds a user from a given email
- findByHandle(ByteArray) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.UserRepository
-
Finds a user based on their handle, which acts as a unique identifier for the user
- findByIdAndUser(Long, User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.ChallengeRepository
-
Gets an Optional object, wrapped around either a saving challenge of a user, if it exists, or nothing.
- findByIdAndUser(Long, User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.GoalRepository
-
Finds the goal of a user specified by its id, wrapped by an Optional object.
- findByUser(User, Pageable) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.ChallengeRepository
-
Gets a page of saving challenges of a user.
- findByUsername(String) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.UserRepository
-
Finds a user from a given username
- findChangePasswordRequestByUserID(Long) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.ChangePasswordRequestRepository
-
Finds a change password request based on its user ID
- findFile(String, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Gets the image of a challenge
- findFile(String, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Gets the image of a goal
- findFile(UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.UserController
-
Uploads the profile picture of a user
- findIdByUserId(Long) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.ChangePasswordRequestRepository
-
Finds the ID of a change password request using the object's user IDc:w
- findUserAccounts(User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AccountService
-
Retrieves the saving and spending accounts associated with the specified user.
- findUserByEmail(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserService
-
Find user by their email
- findUserByUsername(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserService
-
Finds a user from a given username.
- findUserByUsernameToDTO(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserService
-
Finds user by their username
- findUserGoal(Long, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
-
Finds a user's saving goal specified by its ID
- finishBioAuthLogin(String, BioAuthRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AuthenticationService
-
Finishes the biometric authentication login process.
- finishBioAuthRegistration(String, BioAuthRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AuthenticationService
-
Finishes the biometric authentication registration process.
- finishLogin(String, BioAuthRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AuthenticationController
-
Completes the biometric authentication login process for a user.
- finishRegistration(BioAuthRequest, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AuthenticationController
-
Completes the passkey authentication registration process for a user.
- firstDue() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.StreakResponse
-
Returns the value of the
firstDue
record component. - firstName() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
-
Returns the value of the
firstName
record component. - firstName() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
firstName
record component. - firstName() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Returns the value of the
firstName
record component.
G
- generalAmount() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeTypeConfigDTO
-
Returns the value of the
generalAmount
record component. - generateChallenges(UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Generates a list of challenges based on user's config
- generateRandom(int) - Static method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.util.ApplicationUtil
-
Generates random byte array.
- generateToken(Map<String, Object>, UserDetails, long) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.JWTService
-
Generates JWT token
- generateToken(UserDetails, long) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.JWTService
-
Wrapper method for generating JWT token
- getActiveChallenges(User, Pageable) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
-
Retrieves all active (not completed) challenges for a specific user and paginates the results.
- getActiveChallenges(Pageable, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Gets a page of a user's active challenges
- getActiveGoals(UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Gets a list of active user goals.
- getActiveUserGoals(User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
-
Gets a list of active user goals
- getAuthorities() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.User
-
Gets authorities.
- getChallenge(Long, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
-
Retrieves a specific challenge by ID and user.
- getChallengeConfig(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserConfigService
-
Gets the challenge config of a user
- getChallengeConfig(UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeConfigController
-
Gets a user's challenge config
- getChallengesByUser(User, Pageable) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
-
Retrieves all challenges associated with a specific user and paginates the results.
- getCompletedChallenges(User, Pageable) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
-
Retrieves all completed challenges for a specific user and paginates the results.
- getCompletedChallenges(Pageable, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Gets a list of completed challenges
- getCompletedGoals(Pageable, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Gets a page of a user's completed saving goals
- getCompletedUserGoals(User, Pageable) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
-
Gets a page of completed user goals
- getCredentialIdsForUsername(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.RegistrationService
-
Gets all associated credential id's for a user, using their username
- getGeneratedChallenges(User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
-
Gets list of generated challenges
- getImage(String, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.FileSystemStorageService
-
Gets an image for a user, challenge or goal.
- getStreak(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserService
-
Gets the streak of a user, identified by their username
- getStreak(UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.UserController
-
Gets the streak of a user
- getType(String) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeMapper
-
Formats type of challenge to capitalized first letter
- getType(String) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeTypeConfigMapper
-
Formats the type to capitalized first letter only
- getUser(UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.UserController
-
Gets a users profile
- getUserAccount(UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AccountController
-
Gets a user's account
- getUserChallenge(UserDetails, Long) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Gets a specific user challenge
- getUserChallenges(Pageable, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Gets a page of a user's saving challenges
- getUserConfig(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserConfigService
-
Gets the config of a user
- getUserConfig(UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.UserConfigController
-
Gets a user's configuration
- getUserGoal(Long, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Get specific user's saving goal
- getUserGoals(User, Pageable) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
-
Gets a page of a user's saving goals
- getUserGoals(Pageable, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Gets a page of a user's saving goals
- getUserHandleForUsername(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.RegistrationService
-
Gets the handle of a user, based on the user's username
- getUsernameForUserHandle(ByteArray) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.RegistrationService
-
Gets the username of a User based on their handle
- GlobalExceptionHandler - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception
-
Global exception handler to handle different types of exceptions across the application.
- GlobalExceptionHandler() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.GlobalExceptionHandler
-
Default constructor
- Goal - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Represents a financial goal set by a user.
- Goal() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.Goal
- GoalController - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
-
Handles all requests directed to goal endpoints.
- GoalController() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
- GoalCreateDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal
-
DTO for
Goal
- GoalCreateDTO(String, BigDecimal, BigDecimal, String, ZonedDateTime) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
-
Creates an instance of a
GoalCreateDTO
record class. - GoalMapper - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting back and forth from a DTO to a Goal entity.
- GoalNotFoundException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal
-
Exception for goal not found
- GoalNotFoundException(Long) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal.GoalNotFoundException
-
Constructor for exception
- GoalRepository - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository
-
Repository interface responsible for communicating with the data layer in relation to the Goal entity.
- GoalResponseDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal
-
DTO for
Goal
- GoalResponseDTO(Long, String, BigDecimal, BigDecimal, BigDecimal, String, Long, ZonedDateTime, ZonedDateTime, ZonedDateTime) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Creates an instance of a
GoalResponseDTO
record class. - GoalService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
-
Service class for handling business logic related to Goal entity and DTO's
- GoalService() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
- GoalUpdateDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal
-
DTO for
Goal
- GoalUpdateDTO(String, BigDecimal, BigDecimal, String, ZonedDateTime) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
-
Creates an instance of a
GoalUpdateDTO
record class. - GoalValidator - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.goal
-
Validator class for fields in GoalCreateDTO
- GoalValidator() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.goal.GoalValidator
H
- handleBadCredentialsException(Exception) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.GlobalExceptionHandler
-
Exception handler method for BadCredentialsException
- handleBadInputException(Exception) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.GlobalExceptionHandler
-
Handle exceptions related to bad input or invalid requests.
- handleConstraintViolationException(ConstraintViolationException) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.GlobalExceptionHandler
-
Handle exceptions related to constraint violations in validation.
- handleFileUpload(String, MultipartFile, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Uploads a file to be used for a challenge
- handleFileUpload(String, MultipartFile, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Uploads an mage of a goal
- handleFileUpload(UserDetails, MultipartFile) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.UserController
-
Gets the profile picture of a user
- handleObjectAlreadyExistException(Exception) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.GlobalExceptionHandler
-
Handle exceptions related to existing objects.
- handleObjectDoesNotExistException(Exception) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.GlobalExceptionHandler
-
Handle exceptions related to non-existing objects.
- handleValidationException(ObjectNotValidException) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.GlobalExceptionHandler
-
Handle exception for invalid objects
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountResponseDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountUpdateDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.BadgeDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeConfigDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeTypeConfigDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.UserConfigDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.AccessTokenResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.LoginRegisterResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.AuthenticationRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.BioAuthRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ChangePasswordRequestRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ResetPasswordRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.StreakResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Returns a hash code value for this object.
- hasPasskey() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
hasPasskey
record component. - HIGH - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Experience
-
More than average experience
- HIGH - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Motivation
-
High motivation
I
- id() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.BadgeDTO
-
Returns the value of the
id
record component. - id() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
id
record component. - id() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
id
record component. - id() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
id
record component. - INSTANCE - Static variable in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.AccountMapper
-
Implementation instance of the mapper
- INSTANCE - Static variable in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.BadgeMapper
-
Implementation instance of the interface
- INSTANCE - Static variable in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeConfigMapper
-
Implementation instance of the mapper
- INSTANCE - Static variable in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeMapper
-
Implementation instance of the mapper
- INSTANCE - Static variable in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeTypeConfigMapper
-
Implementation instance of the mapper
- INSTANCE - Static variable in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.GoalMapper
-
Implementation instance of the mapper
- INSTANCE - Static variable in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.RegisterMapper
-
Implementation instance of the mapper
- INSTANCE - Static variable in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.UserConfigMapper
-
Implementation instance of the mapper
- INSTANCE - Static variable in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.UserMapper
-
Implementation instance of the mapper
- InvalidTokenException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception
- InvalidTokenException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.InvalidTokenException
- isAccountNonExpired() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.User
- isAccountNonLocked() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.User
- isCredentialsNonExpired() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.User
- isEmailValid(String) - Static method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexValidator
-
Checks if email is invalid.
- isEnabled() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.User
- isLessThan24HoursAgo(LocalDateTime) - Static method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChangePasswordRequestService
-
Checked if the given LocalDateTime is less than 24 hours ago.
- isNameValid(String) - Static method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexValidator
-
Checks if name is valid
- isPasswordStrong(String) - Static method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexValidator
-
Checks if a password meets the strength criteria.
- isTokenValid(String, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.JWTService
-
Checks if username in token checks out with the current user and that the token is not expired
- isUsernameValid(String) - Static method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexValidator
-
Checks if username is valid.
J
- JWTAuthorizationFilter - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.security
-
Filter chain for JWT token that is executed for every request
- JWTAuthorizationFilter() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.JWTAuthorizationFilter
- JWTService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.security
-
Serviced responsible for business logic related to JWT tokens
- JWTService() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.JWTService
-
Constructs an instance of the class that creates the key for signing tokens
L
- lastName() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
-
Returns the value of the
lastName
record component. - lastName() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
lastName
record component. - lastName() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Returns the value of the
lastName
record component. - login(AuthenticationRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AuthenticationController
-
Log in an existing user with username and password
- login(AuthenticationRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AuthenticationService
-
Log in user with credentials (username and password)
- LoginRegisterResponse - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token
-
DTO used returning JWT tokens upon successful login and register
- LoginRegisterResponse(String, String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.LoginRegisterResponse
-
Creates an instance of a
LoginRegisterResponse
record class. - lookup(ByteArray, ByteArray) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.RegistrationService
-
Looks up biometric registration credentials using the credential ID
- lookupAll(ByteArray) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.RegistrationService
-
Gets a set of Registered credentials using credential Id
- LOW - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Experience
-
Less than average experience
- LOW - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Motivation
-
Low motivation
M
- main(String[]) - Static method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.SpareStiBackendApplication
-
Main method that boots application
- MEDIUM - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Experience
-
Average experience
- MEDIUM - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Motivation
-
Average motivation
- motivation() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeConfigDTO
-
Returns the value of the
motivation
record component. - Motivation - Enum Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums
-
Classifies a user's motivation to save into 5 distinct levels
N
- NAME - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexPattern
-
A valid contains can only contain Norwegian letters, white space, comma, period, singe quotes and hyphens The name must have at least 1 character and at max 30 characters
- newPassword() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ResetPasswordRequest
-
Returns the value of the
newPassword
record component. - NotActiveGoalException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal
-
Exception for goal that is not active
- NotActiveGoalException(Long) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal.NotActiveGoalException
-
Constructor for exception
O
- ObjectNotValidException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation
-
Exception for goal invalid object
- ObjectNotValidException() - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation.ObjectNotValidException
- ObjectValidator<T> - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation
-
Validator class for DTO objects received from HTTP-requests Its generic type allows flexibility across DTO's
- ObjectValidator() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.ObjectValidator
- ONE_HUNDRED - Static variable in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.util.ApplicationUtil
-
Static variable for one hundred
- OpenAPIConfiguration - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.config
-
Configuration class for defining OpenAPI documentation settings.
- OpenAPIConfiguration() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.OpenAPIConfiguration
-
Default constructor
- org.ntnu.idi.idatt2106.sparesti.sparestibackend - package org.ntnu.idi.idatt2106.sparesti.sparestibackend
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.config - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.config
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.account - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.account
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.challenge - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.challenge
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.user - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.user
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.model - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.security - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.security
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.service - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.startup - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.startup
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.util - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.util
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.challenge - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.challenge
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.goal - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.goal
- org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user - package org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user
P
- password() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.AuthenticationRequest
-
Returns the value of the
password
record component. - password() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
-
Returns the value of the
password
record component. - password() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Returns the value of the
password
record component. - PASSWORD - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexPattern
-
Valid password contains at least 8 characters and at max 30 characters, including numbers, Norwegian letters and at least 1 special character
- passwordEncoder() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.ApplicationConfig
-
Returns bean for BCryptPasswordEncoder that hashes and salts password
- percent(BigDecimal, BigDecimal) - Static method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.util.ApplicationUtil
-
Calculates percentage given two input numbers
- perPurchase() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Returns the value of the
perPurchase
record component. - perPurchase() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
perPurchase
record component. - perPurchase() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Returns the value of the
perPurchase
record component. - priority() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
priority
record component.
R
- refreshAccessToken(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AuthenticationService
-
Refreshes access token given a valid refresh token
- refreshToken() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.LoginRegisterResponse
-
Returns the value of the
refreshToken
record component. - RegexPattern - Enum Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation
-
Class to represent the different regexes that are used to validate input fields.
- RegexValidator - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation
-
Validator class for regexes
- RegexValidator() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexValidator
- register(RegisterRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AuthenticationController
-
Registers a new user with a given username, password, email, first name and last name
- register(RegisterRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AuthenticationService
-
Registers a new, valid user.
- RegisterMapper - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting between a User entity and register/login DTO's
- RegisterRequest - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
-
DTO used when registering a new user
- RegisterRequest(String, String, String, String, String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
-
Creates an instance of a
RegisterRequest
record class. - RegistrationService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
-
Service class for handling business logic related to biometric registration and login
- RegistrationService() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.RegistrationService
- relyingParty(RegistrationService, WebAuthConfig) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.ApplicationConfig
-
Bena for relying part
- removeAllByUser(User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository.AuthenticatorRepository
-
Transactional statement used when removing all biometric entries of a user.
- renewAccessToken(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AuthenticationController
-
Refreshes the access token using a valid refresh token.
- resetID() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ResetPasswordRequest
-
Returns the value of the
resetID
record component. - resetPassword(ResetPasswordRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChangePasswordController
-
Resets a user's password
- resetPassword(ResetPasswordRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChangePasswordRequestService
-
Resets the user's password if the reset request is valid, the user exists, and the request was made within 24 hours of the change request.
- ResetPasswordRequest - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
-
DTO for resetting password
- ResetPasswordRequest(String, Long, String) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ResetPasswordRequest
-
Creates an instance of a
ResetPasswordRequest
record class. - role() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.UserConfigDTO
-
Returns the value of the
role
record component. - Role - Enum Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums
-
Granted role for authenticated user
- ROUNDING_MODE - Static variable in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.util.ApplicationUtil
-
Static variable for rounding mode up
- run(String...) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.startup.AppStartup
-
Runs on application startup.
S
- save(String, String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChangePasswordRequestService
-
Saves a password reset request in the database.
- save(ChallengeCreateDTO, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
-
Creates and persists a new challenge based on provided DTO and user details.
- save(GoalCreateDTO, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
-
Saves a goal entity.
- save(User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserService
-
Persists a user entity
- save(MultipartFile, String, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.FileSystemStorageService
-
Save a valid image for a user, challenge or goal depending on the filename.
- saveAccount(AccountDTO, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AccountService
-
Saves a new account based on the provided DTO and associates it with the given user.
- saved() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Returns the value of the
saved
record component. - saved() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
saved
record component. - saved() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Returns the value of the
saved
record component. - saved() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
-
Returns the value of the
saved
record component. - saved() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
saved
record component. - saved() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
-
Returns the value of the
saved
record component. - savedAmount() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
savedAmount
record component. - SAVING - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.AccountType
-
Saving account
- savingAccount() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountResponseDTO
-
Returns the value of the
savingAccount
record component. - savingAccount() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
savingAccount
record component. - savingAccount() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Returns the value of the
savingAccount
record component. - SecurityConfiguration - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.security
-
Configuration class for security settings.
- SecurityConfiguration() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.SecurityConfiguration
- securityFilterChain(HttpSecurity) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.security.SecurityConfiguration
-
Configures security filter chain.
- sendForgotPasswordEmail(ChangePasswordRequestRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChangePasswordRequestService
-
Sends a password reset email to the user if the email provided is valid and exists in the system.
- SNACKS - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.ChallengeType
- SNUFF - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.ChallengeType
- SpareStiBackendApplication - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend
-
Main class that boots the application
- SpareStiBackendApplication() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.SpareStiBackendApplication
- specificAmount() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeTypeConfigDTO
-
Returns the value of the
specificAmount
record component. - SPENDING - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.AccountType
-
Spending account
- spendingAccount() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountResponseDTO
-
Returns the value of the
spendingAccount
record component. - spendingAccount() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
spendingAccount
record component. - spendingAccount() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Returns the value of the
spendingAccount
record component. - startBioLogin(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AuthenticationController
-
Initiates the biometric authentication login process for a user.
- StorageException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage
-
Exception thrown in relation to uploading and getting files
- StorageException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage.StorageException
-
Constructor for exception
- StorageException(String, Throwable) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage.StorageException
-
Constructor for exception with throwable cause
- StorageFileNotFoundException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage
-
Exception thrown in relation to files uploads when they are not found
- StorageFileNotFoundException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage.StorageFileNotFoundException
-
Constructor for exception
- StorageProperties - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.util
-
Class containing the location of the folder for storing uploaded files.
- StorageProperties() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.util.StorageProperties
- streak() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.StreakResponse
-
Returns the value of the
streak
record component. - StreakResponse - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
-
DTO for
User
- StreakResponse(ZonedDateTime, Long, ZonedDateTime) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.StreakResponse
-
Creates an instance of a
StreakResponse
record class. - streakStart() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.StreakResponse
-
Returns the value of the
streakStart
record component.
T
- target() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Returns the value of the
target
record component. - target() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
target
record component. - target() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Returns the value of the
target
record component. - target() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
-
Returns the value of the
target
record component. - target() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
target
record component. - target() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
-
Returns the value of the
target
record component. - title() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.BadgeDTO
-
Returns the value of the
title
record component. - title() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Returns the value of the
title
record component. - title() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
title
record component. - title() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Returns the value of the
title
record component. - title() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
-
Returns the value of the
title
record component. - title() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns the value of the
title
record component. - title() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
-
Returns the value of the
title
record component. - toDTO(Account) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.AccountMapper
-
Converts to dto from entity for account
- toDTO(Badge) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.BadgeMapper
-
Converts badge entity to a dto
- toDTO(Challenge) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeMapper
-
Converts from Challenge entity to DTO.
- toDTO(ChallengeConfig) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeConfigMapper
-
Converts to DTO from ChallengeConfig entity to dto
- toDTO(ChallengeTypeConfig) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeTypeConfigMapper
-
Maps to DTO from ChallengeTypeConfig entity
- toDTO(Goal) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.GoalMapper
-
Maps Goal entity to DTO
- toDTO(User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.UserMapper
-
Maps from User entity to DTO
- toDTO(UserConfig) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.UserConfigMapper
-
Maps to DTO from userConfig entity
- toDTO(User, String, String) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.RegisterMapper
-
Maps User entity to DTO
- toEntity(AccountDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.AccountMapper
-
Converts from dto to entity for account
- toEntity(ChallengeCreateDTO, User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeMapper
-
Converts from challenge DTO to entity.
- toEntity(ChallengeConfigDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeConfigMapper
-
Converts a ChallengeConfigDTO to an entity
- toEntity(ChallengeTypeConfigDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeTypeConfigMapper
-
Converts ChallengeTypeConfigDTO to entity
- toEntity(UserConfigDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.UserConfigMapper
-
Maps to entity from UserConfig DTO
- toEntity(GoalCreateDTO, User) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.GoalMapper
-
Maps DTO to Goal entity
- toEntity(RegisterRequest, Role, String) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.RegisterMapper
-
Maps User register DTO to entity
- toStreakResponse(User, ZonedDateTime) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.UserMapper
-
Maps from User to Streak DTO
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountResponseDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountUpdateDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.BadgeDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeConfigDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeTypeConfigDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.UserConfigDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.AccessTokenResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.LoginRegisterResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.AuthenticationRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.BioAuthRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ChangePasswordRequestRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ResetPasswordRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.StreakResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Returns a string representation of this record class.
- TRANSPORTATION - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.ChallengeType
- type() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
-
Returns the value of the
type
record component. - type() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
-
Returns the value of the
type
record component. - type() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
-
Returns the value of the
type
record component. - type() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeTypeConfigDTO
-
Returns the value of the
type
record component.
U
- update(Long, GoalUpdateDTO, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
-
Updates a goal of a user, specified by its ID
- updateAccount(AccountUpdateDTO, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.AccountService
-
Updates an existing account of the specified user based on the provided update DTO.
- updateChallenge(Long, ChallengeUpdateDTO, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.ChallengeService
-
Updates an existing challenge with new data from a provided DTO if the challenge has not been completed.
- updateChallenge(Long, ChallengeUpdateDTO, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeController
-
Updates a challenge
- updateChallengeConfig(String, ChallengeConfigDTO) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserConfigService
-
Method will reset all challenge type configs.
- updateChallengeConfig(ChallengeConfigDTO, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.ChallengeConfigController
-
Updates a user's challenge config
- updateEntity(Account, AccountUpdateDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.AccountMapper
-
Updates account entity using a dto.
- updateEntity(ChallengeConfig, ChallengeConfigDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeConfigMapper
-
Cascades changes from a ChallengeConfigDTO to target entity.
- updateEntity(Challenge, ChallengeUpdateDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeMapper
-
Updates a challenge entity using dto.
- updateEntity(ChallengeTypeConfig, ChallengeTypeConfigDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeTypeConfigMapper
-
Updates entity based on DTO
- updateEntity(Goal, GoalUpdateDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.GoalMapper
-
Updates Goal entity based on DTO
- updateEntity(User, UserUpdateDTO, String) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.UserMapper
-
Updates User entity from DTO
- updatePassword(Long, String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserService
-
Updates a user's password
- updatePriorities(List<Long>, User) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.GoalService
-
Updates the priority ordering of the list of active saving goals of a user
- updatePriorities(List<Long>, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Updates goal priority order
- updateType(Challenge, ChallengeUpdateDTO) - Method in interface org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper.ChallengeMapper
-
Sets the type of challenge to null if DTO type is null
- updateUser(String, UserUpdateDTO) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserService
-
Updates a user specified by their username
- updateUser(UserDetails, UserUpdateDTO) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.UserController
-
Updates a user profile
- updateUserAccount(AccountUpdateDTO, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.AccountController
-
Updates a user's account
- updateUserGoal(Long, GoalUpdateDTO, UserDetails) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.GoalController
-
Updates a user's saving goal
- User - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Represents a user of the system, encapsulating all personal and authentication details.
- User() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.User
- USER - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Role
-
Regular user
- UserAlreadyExistsException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.user
-
Exception that is thrown when creating a user that already exists
- UserAlreadyExistsException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.user.UserAlreadyExistsException
-
Constructs an instance of the exception class
- UserConfig - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Represents embedded configuration details for a user.
- UserConfig() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.UserConfig
- UserConfigController - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
-
Controller for managing endpoints of a user's configuration
- UserConfigController() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.UserConfigController
- UserConfigDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config
-
DTO for
UserConfig
- UserConfigDTO(Role, ChallengeConfigDTO) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.UserConfigDTO
-
Creates an instance of a
UserConfigDTO
record class. - UserConfigMapper - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting back and forth from a DTO to a UserConfig entity.
- UserConfigService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
-
Service class for handling business logic related to Userconfig entity and DTO's
- UserConfigService() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserConfigService
- UserController - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
-
Controller for managing endpoints for a user's profile
- UserController() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller.UserController
- userDetailsService() - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.ApplicationConfig
-
Creates a bean representing user info
- userExistByEmail(String) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserService
-
Determines whether a user with the given email exists
- userID() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ResetPasswordRequest
-
Returns the value of the
userID
record component. - UserMapper - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
-
Mapper interface for converting back and forth from a DTO to a User entity.
- username() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.AuthenticationRequest
-
Returns the value of the
username
record component. - username() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
-
Returns the value of the
username
record component. - username() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Returns the value of the
username
record component. - username() - Method in record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Returns the value of the
username
record component. - USERNAME - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexPattern
-
Valid username starts with a letter.
- UserNotFoundException - Exception Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.user
-
Exception thrown for finding non-existent user
- UserNotFoundException(String) - Constructor for exception class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.user.UserNotFoundException
-
Constructor for exception
- UserRepository - Interface in org.ntnu.idi.idatt2106.sparesti.sparestibackend.repository
-
Repository interface for communicating with the data layer related to the user entity
- UserResponse - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
-
DTO for
User
- UserResponse(Long, String, String, String, String, AccountDTO, AccountDTO, BigDecimal, Set<BadgeDTO>, Boolean) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
-
Creates an instance of a
UserResponse
record class. - UserService - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
-
Handles business logic related to the user entity.
- UserService() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.service.UserService
- UserUpdateDTO - Record Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
-
DTO for
User
- UserUpdateDTO(String, String, String, String, String, AccountUpdateDTO, AccountUpdateDTO) - Constructor for record class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
-
Creates an instance of a
UserUpdateDTO
record class. - UserValidator<T> - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user
-
Validates DTO's used for registering and editing a User entity
- UserValidator() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user.UserValidator
V
- validate(ChallengeCreateDTO) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.challenge.ChallengeValidator
-
Validation method for dto field constraints.
- validate(ChallengeConfigDTO) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user.ChallengeConfigValidator
-
Checks field constraints and validates that specific amount is not greater than general amount and that there are no duplicate types.
- validate(GoalCreateDTO) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.goal.GoalValidator
-
Validation method for dto field constraints.
- validate(T) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.ObjectValidator
-
Validates the object
- validate(T) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user.UserValidator
-
Overrides inherited method by adding extra validation check for each field
- validateGoalIds(List<Long>, List<Long>) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.goal.GoalValidator
-
Validates that list of goal Id's for priority sorting match the active goal Id's
- validateRegisterRequestDTO(RegisterRequest) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user.UserValidator
-
Validates DTO fields used for creating new user
- validateUserUpdateDTO(UserUpdateDTO) - Method in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user.UserValidator
-
Validates dto used for updating User entity
- validator - Variable in class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.ObjectValidator
-
Validator object used for validation
- valueOf(String) - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.AccountType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.ChallengeType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Experience
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Motivation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Role
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexPattern
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.AccountType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.ChallengeType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Experience
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Motivation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Role
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.RegexPattern
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VERY_HIGH - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Experience
-
A lot of experience
- VERY_HIGH - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Motivation
-
Very high motivation
- VERY_LOW - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Experience
-
Very little experience
- VERY_LOW - Enum constant in enum class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.enums.Motivation
-
Very low motivation
W
- WebAuthConfig - Class in org.ntnu.idi.idatt2106.sparesti.sparestibackend.config
-
Configures web auth
- WebAuthConfig() - Constructor for class org.ntnu.idi.idatt2106.sparesti.sparestibackend.config.WebAuthConfig
-
Default constructor
All Classes and Interfaces|All Packages|Serialized Form