Class FileSystemOcflStorageInitializer
- java.lang.Object
-
- edu.wisc.library.ocfl.core.storage.filesystem.FileSystemOcflStorageInitializer
-
public class FileSystemOcflStorageInitializer extends Object
Prepares an OCFL storage root for use.
-
-
Constructor Summary
Constructors Constructor Description FileSystemOcflStorageInitializer(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OcflStorageLayoutExtensioninitializeStorage(Path repositoryRoot, OcflVersion ocflVersion, OcflExtensionConfig layoutConfig)Prepares an OCFL storage root for use.
-
-
-
Method Detail
-
initializeStorage
public OcflStorageLayoutExtension initializeStorage(Path repositoryRoot, OcflVersion ocflVersion, OcflExtensionConfig layoutConfig)
Prepares an OCFL storage root for use. If the root does not exist, it is created. If the root does exist, then it ensures that the storage layout is configured correctly.- Parameters:
repositoryRoot- the OCFL storage rootocflVersion- the OCFL version, must match the version declared in the storage rootlayoutConfig- the storage layout configuration, if null the configuration will be loaded from disk- Returns:
- OCFL storage layout extension configured for the repo
-
-