org.alfresco.repo.content.transform
Class RemoteOpenOfficeContentTransformer

java.lang.Object
  extended by org.alfresco.repo.content.transform.AbstractContentTransformer
      extended by org.alfresco.repo.content.transform.RemoteOpenOfficeContentTransformer
All Implemented Interfaces:
ContentWorker, ContentTransformer

public class RemoteOpenOfficeContentTransformer
extends AbstractContentTransformer

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

RemoteOpenOfficeContentTransformer

public RemoteOpenOfficeContentTransformer()
Method Detail

setConnection

public void setConnection(net.sf.jooreports.openoffice.connection.OpenOfficeConnection connection)

setDocumentFormatsConfiguration

public void setDocumentFormatsConfiguration(java.lang.String path)
Set a non-default location from which to load the document format mappings.

Parameters:
path - a resource location supporting the file: or classpath: prefixes

isConnected

public boolean isConnected()

register

public void register()
Description copied from class: AbstractContentTransformer
Registers this instance with the registry if it is present.

Overrides:
register in class AbstractContentTransformer

getReliability

public double getReliability(java.lang.String sourceMimetype,
                             java.lang.String targetMimetype)
Description copied from class: AbstractContentTransformer
Added for backward compatibility of existing content transformers

Specified by:
getReliability in class AbstractContentTransformer
Parameters:
sourceMimetype - the source mimetype
targetMimetype - the target mimetype
Returns:
double the reliability value of the content transformer ranging from 0 to 1
See Also:
DocumentFormatRegistry

transformInternal

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
Description copied from class: AbstractContentTransformer
Method to be implemented by subclasses wishing to make use of the common infrastructural code provided by this class.

Specified by:
transformInternal in class AbstractContentTransformer
Parameters:
reader - the source of the content to transform
writer - the target to which to write the transformed content
options - a map of options to use when performing the transformation. The map will never be null.
Throws:
java.lang.Exception - exceptions will be handled by this class - subclasses can throw anything


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.