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
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
STATUS_URL, TENANTS_URL
-
-
Constructor Summary
Constructors Constructor Description TapeCatalogResource()
TapeLibraryFactory should be already initializedTapeCatalogResource(TapeCatalogService tapeCatalogService)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createTape(TapeCatalog tapeCatalog)
Creates a tape model.javax.ws.rs.core.Response
getTape(java.lang.String tapeId)
Get a tape model from catalogjavax.ws.rs.core.Response
getTapes(java.util.List<QueryCriteria> criteria)
Get a list of tape model from catalogjavax.ws.rs.core.Response
replaceTape(java.lang.String tapeId, TapeCatalog tapeCatalog)
replaces existing tape model by id.javax.ws.rs.core.Response
updateTape(java.lang.String tapeId, java.util.Map<java.lang.String,java.lang.Object> fields)
updates existing tape model by id.-
Methods inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
getServerTenants, status
-
-
-
-
Constructor Detail
-
TapeCatalogResource
public TapeCatalogResource(TapeCatalogService tapeCatalogService)
Constructor- Parameters:
tapeCatalogService
-
-
TapeCatalogResource
public TapeCatalogResource()
TapeLibraryFactory should be already initialized
-
-
Method Detail
-
getTape
@GET @Path("/tapecatalog/{tapeId}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getTape(@PathParam("tapeId") java.lang.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(java.util.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") java.lang.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") java.lang.String tapeId, java.util.Map<java.lang.String,java.lang.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:
-
-