public interface BinaryService extends RetrievalService<Binary>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateIdentifier()
Get a new identifier.
|
java.util.concurrent.CompletionStage<java.lang.Void> |
purgeContent(org.apache.commons.rdf.api.IRI identifier)
Purge the content from its corresponding datastore.
|
java.util.concurrent.CompletionStage<java.lang.Void> |
setContent(BinaryMetadata metadata,
java.io.InputStream stream)
Set the content for a binary object.
|
getjava.util.concurrent.CompletionStage<java.lang.Void> setContent(BinaryMetadata metadata, java.io.InputStream stream)
metadata - the binary metadatastream - the contentjava.util.concurrent.CompletionStage<java.lang.Void> purgeContent(org.apache.commons.rdf.api.IRI identifier)
identifier - the binary object identifierCompletionStage will complete exceptionally and can be handled with
CompletionStage.handle(java.util.function.BiFunction<? super T, java.lang.Throwable, ? extends U>), CompletionStage.exceptionally(java.util.function.Function<java.lang.Throwable, ? extends T>) or similar methods.java.lang.String generateIdentifier()