Interface ContentTransformerWorker
-
- All Known Implementing Classes:
AbstractImageMagickContentTransformerWorker,AlfrescoPdfRendererContentTransformerWorker,ImageMagickContentTransformerWorker,JodContentTransformer,RuntimeExecutableContentTransformerWorker
@AlfrescoPublicApi public interface ContentTransformerWorker
An interface that allows separation between the content transformer registry and the various third party subsystems performing the transformation.- Author:
- dward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetComments(boolean available)StringgetVersionString()Gets a string returning product and version information.booleanisAvailable()Checks if this worker is available.booleanisTransformable(String sourceMimetype, String targetMimetype, TransformationOptions options)UnlikeContentTransformer.isTransformable(String, String, TransformationOptions)should not include the transformer name, as that is added by the ContentTransformer in the parent context.voidtransform(ContentReader reader, ContentWriter writer, TransformationOptions options)
-
-
-
Method Detail
-
isAvailable
boolean isAvailable()
Checks if this worker is available.- Returns:
- true if it is available
-
getVersionString
String getVersionString()
Gets a string returning product and version information.- Returns:
- the version string
-
isTransformable
boolean isTransformable(String sourceMimetype, String targetMimetype, TransformationOptions options)
UnlikeContentTransformer.isTransformable(String, String, TransformationOptions)should not include the transformer name, as that is added by the ContentTransformer in the parent context.
-
getComments
String getComments(boolean available)
- See Also:
ContentTransformer.getComments(boolean)
-
transform
void transform(ContentReader reader, ContentWriter writer, TransformationOptions options) throws Exception
-
-