public class PDFViewerStorage extends Object
PDFViewerService but uses
CloudFile instead of JCR Node for file data.ExoCache as a weak storage of spooled locally cloud files. The storage will be
cleaned if file/drive will be removed or the cache will be evicted.JodConverterService. | Modifier and Type | Class and Description |
|---|---|
protected class |
PDFViewerStorage.Evicter |
protected class |
PDFViewerStorage.FileKey |
protected class |
PDFViewerStorage.FilesCleaner |
class |
PDFViewerStorage.PDFFile |
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,PDFViewerStorage.FilesCleaner> |
cleaners |
static long |
FILE_LIVE_TIME |
protected org.exoplatform.services.cms.jodconverter.JodConverterService |
jodConverter |
static int |
MAX_FILENAME_LENGTH |
static String |
PAGE_IMAGE_EXT |
static String |
PAGE_IMAGE_TYPE |
static String |
PDF_EXT |
static String |
PDF_TYPE |
protected File |
rootDir |
protected ConcurrentHashMap<PDFViewerStorage.FileKey,PDFViewerStorage.PDFFile> |
spool |
| Constructor and Description |
|---|
PDFViewerStorage(org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.services.cms.jodconverter.JodConverterService jodConverter) |
| Modifier and Type | Method and Description |
|---|---|
PDFViewerStorage.PDFFile |
createFile(String repository,
String workspace,
JCRLocalCMISDrive drive,
org.exoplatform.clouddrive.CloudFile file) |
PDFViewerStorage.PDFFile |
getFile(String repository,
String workspace,
org.exoplatform.clouddrive.CloudDrive drive,
String fileId) |
public static final int MAX_FILENAME_LENGTH
public static final long FILE_LIVE_TIME
public static final String PAGE_IMAGE_TYPE
public static final String PDF_TYPE
public static final String PAGE_IMAGE_EXT
public static final String PDF_EXT
protected final ConcurrentHashMap<PDFViewerStorage.FileKey,PDFViewerStorage.PDFFile> spool
protected final org.exoplatform.services.cms.jodconverter.JodConverterService jodConverter
protected final File rootDir
protected final ConcurrentHashMap<String,PDFViewerStorage.FilesCleaner> cleaners
public PDFViewerStorage(org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.services.cms.jodconverter.JodConverterService jodConverter)
throws IOException
IOExceptionpublic PDFViewerStorage.PDFFile getFile(String repository, String workspace, org.exoplatform.clouddrive.CloudDrive drive, String fileId) throws org.exoplatform.clouddrive.DriveRemovedException, javax.jcr.RepositoryException
org.exoplatform.clouddrive.DriveRemovedExceptionjavax.jcr.RepositoryExceptionpublic PDFViewerStorage.PDFFile createFile(String repository, String workspace, JCRLocalCMISDrive drive, org.exoplatform.clouddrive.CloudFile file) throws org.exoplatform.clouddrive.CloudDriveException, org.exoplatform.clouddrive.DriveRemovedException, javax.jcr.RepositoryException, IOException
org.exoplatform.clouddrive.CloudDriveExceptionorg.exoplatform.clouddrive.DriveRemovedExceptionjavax.jcr.RepositoryExceptionIOExceptionCopyright © 2003–2015 eXo Platform SAS. All rights reserved.