Class ResourceServices

    • Constructor Detail

      • ResourceServices

        public ResourceServices()
    • Method Detail

      • createResource

        @POST
        @Path("/content")
        @Consumes("multipart/form-data")
        @Produces("application/json")
        public ResourceUploadResponse createResource​(InputStream uploadedInputStream,
                                                     org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
                                                     @QueryParam("type")
                                                     String resourceType,
                                                     @QueryParam("duplicateCheck")
                                                     Boolean checkForDuplicate)
                                              throws Exception
        Throws:
        Exception
      • saveResource

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public Resource saveResource​(Resource resource)
      • saveResourceContent

        @POST
        @Path("/{id}/content")
        @Consumes("multipart/form-data")
        @Produces("application/json")
        public ResourceUploadResponse saveResourceContent​(@PathParam("id")
                                                          String resourceId,
                                                          InputStream uploadedInputStream,
                                                          org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail)
                                                   throws Exception
        Throws:
        Exception
      • getResourceContent

        @GET
        @Path("/{id}/content")
        public javax.ws.rs.core.Response getResourceContent​(@PathParam("id")
                                                            String resourceId,
                                                            @QueryParam("inline")
                                                            boolean inline)
                                                     throws IOException
        Throws:
        IOException
      • deleteResource

        @DELETE
        @Path("/{id}")
        public void deleteResource​(@PathParam("id")
                                   String resourceId)
      • getResourceRevisionContent

        @GET
        @Path("/revision/{id}/content")
        public javax.ws.rs.core.Response getResourceRevisionContent​(@PathParam("id")
                                                                    String resourceRevisionId,
                                                                    @QueryParam("inline")
                                                                    boolean inline)
                                                             throws IOException
        Throws:
        IOException
      • getResponseForResourceRevisionContent

        protected javax.ws.rs.core.Response getResponseForResourceRevisionContent​(ResourceRevisionContent resourceContent,
                                                                                  boolean inline)