Class Mementoize

    • Constructor Detail

      • Mementoize

        public Mementoize()
        For use with RESTeasy and CDI proxies.
        API Note:
        This construtor is used by CDI runtimes that require a public, no-argument constructor. It should not be invoked directly in user code.
    • Method Detail

      • execute

        public CompletionStage<Void> execute​(Metadata metadata,
                                             Instant modified,
                                             Dataset data,
                                             UUID creation)
        Store a Memento. Note that the value for modified is truncated to seconds because Memento requires HTTP time management.
        Parameters:
        metadata - metadata for this resource
        modified - the time at which this resource was last modified
        data - RDF for this resource
        creation - a time-based (version 1) UUID for the moment this resource is created
        Returns:
        whether and when it has been inserted