Class AnyToThumbnailConverter
java.lang.Object
org.nuxeo.ecm.platform.thumbnail.converter.AnyToThumbnailConverter
- All Implemented Interfaces:
Converter
Base converter choosing the correct convert to generate a thumbnail according to the Blob's mime type.
- Since:
- 5.8
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(BlobHolder blobHolder, Map<String, Serializable> parameters) Main method to handle the real Conversion Job.void
init
(ConverterDescriptor descriptor) Initializes the Converter.static boolean
isPDFMimeType
(String mimeType)
-
Field Details
-
PDF_MIME_TYPE
- See Also:
-
PDF_MIME_TYPE_PATTERN
-
ANY_TO_PDF_CONVERTER_NAME
- See Also:
-
OFFICE_TO_THUMBNAIL_CONVERTER_NAME
- See Also:
-
OFFICE_TO_PNG_CONVERTER_NAME
- See Also:
-
-
Constructor Details
-
AnyToThumbnailConverter
public AnyToThumbnailConverter()
-
-
Method Details
-
isPDFMimeType
-
init
Description copied from interface:Converter
Initializes the Converter.This can be used to retrieve some configuration information from the XMap Descriptor.
-
convert
Description copied from interface:Converter
Main method to handle the real Conversion Job.Returned
BlobHolder
must implementCachableBlobHolder
, otherwise result won't be cached.
-