Class UserPlatformResource

java.lang.Object
com.flowable.platform.rest.service.api.AbstractPlatformResource
com.flowable.platform.rest.service.api.user.UserPlatformResource

@RestController
public class UserPlatformResource
extends AbstractPlatformResource
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected com.flowable.core.service.form.FlowableFormDecoratorInvoker formDecoratorInvoker  
    protected org.flowable.form.api.FormRepositoryService formRepositoryService  
    protected com.flowable.core.idm.api.PlatformIdentityService platformIdentityService  
    protected com.flowable.core.idm.api.PlatformIdmEngineConfigurationApi platformIdmEngineConfiguration  
    protected com.flowable.core.idm.api.UserDefinitionService userDefinitionService  
    protected com.flowable.core.idm.api.UserPermissionService userPermissionService  

    Fields inherited from class com.flowable.platform.rest.service.api.AbstractPlatformResource

    additionalAdminUsers, platformSecurityInterceptor
  • Constructor Summary

    Constructors 
    Constructor Description
    UserPlatformResource​(com.flowable.core.idm.api.PlatformIdentityService platformIdentityService, com.flowable.core.idm.api.UserDefinitionService userDefinitionService, org.flowable.form.api.FormRepositoryService formRepositoryService, com.flowable.core.idm.api.UserPermissionService userPermissionService, com.flowable.core.idm.api.PlatformIdmEngineConfigurationApi platformIdmEngineConfiguration, com.flowable.core.service.form.FlowableFormDecoratorInvoker formDecoratorInvoker)  
  • Method Summary

    Modifier and Type Method Description
    protected boolean currentUserHasEditRights​(com.flowable.core.idm.api.UserDefinitionModel userDefinitionModel)  
    protected java.util.Map<java.lang.String,​java.lang.Object> extractVariables​(com.flowable.core.idm.api.PlatformUser user)  
    protected java.util.Set<java.lang.String> getAllowedRestVariables​(com.flowable.core.idm.api.UserDefinitionModel definitionModel, java.lang.String formType)  
    protected com.flowable.core.idm.api.PlatformUser getPlatformUserFromRequest​(java.lang.String userId, java.security.Principal principal)  
    protected com.flowable.core.idm.api.UserDefinition getUserDefinition​(com.flowable.core.idm.api.PlatformUser platformUser)  
    protected com.flowable.core.idm.api.UserDefinitionModel getUserDefinitionModel​(com.flowable.core.idm.api.UserDefinition userDefinition)  
    FormModelRepresentation getUserForm​(java.lang.String userId, java.lang.String formType, java.security.Principal principal)  
    org.springframework.http.ResponseEntity<java.lang.Object> getVariablesForForm​(java.lang.String userId, java.lang.String formType, java.security.Principal principal)  
    org.springframework.http.ResponseEntity<java.util.Map<java.lang.String,​java.lang.Object>> saveUserWithForm​(java.lang.String userId, java.lang.String formType, SaveFormRepresentation saveFormRepresentation, java.security.Principal principal)  
    void setUserDefinitionService​(com.flowable.core.idm.api.UserDefinitionService userDefinitionService)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • platformIdentityService

      protected final com.flowable.core.idm.api.PlatformIdentityService platformIdentityService
    • userDefinitionService

      protected final com.flowable.core.idm.api.UserDefinitionService userDefinitionService
    • formRepositoryService

      protected final org.flowable.form.api.FormRepositoryService formRepositoryService
    • userPermissionService

      protected final com.flowable.core.idm.api.UserPermissionService userPermissionService
    • platformIdmEngineConfiguration

      protected final com.flowable.core.idm.api.PlatformIdmEngineConfigurationApi platformIdmEngineConfiguration
    • formDecoratorInvoker

      protected final com.flowable.core.service.form.FlowableFormDecoratorInvoker formDecoratorInvoker
  • Constructor Details

    • UserPlatformResource

      public UserPlatformResource​(com.flowable.core.idm.api.PlatformIdentityService platformIdentityService, com.flowable.core.idm.api.UserDefinitionService userDefinitionService, org.flowable.form.api.FormRepositoryService formRepositoryService, com.flowable.core.idm.api.UserPermissionService userPermissionService, com.flowable.core.idm.api.PlatformIdmEngineConfigurationApi platformIdmEngineConfiguration, com.flowable.core.service.form.FlowableFormDecoratorInvoker formDecoratorInvoker)
  • Method Details

    • getUserForm

      @GetMapping("/users/{userId}/{formType}-form") public FormModelRepresentation getUserForm​(@PathVariable java.lang.String userId, @PathVariable java.lang.String formType, java.security.Principal principal)
    • saveUserWithForm

      @PostMapping("/users/{userId}/save-{formType}-form") public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String,​java.lang.Object>> saveUserWithForm​(@PathVariable java.lang.String userId, @PathVariable java.lang.String formType, @RequestBody SaveFormRepresentation saveFormRepresentation, java.security.Principal principal)
    • getVariablesForForm

      @GetMapping("/users/{userId}/{formType}-form/variables") public org.springframework.http.ResponseEntity<java.lang.Object> getVariablesForForm​(@PathVariable java.lang.String userId, @PathVariable java.lang.String formType, java.security.Principal principal)
    • getPlatformUserFromRequest

      protected com.flowable.core.idm.api.PlatformUser getPlatformUserFromRequest​(java.lang.String userId, java.security.Principal principal)
    • currentUserHasEditRights

      protected boolean currentUserHasEditRights​(com.flowable.core.idm.api.UserDefinitionModel userDefinitionModel)
    • extractVariables

      protected java.util.Map<java.lang.String,​java.lang.Object> extractVariables​(com.flowable.core.idm.api.PlatformUser user)
    • getUserDefinition

      protected com.flowable.core.idm.api.UserDefinition getUserDefinition​(com.flowable.core.idm.api.PlatformUser platformUser)
    • getUserDefinitionModel

      protected com.flowable.core.idm.api.UserDefinitionModel getUserDefinitionModel​(com.flowable.core.idm.api.UserDefinition userDefinition)
    • getAllowedRestVariables

      protected java.util.Set<java.lang.String> getAllowedRestVariables​(com.flowable.core.idm.api.UserDefinitionModel definitionModel, java.lang.String formType)
    • setUserDefinitionService

      @Autowired public void setUserDefinitionService​(com.flowable.core.idm.api.UserDefinitionService userDefinitionService)