Class RuntimeExecutableContentTransformerWorker

  • All Implemented Interfaces:
    ContentTransformerWorker, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    @Deprecated
    @AlfrescoPublicApi
    public class RuntimeExecutableContentTransformerWorker
    extends ContentTransformerHelper
    implements ContentTransformerWorker, org.springframework.beans.factory.InitializingBean
    Deprecated.
    The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
    This configurable wrapper is able to execute any command line transformation that accepts an input and an output file on the command line.

    The following parameters are use:

    • target - full path to the source file
    • source - full path to the target file
    Provided that the command executed ultimately transforms the source file and leaves the result in the target file, the transformation should be successful.

    NOTE: It is only the contents of the files that can be transformed. Any attempt to modify the source or target file metadata will, at best, have no effect, but may ultimately lead to the transformation failing. This is because the files provided are both temporary files that reside in a location outside the system's content store.

    This transformer requires the setting of the explicitTransformations property.

    Since:
    1.1
    Author:
    Derek Hulley
    See Also:
    RuntimeExec