Class WebPreservationResource


  • @Path("/v1/api")
    @ApplicationPath("webresources")
    public class WebPreservationResource
    extends java.lang.Object
    WebPreservationResource class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getGriffinById​(javax.servlet.http.HttpServletRequest request, java.lang.String id)  
      javax.ws.rs.core.Response getPreservationGriffins​(javax.servlet.http.HttpServletRequest request, java.lang.String select)  
      javax.ws.rs.core.Response getPreservationScenarioById​(javax.servlet.http.HttpServletRequest request, java.lang.String id)  
      javax.ws.rs.core.Response getPreservationScenarios​(javax.servlet.http.HttpServletRequest request, java.lang.String select)  
      javax.ws.rs.core.Response launchPreservation​(javax.servlet.http.HttpServletRequest request, java.lang.String preservationString)  
      javax.ws.rs.core.Response uploadGriffins​(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)  
      javax.ws.rs.core.Response uploadPreservationScenario​(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • launchPreservation

        @POST
        @Path("/preservation")
        @Produces("application/json")
        @RequiresPermissions("preservation:update")
        public javax.ws.rs.core.Response launchPreservation​(@Context
                                                            javax.servlet.http.HttpServletRequest request,
                                                            java.lang.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,
                                                                  java.lang.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,
                                                                 java.lang.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,
                                                        java.io.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,
                                                                    java.io.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")
                                                        java.lang.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")
                                                                     java.lang.String id)