public class OpenOfficeContentTransformerWorker extends OOoContentTransformerHelper implements ContentTransformerWorker, org.springframework.beans.factory.InitializingBean
transformerDebug
transformerConfig
Constructor and Description |
---|
OpenOfficeContentTransformerWorker() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
convert(File tempFromFile,
net.sf.jooreports.converter.DocumentFormat sourceFormat,
File tempToFile,
net.sf.jooreports.converter.DocumentFormat targetFormat) |
protected net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter |
getDefaultConverter(net.sf.jooreports.openoffice.connection.OpenOfficeConnection connection) |
protected org.apache.commons.logging.Log |
getLogger() |
protected String |
getTempFilePrefix() |
boolean |
isAvailable()
Checks if this worker is available.
|
void |
saveContentInFile(String sourceMimetype,
org.alfresco.service.cmr.repository.ContentReader reader,
File file)
Populates a file with the content in the reader.
|
void |
setConnection(net.sf.jooreports.openoffice.connection.OpenOfficeConnection connection) |
void |
setConverter(net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter converter)
Explicitly set the converter to be used.
|
encodeAsUtf8, getComments, getVersionString, isTransformable, isTransformationBlocked, setDocumentFormatsConfiguration, setTransformerDebug, transform
deprecatedSetter, equals, getBeanName, getCommentsOnlySupports, getExtensionOrAny, getMimetype, getMimetypeService, getName, getSimpleName, hashCode, isExplicitTransformation, isSupportedTransformation, onlySupports, register, setBeanName, setExplicitTransformations, setMimetypeService, setSupportedTransformations, setTransformerConfig, setUnsupportedTransformations, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getComments, getVersionString, isTransformable, transform
public void setConnection(net.sf.jooreports.openoffice.connection.OpenOfficeConnection connection)
connection
- the connection that the converter usespublic void setConverter(net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter converter)
setConnection(OpenOfficeConnection)
.
If not set, then the OpenOfficeDocumentConverter
will be used.
converter
- the converter to use.protected org.apache.commons.logging.Log getLogger()
getLogger
in class OOoContentTransformerHelper
protected String getTempFilePrefix()
getTempFilePrefix
in class OOoContentTransformerHelper
public boolean isAvailable()
ContentTransformerWorker
isAvailable
in interface ContentTransformerWorker
isAvailable
in class OOoContentTransformerHelper
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class OOoContentTransformerHelper
Exception
protected net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter getDefaultConverter(net.sf.jooreports.openoffice.connection.OpenOfficeConnection connection)
protected void convert(File tempFromFile, net.sf.jooreports.converter.DocumentFormat sourceFormat, File tempToFile, net.sf.jooreports.converter.DocumentFormat targetFormat)
convert
in class OOoContentTransformerHelper
public void saveContentInFile(String sourceMimetype, org.alfresco.service.cmr.repository.ContentReader reader, File file) throws org.alfresco.service.cmr.repository.ContentIOException
OOoContentTransformerHelper
saveContentInFile
in class OOoContentTransformerHelper
org.alfresco.service.cmr.repository.ContentIOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.