Class SetupResource


  • @Path("/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.

    Author:
    Daniel Meyer
    • Field Detail

      • providers

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

      • SetupResource

        public SetupResource()
    • Method Detail

      • createInitialUser

        @Path("/user/create")
        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public void createInitialUser​(@PathParam("engine")
                                      String processEngineName,
                                      UserDto user)
                               throws IOException,
                                      javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • createInitialUserInternal

        protected void createInitialUserInternal​(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)