Class UserProfileController

java.lang.Object
tech.corefinance.userprofile.common.controller.UserProfileController
All Implemented Interfaces:
tech.corefinance.common.controller.CrudController<String,CommonUserProfile<?>,UserProfileCreatorDto>

@RestController @RequestMapping("/userprofiles") @ControllerManagedResource("userprofile") @ConditionalOnProperty(prefix="tech.corefinance.security", name="authorize-check", havingValue="true", matchIfMissing=true) public class UserProfileController extends Object implements tech.corefinance.common.controller.CrudController<String,CommonUserProfile<?>,UserProfileCreatorDto>
  • Constructor Details

    • UserProfileController

      public UserProfileController()
  • Method Details

    • getHandlingService

      public UserProfileService getHandlingService()
      Specified by:
      getHandlingService in interface tech.corefinance.common.controller.CrudController<String,CommonUserProfile<?>,UserProfileCreatorDto>
    • changePassword

      @PostMapping("/change-password") @PermissionAction(action="change-password") public tech.corefinance.common.dto.GeneralApiResponse<Byte> changePassword(@RequestParam("userId") String userId, @RequestParam("currentPassword") String currentPassword, @RequestParam("newPassword") String newPassword, @RequestParam("confirmPassword") String confirmPassword)