@Path(value="/setup/{engine}") 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.
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.ext.Providers |
providers |
Constructor and Description |
---|
SetupResource() |
Modifier and Type | Method and Description |
---|---|
void |
createInitialUser(String processEngineName,
UserDto user) |
protected void |
createInitialUserInternal(String processEngineName,
UserDto user,
ProcessEngine processEngine) |
protected void |
ensureCamundaAdminGroupExists(ProcessEngine processEngine) |
protected void |
ensureSetupAvailable(ProcessEngine processEngine) |
protected com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
protected ProcessEngine |
lookupProcessEngine(String engineName) |
@Path(value="/user/create") @POST @Consumes(value="application/json") @Produces(value="application/json") public void createInitialUser(@PathParam(value="engine") String processEngineName, UserDto user) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected void createInitialUserInternal(String processEngineName, UserDto user, ProcessEngine processEngine)
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
protected void ensureCamundaAdminGroupExists(ProcessEngine processEngine)
protected void ensureSetupAvailable(ProcessEngine processEngine)
protected ProcessEngine lookupProcessEngine(String engineName)
Copyright © 2019. All rights reserved.