public class ConverterBasedContentDiffAdapter extends AbstractContentDiffAdapter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_CONVERTER_NAME |
protected String |
defaultFieldXPath |
protected org.nuxeo.ecm.platform.mimetype.interfaces.MimetypeRegistry |
mimeTypeService |
adaptedDoc| Constructor and Description |
|---|
ConverterBasedContentDiffAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSecondaryBlobs(List<org.nuxeo.ecm.core.api.Blob> blobResults,
org.nuxeo.ecm.core.api.blobholder.BlobHolder blobHolder,
String mainBlobFilename) |
boolean |
cachable() |
void |
cleanup() |
protected org.nuxeo.ecm.core.api.blobholder.BlobHolder |
getBlobHolder(org.nuxeo.ecm.core.api.DocumentModel doc,
String xPath) |
List<org.nuxeo.ecm.core.api.Blob> |
getContentDiffBlobs(org.nuxeo.ecm.core.api.DocumentModel otherDoc,
ContentDiffConversionType conversionType,
Locale locale) |
List<org.nuxeo.ecm.core.api.Blob> |
getContentDiffBlobs(org.nuxeo.ecm.core.api.DocumentModel otherDoc,
String xpath,
ContentDiffConversionType conversionType,
Locale locale) |
protected org.nuxeo.ecm.core.convert.api.ConversionService |
getConversionService()
Gets the conversion service.
|
protected org.nuxeo.ecm.core.api.blobholder.BlobHolder |
getConvertedBlobHolder(org.nuxeo.ecm.core.api.blobholder.BlobHolder blobHolder,
String converterName)
Returns a blob holder converted using the specified converter name.
|
protected String |
getDefaultContentDiffFieldXPath() |
protected org.nuxeo.ecm.core.api.impl.blob.StringBlob |
getHtmlStringBlob(org.nuxeo.ecm.core.api.Blob blob) |
protected String |
getMimeType(org.nuxeo.ecm.core.api.Blob blob) |
void |
setDefaultContentDiffFieldXPath(String xPath) |
protected void |
setMimeType(org.nuxeo.ecm.core.api.blobholder.BlobHolder result) |
getContentDiffAdapterManager, getFileContentDiffBlobs, getFileContentDiffBlobs, getFileContentDiffURL, getFileContentDiffURL, setAdaptedDocumentprotected static final String DEFAULT_CONVERTER_NAME
protected String defaultFieldXPath
protected org.nuxeo.ecm.platform.mimetype.interfaces.MimetypeRegistry mimeTypeService
public List<org.nuxeo.ecm.core.api.Blob> getContentDiffBlobs(org.nuxeo.ecm.core.api.DocumentModel otherDoc, ContentDiffConversionType conversionType, Locale locale) throws ContentDiffException, org.nuxeo.ecm.core.convert.api.ConversionException
getContentDiffBlobs in class AbstractContentDiffAdapterContentDiffExceptionorg.nuxeo.ecm.core.convert.api.ConversionExceptionpublic List<org.nuxeo.ecm.core.api.Blob> getContentDiffBlobs(org.nuxeo.ecm.core.api.DocumentModel otherDoc, String xpath, ContentDiffConversionType conversionType, Locale locale) throws ContentDiffException, org.nuxeo.ecm.core.convert.api.ConversionException
getContentDiffBlobs in class AbstractContentDiffAdapterContentDiffExceptionorg.nuxeo.ecm.core.convert.api.ConversionExceptionpublic void cleanup()
public boolean cachable()
public void setDefaultContentDiffFieldXPath(String xPath)
protected org.nuxeo.ecm.core.api.blobholder.BlobHolder getBlobHolder(org.nuxeo.ecm.core.api.DocumentModel doc,
String xPath)
throws org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.ClientExceptionprotected String getMimeType(org.nuxeo.ecm.core.api.Blob blob)
protected void setMimeType(org.nuxeo.ecm.core.api.blobholder.BlobHolder result)
throws org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.ClientExceptionprotected String getDefaultContentDiffFieldXPath()
protected org.nuxeo.ecm.core.api.blobholder.BlobHolder getConvertedBlobHolder(org.nuxeo.ecm.core.api.blobholder.BlobHolder blobHolder,
String converterName)
throws org.nuxeo.ecm.core.convert.api.ConversionException,
org.nuxeo.ecm.core.api.ClientException
blobHolder - the blob holderconverterName - the converter nameorg.nuxeo.ecm.core.api.ClientException - if an error occurs while getting the conversion
serviceorg.nuxeo.ecm.core.convert.api.ConversionException - if an error occurs while converting the blob
holderprotected org.nuxeo.ecm.core.api.impl.blob.StringBlob getHtmlStringBlob(org.nuxeo.ecm.core.api.Blob blob)
throws ContentDiffException
ContentDiffExceptionprotected void addSecondaryBlobs(List<org.nuxeo.ecm.core.api.Blob> blobResults, org.nuxeo.ecm.core.api.blobholder.BlobHolder blobHolder, String mainBlobFilename) throws org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.ClientExceptionprotected final org.nuxeo.ecm.core.convert.api.ConversionService getConversionService()
throws org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.ClientException - the client exceptionCopyright © 2019 Nuxeo SA. All rights reserved.