Class ArchiveContentTransformer

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

    @Deprecated
    public class ArchiveContentTransformer
    extends TikaPoweredContentTransformer
    Deprecated.
    The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
    This class transforms archive files (zip, tar etc) to text, which enables indexing and searching of archives as well as webpreviewing. The transformation can simply list the names of the entries within the archive, or it can also include the textual content of the entries themselves. The former is suggested for web preview, the latter for indexing. This behaviour is controlled by the recurse flag.
    Since:
    3.4
    Author:
    Neil McErlean, Nick Burch
    • Field Detail

      • SUPPORTED_MIMETYPES

        public static java.util.ArrayList<java.lang.String> SUPPORTED_MIMETYPES
        Deprecated.
        We support all the archive mimetypes that the Tika package parser can handle
    • Constructor Detail

      • ArchiveContentTransformer

        public ArchiveContentTransformer()
        Deprecated.
    • Method Detail

      • setTikaConfig

        public void setTikaConfig​(org.apache.tika.config.TikaConfig tikaConfig)
        Deprecated.
        Injects the TikaConfig to use
        Parameters:
        tikaConfig - The Tika Config to use
      • setIncludeContents

        public void setIncludeContents​(java.lang.String includeContents)
        Deprecated.
      • transformRemote

        protected void transformRemote​(RemoteTransformerClient remoteTransformerClient,
                                       org.alfresco.service.cmr.repository.ContentReader reader,
                                       org.alfresco.service.cmr.repository.ContentWriter writer,
                                       TransformationOptions options,
                                       java.lang.String sourceMimetype,
                                       java.lang.String targetMimetype,
                                       java.lang.String sourceExtension,
                                       java.lang.String targetExtension,
                                       java.lang.String targetEncoding)
                                throws java.lang.Exception
        Deprecated.
        Overrides:
        transformRemote in class TikaPoweredContentTransformer
        Throws:
        java.lang.Exception