public class VersionManager extends Object
This class also maintans the logicalToPhysicalCache which contains the physical keys for virtual objects.
This is placed here, as the DownloadBuilder
uses this class to fetch the physical keys for an object version
(even for the main one).
Constructor and Description |
---|
VersionManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCacheForVirtualObject(VirtualObject virtualObject)
Clears the cache for a given
VirtualObject . |
protected sirius.kernel.commons.Tuple<VirtualObject,Map<String,String>> |
fetchPhysicalObjects(DownloadBuilder downloadBuilder)
Returns the targeted
VirtualObject and its known physical objects for versions. |
protected String |
fetchVersion(sirius.kernel.commons.Tuple<VirtualObject,Map<String,String>> physicalObjects,
String version)
Fetches the pyhsical key for a version from the tuple retrieved via
fetchPhysicalObjects(DownloadBuilder) |
protected sirius.kernel.commons.Tuple<VirtualObject,Map<String,String>> fetchPhysicalObjects(DownloadBuilder downloadBuilder)
VirtualObject
and its known physical objects for versions.downloadBuilder
- the buider which specifies the key and bucket of the virtual object to resolveprotected void clearCacheForVirtualObject(VirtualObject virtualObject)
VirtualObject
.virtualObject
- the virtual objectprotected String fetchVersion(sirius.kernel.commons.Tuple<VirtualObject,Map<String,String>> physicalObjects, String version)
fetchPhysicalObjects(DownloadBuilder)
physicalObjects
- the map of already resolved keysversion
- the version to resolve, see DownloadBuilder.withVersion(String)
for possible
valuesCopyright © 2018. All rights reserved.