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, init
getFilePath, getHash, getMD5Digest, setBlob
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBlob, getBlobs, getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlob
public SimpleCachableBlobHolder()
public SimpleCachableBlobHolder(Blob blob)
public SimpleCachableBlobHolder(List<Blob> blobs)
public SimpleCachableBlobHolder(String path)
public void load(String path) throws IOException
CachableBlobHolder
BlobHolder
from a file.load
in interface CachableBlobHolder
IOException
public void addDirectoryToList(File directory, String prefix) throws IOException
IOException
public String persist(String basePath) throws IOException
CachableBlobHolder
persist
in interface CachableBlobHolder
basePath
- the base path (existing directory) as determined by the callerIOException
protected void orderIndexPageFirst(List<Blob> blobs)
Copyright © 2016 Nuxeo SA. All rights reserved.