Serialized Form
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.BadgeDTO
class BadgeDTO extends Record implements Serializable
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountDTO
class AccountDTO extends Record implements Serializable-
Serialized Fields
-
accNumber
@NotNull(message="Account number cannot be null") @PositiveOrZero(message="Account number must be positive or zero") Long accNumber
The field for theaccNumber
record component. -
accountType
@NotNull(message="Account type cannot be null") AccountType accountType
The field for theaccountType
record component. -
balance
@NotNull(message="Balance cannot be null") @PositiveOrZero(message="Balance must be positive or zero") BigDecimal balance
The field for thebalance
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountResponseDTO
class AccountResponseDTO extends Record implements Serializable-
Serialized Fields
-
savingAccount
@NotNull Account savingAccount
The field for thesavingAccount
record component. -
spendingAccount
@NotNull Account spendingAccount
The field for thespendingAccount
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.account.AccountUpdateDTO
class AccountUpdateDTO extends Record implements Serializable-
Serialized Fields
-
accNumber
@PositiveOrZero(message="Account number must be positive or zero") Long accNumber
The field for theaccNumber
record component. -
accountType
@NotNull(message="Account type cannot be null") AccountType accountType
The field for theaccountType
record component. -
balance
@PositiveOrZero(message="Balance must be positive or zero") BigDecimal balance
The field for thebalance
record component.
-
-
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeCreateDTO
class ChallengeCreateDTO extends Record implements Serializable-
Serialized Fields
-
description
@Size(max=280,message="Description can at most have 280 characters") String description
The field for thedescription
record component. -
due
@Future(message="Due date must be in the future") ZonedDateTime due
The field for thedue
record component. -
perPurchase
@NotNull(message="Per purchase amount cannot be null") @Positive(message="Per purchase amount cannot be less than or equal to zero") BigDecimal perPurchase
The field for theperPurchase
record component. -
saved
@NotNull(message="Saved amount cannot be null") @PositiveOrZero(message="Saved amount cannot be negative") BigDecimal saved
The field for thesaved
record component. -
target
@NotNull(message="Target amount cannot be null") @Positive(message="Target amount cannot be less than or equal to zero") BigDecimal target
The field for thetarget
record component. -
title
@NotBlank(message="Title cannot be blank") @Size(max=20,message="Title can max have 20 characters") String title
The field for thetitle
record component. -
type
@Size(max=20,message="Type can have minimum 2 characters and max 20 characters") String type
The field for thetype
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeDTO
class ChallengeDTO extends Record implements Serializable-
Serialized Fields
-
completedOn
ZonedDateTime completedOn
The field for thecompletedOn
record component. -
completion
@NotNull(message="Completion amount cannot be null") @PositiveOrZero(message="Completion amount cannot be negative") BigDecimal completion
The field for thecompletion
record component. -
createdOn
@Past(message="Created date must be in the past") ZonedDateTime createdOn
The field for thecreatedOn
record component. -
description
@NotNull(message="Description cannot be null") @NotBlank(message="Description cannot be blank") String description
The field for thedescription
record component. -
due
@Future(message="Due date must be in the future") ZonedDateTime due
The field for thedue
record component. -
id
@NotNull(message="ID cannot be null") Long id
The field for theid
record component. -
perPurchase
@NotNull(message="Per purchase amount cannot be null") @Positive(message="Per purchase amount cannot be less than or equal to zero") BigDecimal perPurchase
The field for theperPurchase
record component. -
saved
@NotNull(message="Saved amount cannot be null") @PositiveOrZero(message="Saved amount cannot be negative") BigDecimal saved
The field for thesaved
record component. -
target
@NotNull(message="Target amount cannot be null") @PositiveOrZero(message="Target amount cannot be negative") BigDecimal target
The field for thetarget
record component. -
title
@NotNull(message="Title cannot be null") @NotBlank(message="Title cannot be blank") String title
The field for thetitle
record component. -
type
@NotNull(message="Type cannot be null") String type
The field for thetype
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.challenge.ChallengeUpdateDTO
class ChallengeUpdateDTO extends Record implements Serializable-
Serialized Fields
-
description
@Size(max=280,message="Description can at most have 280 characters") String description
The field for thedescription
record component. -
due
@Future(message="Due date must be in the future") ZonedDateTime due
The field for thedue
record component. -
perPurchase
@NotNull(message="Per purchase amount cannot be null") @Positive(message="Per purchase amount cannot be less than or equal to zero") BigDecimal perPurchase
The field for theperPurchase
record component. -
saved
@NotNull(message="Saved amount cannot be null") @PositiveOrZero(message="Saved amount cannot be negative") BigDecimal saved
The field for thesaved
record component. -
target
@NotNull(message="Target amount cannot be null") @Positive(message="Target amount cannot be less than or equal to zero") BigDecimal target
The field for thetarget
record component. -
title
@NotBlank(message="Title cannot be blank") @Size(max=20,message="Title can max have 20 characters") String title
The field for thetitle
record component. -
type
String type
The field for thetype
record component.
-
-
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeConfigDTO
class ChallengeConfigDTO extends Record implements Serializable-
Serialized Fields
-
challengeTypeConfigs
@NotNull(message="Challenge type configurations cannot be null") @Size(min=1,message="At least one challenge type configuration is required") Set<ChallengeTypeConfigDTO> challengeTypeConfigs
The field for thechallengeTypeConfigs
record component. -
experience
@NotNull(message="Experience cannot be null") Experience experience
The field for theexperience
record component. -
motivation
@NotNull(message="Motivation cannot be null") Motivation motivation
The field for themotivation
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeTypeConfigDTO
class ChallengeTypeConfigDTO extends Record implements Serializable-
Serialized Fields
-
generalAmount
@NotNull(message="General amount cannot be null") @Positive(message="General amount must be positive") BigDecimal generalAmount
The field for thegeneralAmount
record component. -
specificAmount
@NotNull(message="Specific amount cannot be null") @Positive(message="Specific amount must be positive") BigDecimal specificAmount
The field for thespecificAmount
record component. -
type
@Size(max=20,message="Type can have max 20 characters") @NotNull(message="Challenge type cannot be null") String type
The field for thetype
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.UserConfigDTO
class UserConfigDTO extends Record implements Serializable-
Serialized Fields
-
challengeConfig
@NotNull(message="Challenge config cannot be null") ChallengeConfigDTO challengeConfig
The field for thechallengeConfig
record component. -
role
@NotNull(message="Role cannot be null") Role role
The field for therole
record component.
-
-
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalCreateDTO
class GoalCreateDTO extends Record implements Serializable-
Serialized Fields
-
description
@Size(max=280,message="Description can max be 280 characters") String description
The field for thedescription
record component. -
due
@NotNull(message="Due date cannot be null") @Future(message="Due date cannot be in the past or now") ZonedDateTime due
The field for thedue
record component. -
saved
@NotNull(message="Saved amount cannot be null") @PositiveOrZero(message="Saved amount cannot be negative") BigDecimal saved
The field for thesaved
record component. -
target
@NotNull(message="Target amount cannot be null") @Positive(message="Target amount cannot be less than or equal to zero") BigDecimal target
The field for thetarget
record component. -
title
@NotEmpty(message="Title cannot be empty") @NotBlank(message="Title cannot be blank") @Size(max=20,message="Title can max be 20 characters") String title
The field for thetitle
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalResponseDTO
class GoalResponseDTO extends Record implements Serializable-
Serialized Fields
-
completedOn
@Future(message="Completed date must be in the future") ZonedDateTime completedOn
The field for thecompletedOn
record component. -
completion
@NotNull(message="Completion amount cannot be null") @PositiveOrZero(message="Completion amount cannot be negative") BigDecimal completion
The field for thecompletion
record component. -
createdOn
@Past(message="Created date must be in the past") ZonedDateTime createdOn
The field for thecreatedOn
record component. -
description
@NotNull(message="Description cannot be null") @NotEmpty(message="Description cannot be empty") @NotBlank(message="Description cannot be blank") String description
The field for thedescription
record component. -
due
@Future(message="Due date must be in the future") ZonedDateTime due
The field for thedue
record component. -
id
@NotNull(message="ID cannot be null") Long id
The field for theid
record component. -
priority
@NotNull(message="Priority cannot be null") @PositiveOrZero(message="Priority cannot be negative") Long priority
The field for thepriority
record component. -
saved
@NotNull(message="Saved amount cannot be null") @PositiveOrZero(message="Saved amount cannot be negative") BigDecimal saved
The field for thesaved
record component. -
target
@NotNull(message="Target amount cannot be null") @Positive(message="Target amount cannot be less than or equal to zero") BigDecimal target
The field for thetarget
record component. -
title
@NotNull(message="Title cannot be null") @NotEmpty(message="Title cannot be empty") @NotBlank(message="Title cannot be blank") String title
The field for thetitle
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.goal.GoalUpdateDTO
class GoalUpdateDTO extends Record implements Serializable-
Serialized Fields
-
description
@Size(max=280,message="Description can max be 280 characters") String description
The field for thedescription
record component. -
due
@Future(message="Due date cannot be in the past or now") ZonedDateTime due
The field for thedue
record component. -
saved
@PositiveOrZero(message="Saved amount cannot be negative") BigDecimal saved
The field for thesaved
record component. -
target
@Positive(message="Target amount cannot be less than or equal to zero") BigDecimal target
The field for thetarget
record component. -
title
@NotBlank(message="Title cannot be blank") @Size(max=20,message="Title can max be 20 characters") String title
The field for thetitle
record component.
-
-
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.AccessTokenResponse
class AccessTokenResponse extends Record implements Serializable-
Serialized Fields
-
accessToken
@NotNull @NotEmpty @NotBlank String accessToken
The field for theaccessToken
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.token.LoginRegisterResponse
class LoginRegisterResponse extends Record implements Serializable-
Serialized Fields
-
accessToken
@NotNull @NotBlank @NotEmpty String accessToken
The field for theaccessToken
record component. -
refreshToken
@NotNull @NotBlank @NotEmpty String refreshToken
The field for therefreshToken
record component.
-
-
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.AuthenticationRequest
class AuthenticationRequest extends Record implements Serializable -
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ChangePasswordRequestRequest
class ChangePasswordRequestRequest extends Record implements Serializable -
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.RegisterRequest
class RegisterRequest extends Record implements Serializable-
Serialized Fields
-
email
@NotNull(message="Email cannot be null") @Email(message="Ugylig mail") String email
The field for theemail
record component. -
firstName
@NotNull(message="First name cannot be null") @NotBlank(message="First name cannot be blank") String firstName
The field for thefirstName
record component. -
lastName
@NotNull(message="Last name cannot be null") @NotBlank(message="Last name cannot be blank") String lastName
The field for thelastName
record component. -
password
@NotNull(message="Password cannot be null") @NotBlank(message="Password cannot be blank") String password
The field for thepassword
record component. -
username
@NotNull(message="Username cannot be null") @NotBlank(message="Username cannot be blank") String username
The field for theusername
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.ResetPasswordRequest
class ResetPasswordRequest extends Record implements Serializable-
Serialized Fields
-
newPassword
@NotNull(message="New password cannot be null") @NotBlank(message="New password cannot be blank") String newPassword
The field for thenewPassword
record component. -
resetID
@NotNull(message="Reset ID cannot be null") @NotBlank(message="Reset ID cannot be blank") String resetID
The field for theresetID
record component. -
userID
@NotNull(message="User ID cannot be null") Long userID
The field for theuserID
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.StreakResponse
class StreakResponse extends Record implements Serializable-
Serialized Fields
-
firstDue
ZonedDateTime firstDue
The field for thefirstDue
record component. -
streak
@PositiveOrZero Long streak
The field for thestreak
record component. -
streakStart
ZonedDateTime streakStart
The field for thestreakStart
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserResponse
class UserResponse extends Record implements Serializable-
Serialized Fields
-
badges
@NotNull Set<BadgeDTO> badges
The field for thebadges
record component. -
email
@NotNull @Email String email
The field for theemail
record component. -
firstName
@NotNull String firstName
The field for thefirstName
record component. -
hasPasskey
@NotNull Boolean hasPasskey
The field for thehasPasskey
record component. -
id
Long id
The field for theid
record component. -
lastName
@NotNull String lastName
The field for thelastName
record component. -
savedAmount
@NotNull BigDecimal savedAmount
The field for thesavedAmount
record component. -
savingAccount
@NotNull AccountDTO savingAccount
The field for thesavingAccount
record component. -
spendingAccount
@NotNull AccountDTO spendingAccount
The field for thespendingAccount
record component. -
username
@NotNull String username
The field for theusername
record component.
-
-
-
Record Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.user.UserUpdateDTO
class UserUpdateDTO extends Record implements Serializable-
Serialized Fields
-
email
@Email(message="Ugyldig mail") String email
The field for theemail
record component. -
firstName
String firstName
The field for thefirstName
record component. -
lastName
String lastName
The field for thelastName
record component. -
password
String password
The field for thepassword
record component. -
savingAccount
AccountUpdateDTO savingAccount
The field for thesavingAccount
record component. -
spendingAccount
AccountUpdateDTO spendingAccount
The field for thespendingAccount
record component. -
username
String username
The field for theusername
record component.
-
-
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception
-
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.AssertionRequestNotFoundException
class AssertionRequestNotFoundException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.EmailNotFoundException
class EmailNotFoundException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.InvalidTokenException
class InvalidTokenException extends RuntimeException implements Serializable
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.account
-
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.account.AccountAlreadyExistsException
class AccountAlreadyExistsException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.account.AccountNotFoundException
class AccountNotFoundException extends RuntimeException implements Serializable
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.challenge
-
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.challenge.ChallengeAlreadyCompletedException
class ChallengeAlreadyCompletedException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.challenge.ChallengeNotFoundException
class ChallengeNotFoundException extends RuntimeException implements Serializable
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config
-
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config.ChallengeConfigAlreadyExistsException
class ChallengeConfigAlreadyExistsException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config.ChallengeConfigNotFoundException
class ChallengeConfigNotFoundException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.config.ConfigNotFoundException
class ConfigNotFoundException extends RuntimeException implements Serializable
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal
-
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal.ActiveGoalLimitExceededException
class ActiveGoalLimitExceededException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal.GoalNotFoundException
class GoalNotFoundException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.goal.NotActiveGoalException
class NotActiveGoalException extends RuntimeException implements Serializable
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage
-
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage.StorageException
class StorageException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.storage.StorageFileNotFoundException
class StorageFileNotFoundException extends StorageException implements Serializable
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.user
-
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.user.UserAlreadyExistsException
class UserAlreadyExistsException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.user.UserNotFoundException
class UserNotFoundException extends RuntimeException implements Serializable
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation
-
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation.BadInputException
class BadInputException extends RuntimeException implements Serializable -
Exception Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.exception.validation.ObjectNotValidException
class ObjectNotValidException extends RuntimeException implements Serializable
-
-
Package org.ntnu.idi.idatt2106.sparesti.sparestibackend.model
-
Class org.ntnu.idi.idatt2106.sparesti.sparestibackend.model.User
class User extends Object implements Serializable-
Serialized Fields
-
badges
Set<Badge> badges
Collection of badges awarded to the user, representing achievements or milestones. -
challenges
Set<Challenge> challenges
Set of challenges associated with the user, loaded eagerly. -
email
@NotNull @Email String email
User's email address, must be valid as per the @Email constraint; unique across users. -
firstName
@NotNull String firstName
First name of the user; cannot be null. -
goals
Set<Goal> goals
Collection of goals set by the user, sorted naturally by priority. -
handle
com.yubico.webauthn.data.ByteArray handle
Binary handle used for certain types of user identification or authentication processes. -
id
Long id
The unique identifier for the user, automatically generated by the database. -
lastName
@NotNull String lastName
Last name of the user; cannot be null. -
password
@NotNull String password
Encrypted password for user authentication; cannot be null. -
savedAmount
@NotNull BigDecimal savedAmount
Total amount saved by the user across all challenges and goals. -
savingAccount
Account savingAccount
Account details specifically for the user's savings. -
spendingAccount
Account spendingAccount
Account details specifically for the user's spending activities. -
streak
@NotNull Long streak
Current streak count, reflecting consecutive days of user activity or other measured streaks. -
streakStart
ZonedDateTime streakStart
Timestamp indicating when the user's current streak of activity started. -
userConfig
UserConfig userConfig
Configuration details for this user, embedded within the user record. -
username
@NotNull String username
Unique username for the user; cannot be null.
-
-
-