Class 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 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 converted
        createdTimestamp - the current timestamp
        versionInfo - information about the version. Can be null.
        Returns:
        A new inventory with the mutable HEAD version rewritten.