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 BooleancanUseOOo2Htmlprotected static BooleancanUsePDF2Htmlprotected static ConversionServicecsDeprecated.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 BlobHolderconvert(BlobHolder blobHolder, Map<String,Serializable> parameters)Main method to handle the real Conversion Job.protected static booleangetCanUseOOo2Html()protected static booleangetCanUsePDF2Html()protected static ConversionServicegetConversionService()Deprecated.since 11.1.protected List<String>getConverterChain(String srcMT)voidinit(ConverterDescriptor descriptor)Initializes the Converter.ConverterCheckResultisConverterAvailable()Checks if the converter is available.
-
-
-
Field Detail
-
cs
@Deprecated protected static ConversionService cs
Deprecated.since 11.1. UseFramework.getService(Class)withConversionServiceinstead.
-
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)withConversionServiceinstead.
-
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:ConverterMain method to handle the real Conversion Job.Returned
BlobHoldermust implementCachableBlobHolder, otherwise result won't be cached.- Specified by:
convertin interfaceConverter- Throws:
ConversionException
-
init
public void init(ConverterDescriptor descriptor)
Description copied from interface:ConverterInitializes the Converter.This can be used to retrieve some configuration information from the XMap Descriptor.
-
isConverterAvailable
public ConverterCheckResult isConverterAvailable()
Description copied from interface:ExternalConverterChecks if the converter is available.- Specified by:
isConverterAvailablein interfaceExternalConverter
-
-