public class DefaultPdfDocumentContentConverterService extends AbstractDocumentContentConverterService implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, PdfDocumentContentConverterService
This class is responsible for document content conversion (usually for *->pdf for preview and pdf download purposes) Service uses cache (memory and disk) to minimize unneeded conversions.
| Constructor and Description |
|---|
DefaultPdfDocumentContentConverterService(ContentManager contentManager,
WorkObjectService workObjectService,
String cacheTempPath,
String tempFileNamePrefix,
List<DocumentContentConverter> contentConverters,
StatisticsAwareCache statisticsAwareCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
clean up temp directory files in the case of context refresh event.
|
evictCachedFile, getAcceptableMediaTypes, getConvertedContent, getConvertedContentMetadata, getConvertedContentMetadataAndInputStream, getConvertedContentReference, isConvertible, shutdownequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevictCachedFile, getAcceptableMediaTypes, getConvertedContent, getConvertedContentMetadata, getConvertedContentMetadataAndInputStream, getConvertedContentReference, isConvertible, shutdownpublic DefaultPdfDocumentContentConverterService(ContentManager contentManager, WorkObjectService workObjectService, String cacheTempPath, String tempFileNamePrefix, List<DocumentContentConverter> contentConverters, StatisticsAwareCache statisticsAwareCache)
contentManager - content manager to use for obtaining contentworkObjectService - generic workobject service for resolving workobjectscacheTempPath - directory in which temporary converted content is stored. If null or empty default path (${edoras-one.home}/temp) is used. Directory is always cleaned
up on the spring application context refresh.tempFileNamePrefix - file name prefix used for cached files (can be empty)contentConverters - converters to use for content conversionstatisticsAwareCache - One cache.public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
clean up temp directory files in the case of context refresh event.
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>event - context refresh eventCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.