Class WorkspaceController


  • @Provider
    @Path("/workspaces/{workspace}")
    public class WorkspaceController
    extends Object
    • Constructor Detail

      • WorkspaceController

        public WorkspaceController()
    • Method Detail

      • checkWorkspacePermission

        @Deprecated
        @GET
        @Path("")
        public static javax.ws.rs.core.Response checkWorkspacePermission​(@Context
                                                                         javax.ws.rs.core.SecurityContext sec,
                                                                         @PathParam("workspace")
                                                                         String workspace,
                                                                         InputStream body)
        Deprecated.
        Returns 200 OK when the workspace authorization filter confirmed, that we have read (=GET) permission for the requested workspace.
        Parameters:
        workspace -
        sec -
        body -
        Returns:
      • registerUserWorkspace

        @POST
        @Path("/register")
        public static javax.ws.rs.core.Response registerUserWorkspace​(@PathParam("workspace")
                                                                      String workspace,
                                                                      @Context
                                                                      javax.ws.rs.core.SecurityContext sec,
                                                                      @Context
                                                                      javax.servlet.ServletContext ctx,
                                                                      InputStream body)
      • getWorkspaceOWSSettings

        @GET
        @Path("/services/{service}/settings")
        public static javax.ws.rs.core.Response getWorkspaceOWSSettings​(@Context
                                                                        javax.ws.rs.core.SecurityContext sec,
                                                                        @Context
                                                                        javax.servlet.ServletContext ctx,
                                                                        @PathParam("service")
                                                                        String service,
                                                                        @PathParam("workspace")
                                                                        String workspace)
                                                                 throws Exception
        Throws:
        Exception
      • setWorkspaceOWSSettings1

        @PUT
        @Path("/services/{service}/settings")
        public static javax.ws.rs.core.Response setWorkspaceOWSSettings1​(@Context
                                                                         javax.ws.rs.core.SecurityContext sec,
                                                                         @Context
                                                                         javax.servlet.ServletContext ctx,
                                                                         @PathParam("service")
                                                                         String service,
                                                                         @PathParam("workspace")
                                                                         String workspace,
                                                                         InputStream body)
                                                                  throws Exception
        Currently supports WMS and WFS settings.
        Parameters:
        sec -
        ctx -
        service -
        workspace -
        body -
        Returns:
        Throws:
        Exception
      • getWorkspacePermission

        @GET
        @Path("/permissions")
        public static javax.ws.rs.core.Response getWorkspacePermission​(@Context
                                                                       javax.ws.rs.core.SecurityContext sec,
                                                                       @PathParam("workspace")
                                                                       String workspace,
                                                                       InputStream body)
        Returns 200 OK when the workspace authorization filter confirmed, that we have read (=GET) permission for the requested workspace.
        Parameters:
        workspace -
        sec -
        body -
        Returns:
      • setWorkspacePermissionEndpoint

        @PUT
        @Path("/permissions/{permission}")
        public static javax.ws.rs.core.Response setWorkspacePermissionEndpoint​(@Context
                                                                               javax.servlet.ServletContext ctx,
                                                                               @Context
                                                                               javax.ws.rs.core.SecurityContext sec,
                                                                               @PathParam("workspace")
                                                                               String ws,
                                                                               @PathParam("permission")
                                                                               String perm,
                                                                               InputStream body)
        Overwrite all current permission settings for the given workspace and user with the new permission. A user with admin permissions on the workspace is allowed to change permissions on the same workspace for other users.
        Parameters:
        ctx -
        ws -
        username -
        perm -
        Returns:
        Throws:
        SQLException
      • getDiffWorkspace

        @GET
        @Path("/managed")
        public static javax.ws.rs.core.Response getDiffWorkspace​(@Context
                                                                 javax.ws.rs.core.SecurityContext sec,
                                                                 @PathParam("workspace")
                                                                 String dataWorkspace,
                                                                 InputStream body)
      • setWorkspacePermission

        public static void setWorkspacePermission​(de.narimo.commons.dto.geometa.User admin,
                                                  de.narimo.commons.dto.geometa.User user,
                                                  String ws,
                                                  String permission)
                                           throws IOException,
                                                  SQLException
        Set a workspace permission.
        Parameters:
        admin -
        user -
        ws -
        permission -
        Throws:
        IOException
        SQLException