Uses of Interface
io.ocfl.api.OcflObjectUpdater
-
Packages that use OcflObjectUpdater Package Description io.ocfl.api -
-
Uses of OcflObjectUpdater in io.ocfl.api
Methods in io.ocfl.api that return OcflObjectUpdater Modifier and Type Method Description OcflObjectUpdaterOcflObjectUpdater. addFileFixity(String logicalPath, DigestAlgorithm algorithm, String value)Adds an entry to the object's fixity block.OcflObjectUpdaterOcflObjectUpdater. addPath(Path sourcePath, OcflOption... options)Adds a file or directory to the object.OcflObjectUpdaterOcflObjectUpdater. addPath(Path sourcePath, String destinationPath, OcflOption... options)Adds a file or directory to the object at the specified destinationPath.OcflObjectUpdaterOcflObjectUpdater. clearFixityBlock()Clears the object's fixity block.OcflObjectUpdaterOcflObjectUpdater. clearVersionState()The state of the current version of the object is cleared so that it does not reference any files.OcflObjectUpdaterOcflObjectUpdater. reinstateFile(VersionNum sourceVersionNum, String sourcePath, String destinationPath, OcflOption... options)Reinstates a file that existed in any version of the object into the current version.OcflObjectUpdaterOcflObjectUpdater. removeFile(String path)Removes a file from the object.OcflObjectUpdaterOcflObjectUpdater. renameFile(String sourcePath, String destinationPath, OcflOption... options)Renames an existing file within the object.OcflObjectUpdaterOcflObjectUpdater. unsafeAddPath(String digest, Path sourcePath, String destinationPath, OcflOption... options)Adds a file to the object at the specified destinationPath.OcflObjectUpdaterOcflObjectUpdater. writeFile(InputStream input, String destinationPath, OcflOption... options)Writes the contents of the InputStream to the object at the specified destinationPath.Method parameters in io.ocfl.api with type arguments of type OcflObjectUpdater Modifier and Type Method Description ObjectVersionIdMutableOcflRepository. stageChanges(ObjectVersionId objectId, VersionInfo versionInfo, Consumer<OcflObjectUpdater> objectUpdater)Stages changes to the mutable HEAD of the specified object.ObjectVersionIdOcflRepository. updateObject(ObjectVersionId objectVersionId, VersionInfo versionInfo, Consumer<OcflObjectUpdater> objectUpdater)Updates an existing object OR create a new object by selectively adding, removing, moving files within the object, and creating a new version that encapsulates all of the changes.
-