Class GoogleDriveBlobConverter
- java.lang.Object
-
- org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter
-
- All Implemented Interfaces:
Converter
public class GoogleDriveBlobConverter extends Object implements Converter
Converter that relies onBlobProvider
conversions.- Since:
- 7.3
-
-
Field Summary
Fields Modifier and Type Field Description protected ConverterDescriptor
descriptor
-
Constructor Summary
Constructors Constructor Description GoogleDriveBlobConverter()
-
Method Summary
All 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.protected Blob
convert(Blob blob, DocumentModel doc)
void
init(ConverterDescriptor descriptor)
Initializes the Converter.
-
-
-
Field Detail
-
descriptor
protected ConverterDescriptor descriptor
-
-
Method Detail
-
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) 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
-
convert
protected Blob convert(Blob blob, DocumentModel doc) throws IOException
- Throws:
IOException
-
-