Class LegacyTransformerDebug

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    @Deprecated
    public class LegacyTransformerDebug
    extends AdminUiTransformerDebug
    Deprecated.
    Debugs Legacy transformers selection and activity. Will be removed when Legacy transforms are removed.
    Author:
    Alan Davis
    • Constructor Detail

      • LegacyTransformerDebug

        public LegacyTransformerDebug()
        Deprecated.
    • Method Detail

      • setTransformerConfig

        public void setTransformerConfig​(TransformerConfig transformerConfig)
        Deprecated.
      • pushAvailable

        @Deprecated
        public void pushAvailable​(String fromUrl,
                                  String sourceMimetype,
                                  String targetMimetype,
                                  String renditionName,
                                  NodeRef sourceNodeRef)
        Deprecated.
        Called prior to working out what transformers are available.
      • pushIsTransformableSize

        @Deprecated
        public void pushIsTransformableSize​(ContentTransformer transformer)
        Deprecated.
        Called prior to calling a nested isTransformable.
      • unavailableTransformer

        @Deprecated
        public void unavailableTransformer​(ContentTransformer transformer,
                                           String sourceMimetype,
                                           String targetMimetype,
                                           long maxSourceSizeKBytes)
        Deprecated.
        Called to identify a transformer that cannot be used during working out available transformers.
      • availableTransformers

        @Deprecated
        public void availableTransformers​(List<ContentTransformer> transformers,
                                          long sourceSize,
                                          String renditionName,
                                          NodeRef sourceNodeRef,
                                          String calledFrom)
        Deprecated.
        Called once all available transformers have been identified.
      • activeTransformer

        @Deprecated
        public void activeTransformer​(int mimetypePairCount,
                                      ContentTransformer transformer,
                                      String sourceMimetype,
                                      String targetMimetype,
                                      long maxSourceSizeKBytes,
                                      boolean firstMimetypePair)
        Deprecated.
      • activeTransformer

        @Deprecated
        public void activeTransformer​(String sourceMimetype,
                                      String targetMimetype,
                                      int transformerCount,
                                      ContentTransformer transformer,
                                      long maxSourceSizeKBytes,
                                      boolean firstTransformer)
        Deprecated.
      • popAvailable

        public void popAvailable()
        Deprecated.
        Called after working out what transformers are available and any resulting transform has been called.
      • popIsTransformableSize

        public void popIsTransformableSize()
        Deprecated.
        Called after returning from a nested isTransformable.
      • transformationsByTransformer

        @Deprecated
        public String transformationsByTransformer​(String transformerName,
                                                   boolean toString,
                                                   boolean format42,
                                                   String renditionName)
        Deprecated.
        The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
        Returns a String and /or debug that provides a list of supported transformations for each transformer.
        Parameters:
        transformerName - restricts the list to one transformer. Unrestricted if null.
        toString - indicates that a String value should be returned in addition to any debug.
        format42 - indicates the old 4.1.4 format should be used which did not order the transformers and only included top level transformers.
        renditionName - to which the transformation will be put (such as "Index", "Preview", null).
      • transformationsByExtension

        @Deprecated
        public String transformationsByExtension​(String sourceExtension,
                                                 String targetExtension,
                                                 boolean toString,
                                                 boolean format42,
                                                 boolean onlyNonDeterministic,
                                                 String renditionName)
        Deprecated.
        The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
        Returns a String and /or debug that provides a list of supported transformations sorted by source and target mimetype extension.
        Overrides:
        transformationsByExtension in class AdminUiTransformerDebug
        Parameters:
        sourceExtension - restricts the list to one source extension. Unrestricted if null.
        targetExtension - restricts the list to one target extension. Unrestricted if null.
        toString - indicates that a String value should be returned in addition to any debug.
        format42 - indicates the new 4.2 rather than older 4.1.4 format should be used. The 4.1.4 format did not order the transformers or mimetypes and only included top level transformers.
        onlyNonDeterministic - if true only report transformations where there is more than one transformer available with the same priority.
        renditionName - to which the transformation will be put (such as "Index", "Preview", null).
      • sortTransformersByName

        @Deprecated
        public Collection<ContentTransformer> sortTransformersByName​(String transformerName)
        Deprecated.
        The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
        Returns a sorted list of all transformers sorted by name.
        Parameters:
        transformerName - to restrict the collection to one entry
        Returns:
        a new Collection of sorted transformers
        Throws:
        IllegalArgumentException - if transformerName is not found.
      • testTransform

        @Deprecated
        public String testTransform​(String transformerName,
                                    String sourceExtension,
                                    String targetExtension,
                                    String renditionName)
        Deprecated.
        The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.