Uses of Record Class
org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config.ChallengeConfigDTO
Packages that use ChallengeConfigDTO
Package
Description
-
Uses of ChallengeConfigDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller that return types with arguments of type ChallengeConfigDTOModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<ChallengeConfigDTO> ChallengeConfigController.createChallengeConfig
(ChallengeConfigDTO challengeConfigDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Creates a challenge configorg.springframework.http.ResponseEntity
<ChallengeConfigDTO> ChallengeConfigController.getChallengeConfig
(org.springframework.security.core.userdetails.UserDetails userDetails) Gets a user's challenge configorg.springframework.http.ResponseEntity
<ChallengeConfigDTO> ChallengeConfigController.updateChallengeConfig
(ChallengeConfigDTO challengeConfigDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Updates a user's challenge configMethods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.controller with parameters of type ChallengeConfigDTOModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<ChallengeConfigDTO> ChallengeConfigController.createChallengeConfig
(ChallengeConfigDTO challengeConfigDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Creates a challenge configorg.springframework.http.ResponseEntity
<ChallengeConfigDTO> ChallengeConfigController.updateChallengeConfig
(ChallengeConfigDTO challengeConfigDTO, org.springframework.security.core.userdetails.UserDetails userDetails) Updates a user's challenge config -
Uses of ChallengeConfigDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config that return ChallengeConfigDTOModifier and TypeMethodDescription@NotNull(message="Challenge config cannot be null") ChallengeConfigDTO
UserConfigDTO.challengeConfig()
Returns the value of thechallengeConfig
record component.Constructors in org.ntnu.idi.idatt2106.sparesti.sparestibackend.dto.config with parameters of type ChallengeConfigDTOModifierConstructorDescriptionUserConfigDTO
(@NotNull(message="Role cannot be null") Role role, @NotNull(message="Challenge config cannot be null") ChallengeConfigDTO challengeConfig) Creates an instance of aUserConfigDTO
record class. -
Uses of ChallengeConfigDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper that return ChallengeConfigDTOModifier and TypeMethodDescriptionChallengeConfigMapper.toDTO
(ChallengeConfig challengeConfig) Converts to DTO from ChallengeConfig entity to dtoMethods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.mapper with parameters of type ChallengeConfigDTOModifier and TypeMethodDescriptionChallengeConfigMapper.toEntity
(ChallengeConfigDTO challengeConfigDTO) Converts a ChallengeConfigDTO to an entityChallengeConfigMapper.updateEntity
(ChallengeConfig challengeConfig, ChallengeConfigDTO challengeConfigDTO) Cascades changes from a ChallengeConfigDTO to target entity. -
Uses of ChallengeConfigDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service that return ChallengeConfigDTOModifier and TypeMethodDescriptionUserConfigService.createChallengeConfig
(String username, ChallengeConfigDTO challengeConfigDTO) Creates a challenge config for a userUserConfigService.getChallengeConfig
(String username) Gets the challenge config of a userUserConfigService.updateChallengeConfig
(String username, ChallengeConfigDTO challengeConfigDTO) Method will reset all challenge type configs.Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.service with parameters of type ChallengeConfigDTOModifier and TypeMethodDescriptionUserConfigService.createChallengeConfig
(String username, ChallengeConfigDTO challengeConfigDTO) Creates a challenge config for a userUserConfigService.updateChallengeConfig
(String username, ChallengeConfigDTO challengeConfigDTO) Method will reset all challenge type configs. -
Uses of ChallengeConfigDTO in org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user
Methods in org.ntnu.idi.idatt2106.sparesti.sparestibackend.validation.user with parameters of type ChallengeConfigDTOModifier and TypeMethodDescriptionvoid
ChallengeConfigValidator.validate
(ChallengeConfigDTO challengeConfigDTO) Checks field constraints and validates that specific amount is not greater than general amount and that there are no duplicate types.