Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,21 @@
*/
public class OcflRepositoryBuilder {

private OcflStorage storage;
private OcflConfig config;
private OcflExtensionConfig defaultLayoutConfig;
private Path workDir;
private boolean verifyStaging;
private Duration fileLockTimeoutDuration;

private ObjectLock objectLock;
private Cache<String, Inventory> inventoryCache;
private InventoryMapper inventoryMapper;
private LogicalPathMapper logicalPathMapper;
private ContentPathConstraintProcessor contentPathConstraintProcessor;
private ObjectDetailsDatabase objectDetailsDb;
private UnsupportedExtensionBehavior unsupportedBehavior;
private Set<String> ignoreUnsupportedExtensions;
protected OcflStorage storage;
protected OcflConfig config;
protected OcflExtensionConfig defaultLayoutConfig;
protected Path workDir;
protected boolean verifyStaging;
protected Duration fileLockTimeoutDuration;

protected ObjectLock objectLock;
protected Cache<String, Inventory> inventoryCache;
protected InventoryMapper inventoryMapper;
protected LogicalPathMapper logicalPathMapper;
protected ContentPathConstraintProcessor contentPathConstraintProcessor;
protected ObjectDetailsDatabase objectDetailsDb;
protected UnsupportedExtensionBehavior unsupportedBehavior;
protected Set<String> ignoreUnsupportedExtensions;

/**
* Constructs a local file system based OCFL repository sensible defaults that can be overridden prior to calling
Expand Down Expand Up @@ -454,14 +454,14 @@ private <T extends OcflRepository> T buildInternal(Class<T> clazz) {
fileLockTimeoutDuration));
}

private OcflStorage cache(OcflStorage storage) {
protected OcflStorage cache(OcflStorage storage) {
if (inventoryCache != null) {
return new CachingOcflStorage(inventoryCache, storage);
}
return storage;
}

private OcflStorage db(OcflStorage storage) {
protected OcflStorage db(OcflStorage storage) {
if (objectDetailsDb != null) {
return new ObjectDetailsDbOcflStorage(objectDetailsDb, storage);
}
Expand Down
Loading