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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(BlobHolder blobHolder, Map<String, Serializable> parameters) Main method to handle the real Conversion Job.voidinit(ConverterDescriptor descriptor) Initializes the Converter.static booleanisPDFMimeType(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:ConverterInitializes the Converter.This can be used to retrieve some configuration information from the XMap Descriptor.
-
convert
Description copied from interface:ConverterMain method to handle the real Conversion Job.Returned
BlobHoldermust implementCachableBlobHolder, otherwise result won't be cached.
-