Class InventoryUpdater.Builder
- java.lang.Object
-
- edu.wisc.library.ocfl.core.inventory.InventoryUpdater.Builder
-
- Enclosing class:
- InventoryUpdater
public static class InventoryUpdater.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InventoryUpdaterbuildBlankState(Inventory inventory)Constructs a new InventoryUpdater that does NOT copy over the state from the previous version.InventoryUpdaterbuildCopyState(Inventory inventory)Constructs a new InventoryUpdater that copies over the state from the previous version.InventoryUpdaterbuildCopyState(Inventory inventory, VersionNum versionNum)Constructs a new InventoryUpdater that copies over the state from a previous version.InventoryUpdaterbuildCopyStateMutable(Inventory inventory)Constructs a new InventoryUpdater that copies over the state from the previous version, and creates a mutable HEAD version.InventoryUpdater.BuildercontentPathMapperBuilder(ContentPathMapper.Builder contentPathMapperBuilder)
-
-
-
Method Detail
-
contentPathMapperBuilder
public InventoryUpdater.Builder contentPathMapperBuilder(ContentPathMapper.Builder contentPathMapperBuilder)
-
buildBlankState
public InventoryUpdater buildBlankState(Inventory inventory)
Constructs a new InventoryUpdater that does NOT copy over the state from the previous version.- Parameters:
inventory- the original inventory- Returns:
- inventory updater
-
buildCopyState
public InventoryUpdater buildCopyState(Inventory inventory)
Constructs a new InventoryUpdater that copies over the state from the previous version.- Parameters:
inventory- the original inventory- Returns:
- inventory updater
-
buildCopyState
public InventoryUpdater buildCopyState(Inventory inventory, VersionNum versionNum)
Constructs a new InventoryUpdater that copies over the state from a previous version.- Parameters:
inventory- the original inventoryversionNum- the id over the version to copy- Returns:
- inventory updater
-
buildCopyStateMutable
public InventoryUpdater buildCopyStateMutable(Inventory inventory)
Constructs a new InventoryUpdater that copies over the state from the previous version, and creates a mutable HEAD version.- Parameters:
inventory- the original inventory- Returns:
- inventory updater
-
-