Class UserResource
java.lang.Object
com.flowable.idm.rest.service.api.BaseIdmResource
com.flowable.idm.rest.service.api.user.UserBaseResource
com.flowable.idm.rest.service.api.user.UserResource
@RestController public class UserResource extends UserBaseResource
- Author:
- Frederik Heremans, Filip Hrisafov, Joram Barrez
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.content.api.ContentServicecontentServiceprotected RenditionServicerenditionServiceprotected ResponseEntityHelperresponseEntityHelperprotected IdmRestResponseFactoryrestResponseFactoryprotected UpdateUserMapperupdateUserMapperprotected java.util.Collection<UserBaseInformationProvider>userBaseInformationProvidersprotected UserIndexSearchServiceuserIndexSearchServiceFields inherited from class com.flowable.idm.rest.service.api.user.UserBaseResource
identityService, logger, userDefinitionServiceFields inherited from class com.flowable.idm.rest.service.api.BaseIdmResource
additionalAdminUsers, defaultListResponseSize, platformSecurityInterceptor -
Constructor Summary
Constructors Constructor Description UserResource(UpdateUserMapper updateUserMapper, org.springframework.beans.factory.ObjectProvider<UserBaseInformationProvider> userBaseInformationProviders) -
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.Void>changeUserLanguage(java.lang.String userId, ChangeUserLanguageRequest userRequest, java.security.Principal principal)org.springframework.http.ResponseEntity<java.lang.Void>changeUserPassword(java.lang.String userId, ChangeUserPasswordRequest userRequest, java.security.Principal principal)org.springframework.http.ResponseEntity<java.lang.Void>changeUserTheme(java.lang.String userId, ChangeUserThemeRequest userRequest, java.security.Principal principal)voiddeleteUser(java.lang.String userId, javax.servlet.http.HttpServletResponse response)PlatformUserResponsedeleteUserIdentityInfoByName(java.lang.String userId, java.lang.String identityInfoName, java.security.Principal principal)protected org.flowable.content.api.ContentItemgetAvatarContentItem(PlatformUser platformUser)protected java.lang.StringgetContentTypeForFileExtension(org.springframework.web.multipart.MultipartFile file)PlatformUserResponsegetUser(java.lang.String userId, boolean includeIdentityInfo, java.security.Principal principal)org.springframework.http.ResponseEntity<byte[]>getUserAvatar(java.lang.String userId, java.lang.Boolean download, java.security.Principal principal)org.springframework.http.ResponseEntity<byte[]>getUserAvatarThumbnail(java.lang.String userId, java.lang.Boolean download, java.security.Principal principal)com.fasterxml.jackson.databind.JsonNodegetUserDocument(java.lang.String userId)protected PlatformUsergetUserFromRequest(java.lang.String userId)UserBaseInformationResponsegetUserName(java.lang.String userId)PlatformUserResponseupdateUser(java.lang.String userId, UpdateUserRequest userRequest, java.security.Principal principal)org.springframework.http.ResponseEntity<java.lang.Void>updateUserAvatar(java.lang.String userId, java.security.Principal principal, javax.servlet.http.HttpServletRequest request)PlatformUserResponseupdateUserDefinition(java.lang.String userId, UpdateUserDefinitionRequest userRequest, java.security.Principal principal)PlatformUserResponseupdateUserStateAndSubState(java.lang.String userId, UpdateUserStateRequest userRequest, java.security.Principal principal)Methods inherited from class com.flowable.idm.rest.service.api.user.UserBaseResource
findUserDefinitionModel, getPlatformUserFromRequest, getPlatformUserWithoutAccessCheck, getUserDefinition, getUserDefinitionModelMethods inherited from class com.flowable.idm.rest.service.api.BaseIdmResource
currentUserHasAdminRights, currentUserHasAuthority, currentUserHasIdmAccess, currentUserIsSuperAdmin, setPlatformSecurityInterceptor, validateTenantAdminRights, validateTenantAwareAdminRights
-
Field Details
-
restResponseFactory
-
contentService
@Autowired(required=false) protected org.flowable.content.api.ContentService contentService -
renditionService
-
updateUserMapper
-
userIndexSearchService
-
responseEntityHelper
-
userBaseInformationProviders
-
-
Constructor Details
-
UserResource
public UserResource(UpdateUserMapper updateUserMapper, org.springframework.beans.factory.ObjectProvider<UserBaseInformationProvider> userBaseInformationProviders)
-
-
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
-
getAvatarContentItem
-
getContentTypeForFileExtension
protected java.lang.String getContentTypeForFileExtension(org.springframework.web.multipart.MultipartFile file)
-