Class HtmlPreviewConverter
- java.lang.Object
-
- org.nuxeo.ecm.platform.preview.converters.HtmlPreviewConverter
-
- All Implemented Interfaces:
Converter
,ExternalConverter
public class HtmlPreviewConverter extends Object implements ExternalConverter
-
-
Field Summary
Fields Modifier and Type Field Description protected static Boolean
canUseOOo2Html
protected static Boolean
canUsePDF2Html
protected static ConversionService
cs
Deprecated.since 11.1.
-
Constructor Summary
Constructors Constructor Description HtmlPreviewConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BlobHolder
convert(BlobHolder blobHolder, Map<String,Serializable> parameters)
Main method to handle the real Conversion Job.protected static boolean
getCanUseOOo2Html()
protected static boolean
getCanUsePDF2Html()
protected static ConversionService
getConversionService()
Deprecated.since 11.1.protected List<String>
getConverterChain(String srcMT)
void
init(ConverterDescriptor descriptor)
Initializes the Converter.ConverterCheckResult
isConverterAvailable()
Checks if the converter is available.
-
-
-
Field Detail
-
cs
@Deprecated protected static ConversionService cs
Deprecated.since 11.1. UseFramework.getService(Class)
withConversionService
instead.
-
canUsePDF2Html
protected static Boolean canUsePDF2Html
-
canUseOOo2Html
protected static Boolean canUseOOo2Html
-
-
Method Detail
-
getConversionService
@Deprecated protected static ConversionService getConversionService()
Deprecated.since 11.1. UseFramework.getService(Class)
withConversionService
instead.
-
getCanUsePDF2Html
protected static boolean getCanUsePDF2Html()
-
getCanUseOOo2Html
protected static boolean getCanUseOOo2Html()
-
convert
public BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
Description copied from interface:Converter
Main method to handle the real Conversion Job.Returned
BlobHolder
must implementCachableBlobHolder
, otherwise result won't be cached.- Specified by:
convert
in interfaceConverter
- Throws:
ConversionException
-
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.
-
isConverterAvailable
public ConverterCheckResult isConverterAvailable()
Description copied from interface:ExternalConverter
Checks if the converter is available.- Specified by:
isConverterAvailable
in interfaceExternalConverter
-
-