Class TikaPoweredContainerExtractor
- java.lang.Object
-
- org.alfresco.repo.content.transform.TikaPoweredContainerExtractor
-
@Deprecated public class TikaPoweredContainerExtractor extends java.lang.ObjectDeprecated.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTikaPoweredContainerExtractor.ExtractorActionExecutorDeprecated.This action executor allows you to trigger extraction as an action, perhaps from a rule.
-
Constructor Summary
Constructors Constructor Description TikaPoweredContainerExtractor()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<org.alfresco.service.cmr.repository.NodeRef>extract(org.alfresco.service.cmr.repository.NodeRef source, java.util.List<java.lang.String> mimetypes)Deprecated.Extracts out all the entries from the container that match the supplied list of mime types.voidsetContentService(ContentService contentService)Deprecated.Injects the contentService bean.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Deprecated.Injects the nodeService bean.voidsetTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)Deprecated.Injects the TikaConfig to use
-
-
-
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 java.util.List<org.alfresco.service.cmr.repository.NodeRef> extract(org.alfresco.service.cmr.repository.NodeRef source, java.util.List<java.lang.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.
-
-