Package org.flowable.ui.idm.rest.app
Class IdmProfileResource
- java.lang.Object
-
- org.flowable.ui.idm.rest.app.IdmProfileResource
-
@RestController @RequestMapping("/rest/admin") public class IdmProfileResource extends Object- Author:
- Joram Barrez, Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected GroupServicegroupServiceprotected ProfileServiceprofileServiceprotected UserServiceuserService
-
Constructor Summary
Constructors Constructor Description IdmProfileResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangePassword(ChangePasswordRepresentation changePasswordRepresentation)org.flowable.ui.common.model.UserRepresentationgetProfile()voidgetProfilePicture(javax.servlet.http.HttpServletResponse response)org.flowable.ui.common.model.UserRepresentationupdateProfile(org.flowable.ui.common.model.UserRepresentation userRepresentation)voiduploadProfilePicture(org.springframework.web.multipart.MultipartFile file)
-
-
-
Field Detail
-
profileService
@Autowired protected ProfileService profileService
-
groupService
@Autowired protected GroupService groupService
-
userService
@Autowired protected UserService userService
-
-
Method Detail
-
getProfile
@GetMapping(value="/profile", produces="application/json") public org.flowable.ui.common.model.UserRepresentation getProfile()
-
updateProfile
@PostMapping(value="/profile", produces="application/json") public org.flowable.ui.common.model.UserRepresentation updateProfile(@RequestBody org.flowable.ui.common.model.UserRepresentation userRepresentation)
-
changePassword
@ResponseStatus(OK) @PostMapping(value="/profile-password", produces="application/json") public void changePassword(@RequestBody ChangePasswordRepresentation changePasswordRepresentation)
-
getProfilePicture
@GetMapping("/profile-picture") public void getProfilePicture(javax.servlet.http.HttpServletResponse response)
-
uploadProfilePicture
@ResponseStatus(OK) @PostMapping(value="/profile-picture", produces="application/json") public void uploadProfilePicture(@RequestParam("file") org.springframework.web.multipart.MultipartFile file)
-
-