org.camunda.bpm.admin.impl.web
Class SetupResource

java.lang.Object
  extended by org.camunda.bpm.admin.impl.web.SetupResource

public class SetupResource
extends Object

Jax RS resource allowing to perform the setup steps.

All methods of this class must throw Status.FORBIDDEN exception if setup actions are unavailable.

Author:
Daniel Meyer

Field Summary
protected  javax.ws.rs.ext.Providers providers
           
 
Constructor Summary
SetupResource()
           
 
Method Summary
 void createInitialUser(String processEngineName, org.camunda.bpm.engine.rest.dto.identity.UserDto user)
           
protected  void createInitialUserInternal(String processEngineName, org.camunda.bpm.engine.rest.dto.identity.UserDto user, org.camunda.bpm.engine.ProcessEngine processEngine)
           
protected  void ensureCamundaAdminGroupExists(org.camunda.bpm.engine.ProcessEngine processEngine)
           
protected  void ensureSetupAvailable(org.camunda.bpm.engine.ProcessEngine processEngine)
           
protected  com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
           
protected  org.camunda.bpm.engine.ProcessEngine lookupProcessEngine(String engineName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providers

@Context
protected javax.ws.rs.ext.Providers providers
Constructor Detail

SetupResource

public SetupResource()
Method Detail

createInitialUser

public void createInitialUser(String processEngineName,
                              org.camunda.bpm.engine.rest.dto.identity.UserDto user)
                       throws IOException,
                              javax.servlet.ServletException
Throws:
IOException
javax.servlet.ServletException

createInitialUserInternal

protected void createInitialUserInternal(String processEngineName,
                                         org.camunda.bpm.engine.rest.dto.identity.UserDto user,
                                         org.camunda.bpm.engine.ProcessEngine processEngine)

getObjectMapper

protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()

ensureCamundaAdminGroupExists

protected void ensureCamundaAdminGroupExists(org.camunda.bpm.engine.ProcessEngine processEngine)

ensureSetupAvailable

protected void ensureSetupAvailable(org.camunda.bpm.engine.ProcessEngine processEngine)

lookupProcessEngine

protected org.camunda.bpm.engine.ProcessEngine lookupProcessEngine(String engineName)


Copyright © 2018 camunda services GmbH. All rights reserved.