Class SpaceRest

java.lang.Object
org.duracloud.durastore.rest.BaseRest
org.duracloud.durastore.rest.SpaceRest

@Path("/") @Component public class SpaceRest extends BaseRest
Provides interaction with spaces via REST
Author:
Bill Branan
  • Constructor Details

  • Method Details

    • getSpaces

      @Path("/spaces") @GET @Produces("application/xml") public javax.ws.rs.core.Response getSpaces(@QueryParam("storeID") String storeID)
      see SpaceResource.getSpaces()
      Returns:
      200 response with XML listing of spaces
    • getSpace

      @Path("/{spaceID}") @GET @Produces("application/xml") public javax.ws.rs.core.Response getSpace(@PathParam("spaceID") String spaceID, @QueryParam("storeID") String storeID, @QueryParam("prefix") String prefix, @QueryParam("maxResults") long maxResults, @QueryParam("marker") String marker)
      see SpaceResource.getSpaceProperties(String, String); see SpaceResource.getSpaceContents(String, String);
      Returns:
      200 response with XML listing of space content and space properties included as header values
    • getSpaceProperties

      @Path("/{spaceID}") @HEAD public javax.ws.rs.core.Response getSpaceProperties(@PathParam("spaceID") String spaceID, @QueryParam("storeID") String storeID)
      see SpaceResource.getSpaceProperties(String, String);
      Returns:
      200 response with space properties included as header values
    • getSpaceACLs

      @Path("/acl/{spaceID}") @HEAD public javax.ws.rs.core.Response getSpaceACLs(@PathParam("spaceID") String spaceID, @QueryParam("storeID") String storeID)
      see SpaceResource.getSpaceACLs(String, String);
      Returns:
      200 response with space ACLs included as header values
    • addSpace

      @Path("/{spaceID}") @PUT public javax.ws.rs.core.Response addSpace(@PathParam("spaceID") String spaceID, @QueryParam("storeID") String storeID)
      see SpaceResource.addSpace(String, String, String, String)
      Returns:
      201 response with request URI
    • updateSpaceACLs

      @Path("/acl/{spaceID}") @POST public javax.ws.rs.core.Response updateSpaceACLs(@PathParam("spaceID") String spaceID, @QueryParam("storeID") String storeID)
      This method sets the ACLs associated with a space. Only values included in the ACLs headers will be updated, others will be removed.
      Returns:
      200 response
    • deleteSpace

      @Path("/{spaceID}") @DELETE public javax.ws.rs.core.Response deleteSpace(@PathParam("spaceID") String spaceID, @QueryParam("storeID") String storeID)
      see SpaceResource.deleteSpace(String, String);
      Returns:
      200 response indicating space deleted successfully