Class TapeCatalogResource

java.lang.Object
fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
fr.gouv.vitam.storage.offers.tape.rest.TapeCatalogResource

@Path("/offer/v1") @ApplicationPath("webresources") public class TapeCatalogResource extends ApplicationStatusResource
  • Constructor Details

    • TapeCatalogResource

      public TapeCatalogResource(TapeCatalogService tapeCatalogService)
      Constructor
      Parameters:
      tapeCatalogService -
    • TapeCatalogResource

      public TapeCatalogResource()
      TapeLibraryFactory should be already initialized
  • Method Details

    • getTape

      @GET @Path("/tapecatalog/{tapeId}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getTape(@PathParam("tapeId") String tapeId)
      Get a tape model from catalog
      Parameters:
      tapeId -
      Returns:
      a tape model from catalog
    • getTapes

      @GET @Path("/tapecatalog/") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getTapes(List<QueryCriteria> criteria)
      Get a list of tape model from catalog
      Parameters:
      criteria -
      Returns:
      a list of tape model from catalog
    • replaceTape

      @PUT @Path("/tapecatalog/tapeId") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response replaceTape(@PathParam("tapeId") String tapeId, TapeCatalog tapeCatalog)
      replaces existing tape model by id.
      Returns:
    • updateTape

      @PUT @Path("/tapecatalog/tapeId") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateTape(@PathParam("tapeId") String tapeId, Map<String,Object> fields)
      updates existing tape model by id.
      Returns:
    • createTape

      @POST @Path("/tapecatalog/") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response createTape(TapeCatalog tapeCatalog)
      Creates a tape model.
      Returns: