Class AnyToThumbnailConverter
- java.lang.Object
-
- org.nuxeo.ecm.platform.thumbnail.converter.AnyToThumbnailConverter
-
-
Field Summary
Fields Modifier and Type Field Description static String
ANY_TO_PDF_CONVERTER_NAME
static String
OFFICE_TO_PNG_CONVERTER_NAME
static String
OFFICE_TO_THUMBNAIL_CONVERTER_NAME
static String
PDF_MIME_TYPE
static Pattern
PDF_MIME_TYPE_PATTERN
-
Constructor Summary
Constructors Constructor Description AnyToThumbnailConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobHolder
convert(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 Detail
-
PDF_MIME_TYPE
public static final String PDF_MIME_TYPE
- See Also:
- Constant Field Values
-
PDF_MIME_TYPE_PATTERN
public static final Pattern PDF_MIME_TYPE_PATTERN
-
ANY_TO_PDF_CONVERTER_NAME
public static final String ANY_TO_PDF_CONVERTER_NAME
- See Also:
- Constant Field Values
-
OFFICE_TO_THUMBNAIL_CONVERTER_NAME
public static final String OFFICE_TO_THUMBNAIL_CONVERTER_NAME
- See Also:
- Constant Field Values
-
OFFICE_TO_PNG_CONVERTER_NAME
public static final String OFFICE_TO_PNG_CONVERTER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
isPDFMimeType
public static boolean isPDFMimeType(String mimeType)
-
init
public void init(ConverterDescriptor descriptor)
Description copied from interface:Converter
Initializes the Converter.This can be used to retrieve some configuration information from the XMap Descriptor.
-
convert
public BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters)
Description copied from interface:Converter
Main method to handle the real Conversion Job.Returned
BlobHolder
must implementCachableBlobHolder
, otherwise result won't be cached.
-
-