Class MutableHeadInventoryCommitter
- java.lang.Object
-
- edu.wisc.library.ocfl.core.inventory.MutableHeadInventoryCommitter
-
public final class MutableHeadInventoryCommitter extends Object
Converts a mutable HEAD version into a regular OCFL version. This involves rewriting the manifest and fixity fields so that they no longer reference files within the extensions directory.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Inventorycommit(Inventory original, OffsetDateTime createdTimestamp, VersionInfo versionInfo)Converts a mutable HEAD version into a regular OCFL version.
-
-
-
Method Detail
-
commit
public static Inventory commit(Inventory original, OffsetDateTime createdTimestamp, VersionInfo versionInfo)
Converts a mutable HEAD version into a regular OCFL version. This involves rewriting the manifest and fixity fields so that they no longer reference files within the extensions directory.- Parameters:
original- the inventory that contains a mutable head that should be convertedcreatedTimestamp- the current timestampversionInfo- information about the version. Can be null.- Returns:
- A new inventory with the mutable HEAD version rewritten.
-
-