Package org.nuxeo.ecm.core.convert.cache
Class SimpleCachableBlobHolder
java.lang.Object
org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
org.nuxeo.ecm.core.convert.cache.SimpleCachableBlobHolder
- All Implemented Interfaces:
BlobHolder
,CachableBlobHolder
- Direct Known Subclasses:
ZipCachableBlobHolder
Cachable implementation of the
SimpleBlobHolder
.- Author:
- tiry
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
blobs, creationDate
-
Constructor Summary
ConstructorDescriptionSimpleCachableBlobHolder
(List<Blob> blobs) SimpleCachableBlobHolder
(Blob blob) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDirectoryToList
(File directory, String prefix) void
Reloads theBlobHolder
from a file.protected void
orderIndexPageFirst
(List<Blob> blobs) Rearrange blobs to have smallest index.html page as the first blob.Persists the blobHolder to disk.Methods inherited from class org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
getBasePath, getBlob, getBlobs, getModificationDate, getProperties, getProperty, init, setBlob
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getFilePath, getHash, getMD5Digest
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.api.blobholder.BlobHolder
getBlob, getBlobs, getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlob
-
Constructor Details
-
SimpleCachableBlobHolder
public SimpleCachableBlobHolder() -
SimpleCachableBlobHolder
-
SimpleCachableBlobHolder
-
SimpleCachableBlobHolder
-
-
Method Details
-
load
Description copied from interface:CachableBlobHolder
Reloads theBlobHolder
from a file.- Specified by:
load
in interfaceCachableBlobHolder
- Throws:
IOException
-
addDirectoryToList
- Throws:
IOException
-
persist
Description copied from interface:CachableBlobHolder
Persists the blobHolder to disk.- Specified by:
persist
in interfaceCachableBlobHolder
- Parameters:
basePath
- the base path (existing directory) as determined by the caller- Returns:
- the full path of the newly created FileSystem resource
- Throws:
IOException
-
orderIndexPageFirst
Rearrange blobs to have smallest index.html page as the first blob.- Since:
- 5.7.1
-