public class SimpleCachableBlobHolder extends SimpleBlobHolder implements CachableBlobHolder
SimpleBlobHolder.blobs, creationDate| Constructor and Description |
|---|
SimpleCachableBlobHolder() |
SimpleCachableBlobHolder(Blob blob) |
SimpleCachableBlobHolder(List<Blob> blobs) |
SimpleCachableBlobHolder(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDirectoryToList(File directory,
String prefix) |
void |
load(String path)
Reloads the
BlobHolder from a file. |
protected void |
orderIndexPageFirst(List<Blob> blobs)
Rearrange blobs to have smallest index.html page as the first blob.
|
String |
persist(String basePath)
Persists the blobHolder to disk.
|
getBasePath, getBlob, getBlobs, getModificationDate, getProperties, getProperty, initgetFilePath, getHash, getMD5Digest, setBlobclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlob, getBlobs, getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlobpublic SimpleCachableBlobHolder()
public SimpleCachableBlobHolder(Blob blob)
public SimpleCachableBlobHolder(List<Blob> blobs)
public SimpleCachableBlobHolder(String path)
public void load(String path) throws IOException
CachableBlobHolderBlobHolder from a file.load in interface CachableBlobHolderIOExceptionpublic void addDirectoryToList(File directory, String prefix) throws IOException
IOExceptionpublic String persist(String basePath) throws IOException
CachableBlobHolderpersist in interface CachableBlobHolderbasePath - the base path (existing directory) as determined by the callerIOExceptionprotected void orderIndexPageFirst(List<Blob> blobs)
Copyright © 2019 Nuxeo. All rights reserved.