|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.content.transform.AbstractContentTransformer
org.alfresco.repo.content.transform.RemoteOpenOfficeContentTransformer
public class RemoteOpenOfficeContentTransformer
Makes use of the http://sourceforge.net/projects/joott/JOOConverter
library to
perform OpenOffice-drive conversions.
Constructor Summary | |
---|---|
RemoteOpenOfficeContentTransformer()
|
Method Summary | |
---|---|
double |
getReliability(java.lang.String sourceMimetype,
java.lang.String targetMimetype)
Added for backward compatibility of existing content transformers |
boolean |
isConnected()
|
void |
register()
Registers this instance with the registry
if it is present. |
void |
setConnection(net.sf.jooreports.openoffice.connection.OpenOfficeConnection connection)
|
void |
setDocumentFormatsConfiguration(java.lang.String path)
Set a non-default location from which to load the document format mappings. |
protected void |
transformInternal(org.alfresco.service.cmr.repository.ContentReader reader,
org.alfresco.service.cmr.repository.ContentWriter writer,
java.util.Map options)
Method to be implemented by subclasses wishing to make use of the common infrastructural code provided by this class. |
Methods inherited from class org.alfresco.repo.content.transform.AbstractContentTransformer |
---|
checkReliability, getExplicitTransformations, getMimetype, getMimetypeService, getTransformationTime, isExplicitTransformation, isTransformable, recordTime, setExplicitTransformations, setMimetypeService, setRegistry, toString, transform, transform, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteOpenOfficeContentTransformer()
Method Detail |
---|
public void setConnection(net.sf.jooreports.openoffice.connection.OpenOfficeConnection connection)
public void setDocumentFormatsConfiguration(java.lang.String path)
path
- a resource location supporting the file: or classpath: prefixespublic boolean isConnected()
public void register()
AbstractContentTransformer
registry
if it is present.
register
in class AbstractContentTransformer
public double getReliability(java.lang.String sourceMimetype, java.lang.String targetMimetype)
AbstractContentTransformer
getReliability
in class AbstractContentTransformer
sourceMimetype
- the source mimetypetargetMimetype
- the target mimetype
DocumentFormatRegistry
protected void transformInternal(org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.ContentWriter writer, java.util.Map options) throws java.lang.Exception
AbstractContentTransformer
transformInternal
in class AbstractContentTransformer
reader
- the source of the content to transformwriter
- the target to which to write the transformed contentoptions
- a map of options to use when performing the transformation. The map
will never be null.
java.lang.Exception
- exceptions will be handled by this class - subclasses can throw anything
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |