Interface ContentTransformerWorker
-
- All Known Implementing Classes:
AbstractImageMagickContentTransformerWorker,AlfrescoPdfRendererContentTransformerWorker,ImageMagickContentTransformerWorker,JodContentTransformer,RuntimeExecutableContentTransformerWorker
@AlfrescoPublicApi public interface ContentTransformerWorkerAn 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 java.lang.StringgetComments(boolean available)java.lang.StringgetVersionString()Gets a string returning product and version information.booleanisAvailable()Checks if this worker is available.booleanisTransformable(java.lang.String sourceMimetype, java.lang.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(org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.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)UnlikeContentTransformer.isTransformable(String, String, TransformationOptions)should not include the transformer name, as that is added by the ContentTransformer in the parent context.
-
getComments
java.lang.String getComments(boolean available)
- See Also:
ContentTransformer.getComments(boolean)
-
transform
void transform(org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.ContentWriter writer, TransformationOptions options) throws java.lang.Exception- Throws:
java.lang.Exception- See Also:
ContentTransformer.transform(ContentReader, ContentWriter, TransformationOptions)
-
-