org.alfresco.repo.content.transform
Interface ContentTransformerWorker

All Known Implementing Classes:
AbstractImageMagickContentTransformerWorker, ImageMagickContentTransformerWorker, OpenOfficeContentTransformerWorker, RuntimeExecutableContentTransformerWorker

public interface ContentTransformerWorker

An interface that allows separation between the content transformer registry and the various third party subsystems performing the transformation.


Method Summary
 java.lang.String getVersionString()
          Gets a string returning product and version information.
 boolean isAvailable()
          Checks if this worker is available.
 boolean isTransformable(java.lang.String sourceMimetype, java.lang.String targetMimetype, TransformationOptions options)
           
 void transform(ContentReader reader, ContentWriter writer, TransformationOptions options)
           
 

Method Detail

isAvailable

boolean isAvailable()
Checks if this worker is available.

Returns:
true if it is available

getVersionString

java.lang.String getVersionString()
Gets a string returning product and version information.

Returns:
the version string

isTransformable

boolean isTransformable(java.lang.String sourceMimetype,
                        java.lang.String targetMimetype,
                        TransformationOptions options)
See Also:
ContentTransformer.isTransformable(String, String, TransformationOptions)

transform

void transform(ContentReader reader,
               ContentWriter writer,
               TransformationOptions options)
               throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
ContentTransformer.transform(ContentReader, ContentWriter, TransformationOptions)


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