Class DefaultOcflStorageInitializer

    • Constructor Detail

      • DefaultOcflStorageInitializer

        public DefaultOcflStorageInitializer​(Storage storage,
                                             com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • initializeStorage

        public OcflStorageLayoutExtension initializeStorage​(OcflVersion ocflVersion,
                                                            OcflExtensionConfig layoutConfig,
                                                            ExtensionSupportEvaluator supportEvaluator)
        Initializes a new OCFL storage root when the storage root does not already exist. If the storage root does exist, then the configuration is examined to ensure that it matches what was configured programmatically. If nothing was configured programmatically, then the configuration on disk is used without validation.
        Specified by:
        initializeStorage in interface OcflStorageInitializer
        Parameters:
        ocflVersion - OCFL version the repository conforms to
        layoutConfig - storage layout configuration, may be null when not creating a new repository
        supportEvaluator - repository extension evaluator
        Returns:
        the storage layout extension the repository uses