Class TikaPoweredContainerExtractor


  • @Deprecated
    public class TikaPoweredContainerExtractor
    extends Object
    Deprecated.
    The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
    Warning - this is a prototype service, and will likely change dramatically in Alfresco 4.0! This proto-service provides a way to have Apache Tika extract out certain kinds of embedded resources from within a container file. One use might be to extract all the images in a zip file, another might be to fetch all the Word Documents embedded in an Excel Spreadsheet. Uses the Apache Tika ContainerExtractor framework, along with the Apache Tika Auto-Parser. Not sprung-in by default, you will need to manually list this in an extension context file.
    Author:
    Nick Burch
    • Constructor Detail

      • TikaPoweredContainerExtractor

        public TikaPoweredContainerExtractor()
        Deprecated.
    • Method Detail

      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Deprecated.
        Injects the nodeService bean.
        Parameters:
        nodeService - the nodeService.
      • setContentService

        public void setContentService​(ContentService contentService)
        Deprecated.
        Injects the contentService bean.
        Parameters:
        contentService - the contentService.
      • setTikaConfig

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

        public List<org.alfresco.service.cmr.repository.NodeRef> extract​(org.alfresco.service.cmr.repository.NodeRef source,
                                                                         List<String> mimetypes)
        Deprecated.
        Extracts out all the entries from the container that match the supplied list of mime types. If no mime types are specified, extracts all available embedded resources.