BaseFutureArtifactService
Java-friendly base for implementing an ArtifactService. The engine's methods are suspend; a Java subclass returns CompletableFutures instead. Return each future promptly and do any blocking work inside it, not before returning it.
Functions
Link copied to clipboard
Deletes an artifact.
Link copied to clipboard
Lists the filenames visible to a session: its own artifacts plus the user's user: ones.
Link copied to clipboard
Lists all the versions (as revision IDs) of an artifact.
Link copied to clipboard
suspend override fun loadArtifact(sessionKey: SessionKey, filename: String, version: Int? = null): Part?
Gets an artifact.
Link copied to clipboard
suspend override fun saveAndReloadArtifact(sessionKey: SessionKey, filename: String, artifact: Part): Part
Saves an artifact and returns it with fileData if available.
Link copied to clipboard
Saves an artifact.