Class FedoraVersioning

    • Constructor Detail

      • FedoraVersioning

        public FedoraVersioning​(String externalPath)
        Create a new FedoraNodes instance for a given path
        Parameters:
        externalPath - the external path
    • Method Detail

      • addVersion

        @POST
        public javax.ws.rs.core.Response addVersion()
        Create a new version of a resource. If a memento-datetime header is provided, then the new version will be based off the provided body using that datetime. If one was not provided, then a version is created based off the current version of the resource.
        Returns:
        response
        Throws:
        InvalidChecksumException - thrown if one of the provided digests does not match the content
        MementoDatetimeFormatException - if the header value of memento-datetime is not RFC-1123 format
      • getVersionList

        @GET
        @Produces({"text/turtle;charset=utf-8;qs=1.0","application/ld+json;qs=0.8","text/rdf+n3;charset=utf-8","text/n3;charset=utf-8","application/rdf+xml","application/n-triples","text/plain;charset=utf-8","application/x-turtle","text/html;charset=utf-8","application/link-format"})
        public javax.ws.rs.core.Response getVersionList​(@HeaderParam("Accept")
                                                        String acceptValue)
                                                 throws IOException
        Get the list of versions for the object
        Parameters:
        acceptValue - the rdf media-type
        Returns:
        List of versions for the object as RDF
        Throws:
        IOException - in case of error extracting content
      • options

        @OPTIONS
        public javax.ws.rs.core.Response options()
        Outputs information about the supported HTTP methods, etc.
        Returns:
        the information about the supported HTTP methods, etc.
      • delete

        @DELETE
        @Produces("text/plain;charset=utf-8")
        public javax.ws.rs.core.Response delete()
        Can't delete TimeMaps
        Returns:
        the response to a delete request.