Class MyAccountRestController
java.lang.Object
eu.rarogsoftware.rarog.platform.core.plugins.templates.AbstractSimpleFeatureModule<AccountSettingsMenuDescriptor>
eu.rarogsoftware.rarog.platform.app.rest.MyAccountRestController
- All Implemented Interfaces:
FeatureModule<AccountSettingsMenuDescriptor>
@RestController
@RequestMapping(path="account/my/",
produces="application/json")
@AutoRegisterFeatureModule(AccountSettingsMenuDescriptor.class)
@HumanOnly
public class MyAccountRestController
extends AbstractSimpleFeatureModule<AccountSettingsMenuDescriptor>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record(package private) static final record(package private) static final record(package private) static final record -
Constructor Summary
ConstructorsConstructorDescriptionMyAccountRestController(DynamicAssetsLoaderFactory dynamicAssetsLoaderFactory, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, UserManager userManager) -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.http.ResponseEntity<MyAccountRestController.GenericResponse>changePassword(MyAccountRestController.PasswordChangeRequest request, StandardUser rarogUser, org.springframework.security.core.Authentication authentication) protected void(package private) MyAccountRestController.AccountSettingsgetCurrentAccountSettings(StandardUser rarogUser, org.springframework.security.core.Authentication authentication) (package private) Map<String,List<MyAccountRestController.MenuElement>> Methods inherited from class eu.rarogsoftware.rarog.platform.core.plugins.templates.AbstractSimpleFeatureModule
getDescriptorMap, getPluginForCurrentRequest, plugDescriptor, unplugDescriptor
-
Constructor Details
-
MyAccountRestController
public MyAccountRestController(@Qualifier("main") DynamicAssetsLoaderFactory dynamicAssetsLoaderFactory, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, UserManager userManager)
-
-
Method Details
-
clearCache
protected void clearCache()- Overrides:
clearCachein classAbstractSimpleFeatureModule<AccountSettingsMenuDescriptor>
-
getCurrentAccountSettings
@GetMapping("main/settings") MyAccountRestController.AccountSettings getCurrentAccountSettings(@AuthenticationPrincipal StandardUser rarogUser, org.springframework.security.core.Authentication authentication) -
changePassword
@PostMapping("main/settings/changePassword") org.springframework.http.ResponseEntity<MyAccountRestController.GenericResponse> changePassword(@RequestBody MyAccountRestController.PasswordChangeRequest request, @AuthenticationPrincipal StandardUser rarogUser, org.springframework.security.core.Authentication authentication) throws UserManagementException - Throws:
UserManagementException