@Alternative
public class FileMementoService
extends java.lang.Object
implements org.trellisldp.api.MementoService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_FILE_MEMENTO_PATH
The configuration key controlling the base filesystem path for memento storage.
|
| Constructor and Description |
|---|
FileMementoService()
Create a file-based memento service.
|
FileMementoService(java.lang.String path)
Create a file-based memento service.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<java.lang.Void> |
delete(org.apache.commons.rdf.api.IRI identifier,
java.time.Instant time)
Delete a memento at the given time.
|
java.util.concurrent.CompletionStage<org.trellisldp.api.Resource> |
get(org.apache.commons.rdf.api.IRI identifier,
java.time.Instant time) |
java.util.concurrent.CompletionStage<java.util.SortedSet<java.time.Instant>> |
mementos(org.apache.commons.rdf.api.IRI identifier) |
java.util.concurrent.CompletionStage<java.lang.Void> |
put(org.trellisldp.api.Resource resource) |
java.util.concurrent.CompletionStage<java.lang.Void> |
put(org.trellisldp.api.Resource resource,
java.time.Instant time)
Create a Memento from a resource at a particular time.
|
public static final java.lang.String CONFIG_FILE_MEMENTO_PATH
public FileMementoService()
public FileMementoService(java.lang.String path)
path - the file pathpublic java.util.concurrent.CompletionStage<java.lang.Void> put(org.trellisldp.api.Resource resource)
put in interface org.trellisldp.api.MementoServicepublic java.util.concurrent.CompletionStage<java.lang.Void> put(org.trellisldp.api.Resource resource,
java.time.Instant time)
resource - the resourcetime - the time to which the Memento correspondspublic java.util.concurrent.CompletionStage<org.trellisldp.api.Resource> get(org.apache.commons.rdf.api.IRI identifier,
java.time.Instant time)
get in interface org.trellisldp.api.MementoServicepublic java.util.concurrent.CompletionStage<java.util.SortedSet<java.time.Instant>> mementos(org.apache.commons.rdf.api.IRI identifier)
mementos in interface org.trellisldp.api.MementoServicepublic java.util.concurrent.CompletionStage<java.lang.Void> delete(org.apache.commons.rdf.api.IRI identifier,
java.time.Instant time)
identifier - the resource identifiertime - the memento time