Class WorkspacesController


  • @Provider
    @Path("/workspaces")
    public class WorkspacesController
    extends Object
    • Constructor Detail

      • WorkspacesController

        public WorkspacesController()
    • Method Detail

      • getWorkspaces

        @GET
        @Path("")
        @Produces("application/json")
        public static javax.ws.rs.core.Response getWorkspaces​(@Context
                                                              javax.ws.rs.core.SecurityContext sec,
                                                              @Context
                                                              javax.servlet.ServletContext ctx)
      • createWorkspace

        @POST
        @Path("/")
        @Produces("application/json")
        public javax.ws.rs.core.Response createWorkspace​(@Context
                                                         javax.ws.rs.core.SecurityContext sec,
                                                         @Context
                                                         javax.servlet.ServletContext ctx,
                                                         @Context
                                                         javax.servlet.http.HttpServletRequest request,
                                                         @QueryParam("managed")
                                                         Boolean createDiffWorkspace,
                                                         @QueryParam("publicAccess")
                                                         Boolean allowReadOnlyAccessToSystemUser)
      • createNewWorkspace0

        public static Workspace createNewWorkspace0​(javax.servlet.ServletContext ctx,
                                                    de.narimo.commons.dto.User user,
                                                    boolean isDiffWorkspace)
                                             throws IOException,
                                                    SQLException
        Creates a workspace with a naming that is not yet taken. Does not yet set permissions on that new workspace.
        Parameters:
        ctx -
        user -
        Returns:
        Throws:
        IOException
        SQLException
      • getNewWorkspaceName

        public static String getNewWorkspaceName()