Class UserResource

java.lang.Object

@RestController
public class UserResource
extends UserBaseResource
Author:
Frederik Heremans, Filip Hrisafov, Joram Barrez
  • Field Details

  • Constructor Details

  • Method Details

    • getUser

      @GetMapping(value="/users/{userId}", produces="application/json") public PlatformUserResponse getUser​(@PathVariable java.lang.String userId, @RequestParam(required=false) boolean includeIdentityInfo, java.security.Principal principal)
    • getUserName

      @GetMapping(value="/users/{userId}/name", produces="application/json") public UserBaseInformationResponse getUserName​(@PathVariable java.lang.String userId)
    • getUserAvatar

      @GetMapping("/users/{userId}/avatar/data") public org.springframework.http.ResponseEntity<byte[]> getUserAvatar​(@PathVariable java.lang.String userId, @RequestParam(required=false) java.lang.Boolean download, java.security.Principal principal)
    • getUserAvatarThumbnail

      @GetMapping("/users/{userId}/avatar/thumbnail") public org.springframework.http.ResponseEntity<byte[]> getUserAvatarThumbnail​(@PathVariable java.lang.String userId, @RequestParam(required=false) java.lang.Boolean download, java.security.Principal principal)
    • updateUser

      @PutMapping(value="/users/{userId}", produces="application/json") public PlatformUserResponse updateUser​(@PathVariable java.lang.String userId, @RequestBody UpdateUserRequest userRequest, java.security.Principal principal)
    • updateUserStateAndSubState

      @PutMapping(value="/users/{userId}/update-state", produces="application/json") public PlatformUserResponse updateUserStateAndSubState​(@PathVariable java.lang.String userId, @RequestBody UpdateUserStateRequest userRequest, java.security.Principal principal)
    • updateUserDefinition

      @PutMapping(value="/users/{userId}/update-user-definition", produces="application/json") public PlatformUserResponse updateUserDefinition​(@PathVariable java.lang.String userId, @RequestBody UpdateUserDefinitionRequest userRequest, java.security.Principal principal)
    • updateUserAvatar

      @PostMapping(value="/users/{userId}/avatar/data", consumes="multipart/form-data") public org.springframework.http.ResponseEntity<java.lang.Void> updateUserAvatar​(@PathVariable java.lang.String userId, java.security.Principal principal, javax.servlet.http.HttpServletRequest request)
    • changeUserPassword

      @PutMapping(value="/users/{userId}/change-password", produces="application/json") public org.springframework.http.ResponseEntity<java.lang.Void> changeUserPassword​(@PathVariable java.lang.String userId, @RequestBody ChangeUserPasswordRequest userRequest, java.security.Principal principal)
    • changeUserTheme

      @PutMapping(value="/users/{userId}/change-theme", produces="application/json") public org.springframework.http.ResponseEntity<java.lang.Void> changeUserTheme​(@PathVariable java.lang.String userId, @RequestBody ChangeUserThemeRequest userRequest, java.security.Principal principal)
    • changeUserLanguage

      @PutMapping(value="/users/{userId}/change-language", produces="application/json") public org.springframework.http.ResponseEntity<java.lang.Void> changeUserLanguage​(@PathVariable java.lang.String userId, @RequestBody ChangeUserLanguageRequest userRequest, java.security.Principal principal)
    • deleteUser

      @DeleteMapping("/users/{userId}") public void deleteUser​(@PathVariable java.lang.String userId, javax.servlet.http.HttpServletResponse response)
    • getUserDocument

      @GetMapping("/users/{userId}/index-document") @ResponseStatus(OK) public com.fasterxml.jackson.databind.JsonNode getUserDocument​(@PathVariable java.lang.String userId)
    • deleteUserIdentityInfoByName

      @DeleteMapping("/users/{userId}/identity-info/{identityInfoName}") public PlatformUserResponse deleteUserIdentityInfoByName​(@PathVariable java.lang.String userId, @PathVariable java.lang.String identityInfoName, java.security.Principal principal)
    • getUserFromRequest

      protected PlatformUser getUserFromRequest​(java.lang.String userId)
    • getAvatarContentItem

      protected org.flowable.content.api.ContentItem getAvatarContentItem​(PlatformUser platformUser)
    • getContentTypeForFileExtension

      protected java.lang.String getContentTypeForFileExtension​(org.springframework.web.multipart.MultipartFile file)