Class WebPreservationResource

java.lang.Object
fr.gouv.vitam.ihmdemo.appserver.WebPreservationResource

@Path("/v1/api") @ApplicationPath("webresources") public class WebPreservationResource extends Object
WebPreservationResource class
  • Method Details

    • launchPreservation

      @POST @Path("/preservation") @Produces("application/json") @RequiresPermissions("preservation:update") public javax.ws.rs.core.Response launchPreservation(@Context javax.servlet.http.HttpServletRequest request, String preservationString)
    • getPreservationScenarios

      @POST @Path("/preservationScenarios") @Produces("application/json") @RequiresPermissions("preservationScenarios:read") public javax.ws.rs.core.Response getPreservationScenarios(@Context javax.servlet.http.HttpServletRequest request, String select)
    • getPreservationGriffins

      @POST @Path("/griffins") @Produces("application/json") @RequiresPermissions("griffins:read") public javax.ws.rs.core.Response getPreservationGriffins(@Context javax.servlet.http.HttpServletRequest request, String select)
    • uploadGriffins

      @POST @Path("/griffins") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("griffins:create") public javax.ws.rs.core.Response uploadGriffins(@Context javax.servlet.http.HttpServletRequest request, InputStream input)
    • uploadPreservationScenario

      @POST @Path("/scenarios") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("preservationScenarios:create") public javax.ws.rs.core.Response uploadPreservationScenario(@Context javax.servlet.http.HttpServletRequest request, InputStream input)
    • getGriffinById

      @GET @Path("griffin/{id}") @Produces("application/json") @Consumes("application/json") @RequiresPermissions("griffin:read") public javax.ws.rs.core.Response getGriffinById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") String id)
    • getPreservationScenarioById

      @GET @Path("scenario/{id}") @Produces("application/json") @Consumes("application/json") @RequiresPermissions("preservationScenario:read") public javax.ws.rs.core.Response getPreservationScenarioById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") String id)