Class ComplexContentTransformer

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

    @Deprecated
    @AlfrescoPublicApi
    public class ComplexContentTransformer
    extends AbstractContentTransformer2
    implements 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.
    Transformer that passes a document through several nested transformations in order to accomplish its goal.
    Author:
    Derek Hulley
    • Constructor Detail

      • ComplexContentTransformer

        public ComplexContentTransformer()
        Deprecated.
    • Method Detail

      • setTransformers

        public void setTransformers​(java.util.List<ContentTransformer> transformers)
        Deprecated.
        The list of transformers to use. If any element is null all possible transformers will be considered. If any element is null, the contentService property must be set.

        If a single transformer is supplied, then it will still be used.

        Parameters:
        transformers - list of at least one transformer
        See Also:
        setContentService(ContentService)
      • setIntermediateMimetypes

        public void setIntermediateMimetypes​(java.util.List<java.lang.String> intermediateMimetypes)
        Deprecated.
        Set the intermediate mimetypes that the transformer must take the content through. If the transformation A..B..C is performed in order to simulate A..C, then B is the intermediate mimetype. There must always be n-1 intermediate mimetypes, where n is the number of transformers taking part in the transformation.
        Parameters:
        intermediateMimetypes - intermediate mimetypes to transition the content through.
      • setTransformationOptionOverrides

        public void setTransformationOptionOverrides​(java.util.Map<java.lang.String,​java.io.Serializable> transformationOptionOverrides)
        Deprecated.
        Sets any properties to be set on the TransformationOption as passed in. This allows you to force certain properties to always be set on it, to control the transformers in a different way to their default. Note that only properties that are supported by the passed-in TransformationOptions are changed, others are ignored.
      • setContentService

        public void setContentService​(ContentService contentService)
        Deprecated.
        Sets the ContentService. Only required if null transformers are provided to setTransformers(List).
        Parameters:
        contentService -
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Deprecated.
        Ensures that required properties have been set
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • isPageLimitSupported

        protected boolean isPageLimitSupported​(java.lang.String sourceMimetype,
                                               java.lang.String targetMimetype,
                                               TransformationOptions options)
        Deprecated.
        Indicates if 'page' limits are supported by the first transformer in the chain. If the first transformer is dynamic, all possible first transformers must support it.
        Overrides:
        isPageLimitSupported in class AbstractContentTransformerLimits
        Returns:
        true if the first transformer supports them.
      • getLimits

        protected TransformationOptionLimits getLimits​(java.lang.String sourceMimetype,
                                                       java.lang.String targetMimetype,
                                                       TransformationOptions options)
        Deprecated.
        Returns the limits from this transformer combined with those of the first transformer in the chain. If the first transformer is dynamic, the lowest common denominator between all possible first transformers are combined.
        Overrides:
        getLimits in class AbstractContentTransformerLimits
      • getIntermediateMimetypes

        public java.util.List<java.lang.String> getIntermediateMimetypes()
        Deprecated.
      • getIntermediateTransformers

        public java.util.List<ContentTransformer> getIntermediateTransformers()
        Deprecated.
      • getComments

        public java.lang.String getComments​(boolean available)
        Deprecated.
        Returns the transformer properties predefined (hard coded or implied) by this transformer.
        Specified by:
        getComments in interface ContentTransformer
        Overrides:
        getComments in class ContentTransformerHelper
        Parameters:
        available - indicates if the transformer has been registered and is available to be selected. false indicates that the transformer is only available as a component of a complex transformer.
        Returns:
        one line per property. The simple transformer name is returned by default as a comment.