Package org.camunda.bpm.admin.impl.web
Class SetupResource
java.lang.Object
org.camunda.bpm.admin.impl.web.SetupResource
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
FieldsModifier and TypeFieldDescriptionprotected static final WebappLoggerprotected jakarta.ws.rs.ext.Providers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateInitialUser(String processEngineName, org.camunda.bpm.engine.rest.dto.identity.UserDto user) protected voidcreateInitialUserInternal(String processEngineName, org.camunda.bpm.engine.rest.dto.identity.UserDto user, org.camunda.bpm.engine.ProcessEngine processEngine) protected voidensureCamundaAdminGroupExists(org.camunda.bpm.engine.ProcessEngine processEngine) protected voidensureSetupAvailable(org.camunda.bpm.engine.ProcessEngine processEngine) protected com.fasterxml.jackson.databind.ObjectMapperprotected org.camunda.bpm.engine.ProcessEnginelookupProcessEngine(String engineName)
-
Field Details
-
LOGGER
-
providers
@Context protected jakarta.ws.rs.ext.Providers providers
-
-
Constructor Details
-
SetupResource
public SetupResource()
-
-
Method Details
-
createInitialUser
@Path("/user/create") @POST @Consumes("application/json") @Produces("application/json") public void createInitialUser(@PathParam("engine") String processEngineName, org.camunda.bpm.engine.rest.dto.identity.UserDto user) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.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
-