Package org.camunda.bpm.admin.impl.web
Class SetupResource
- java.lang.Object
-
- org.camunda.bpm.admin.impl.web.SetupResource
-
@Path("/setup/{engine}") public class SetupResource extends java.lang.ObjectJax 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
Fields Modifier and Type Field Description protected javax.ws.rs.ext.Providersproviders
-
Constructor Summary
Constructors Constructor Description SetupResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateInitialUser(java.lang.String processEngineName, UserDto user)protected voidcreateInitialUserInternal(java.lang.String processEngineName, UserDto user, ProcessEngine processEngine)protected voidensureCamundaAdminGroupExists(ProcessEngine processEngine)protected voidensureSetupAvailable(ProcessEngine processEngine)protected com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()protected ProcessEnginelookupProcessEngine(java.lang.String engineName)
-
-
-
Method Detail
-
createInitialUser
@Path("/user/create") @POST @Consumes("application/json") @Produces("application/json") public void createInitialUser(@PathParam("engine") java.lang.String processEngineName, UserDto user) throws java.io.IOException, javax.servlet.ServletException- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
createInitialUserInternal
protected void createInitialUserInternal(java.lang.String processEngineName, UserDto user, ProcessEngine processEngine)
-
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-
ensureCamundaAdminGroupExists
protected void ensureCamundaAdminGroupExists(ProcessEngine processEngine)
-
ensureSetupAvailable
protected void ensureSetupAvailable(ProcessEngine processEngine)
-
lookupProcessEngine
protected ProcessEngine lookupProcessEngine(java.lang.String engineName)
-
-