Class TikaPoweredContainerExtractor
- java.lang.Object
-
- org.alfresco.repo.content.transform.TikaPoweredContainerExtractor
-
public class TikaPoweredContainerExtractor extends java.lang.ObjectWarning - 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.ExtractorActionExecutorThis action executor allows you to trigger extraction as an action, perhaps from a rule.
-
Constructor Summary
Constructors Constructor Description TikaPoweredContainerExtractor()
-
Method Summary
All Methods Instance Methods Concrete 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)Extracts out all the entries from the container that match the supplied list of mime types.voidsetContentService(ContentService contentService)Injects the contentService bean.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Injects the nodeService bean.voidsetTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)Injects the TikaConfig to use
-
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Injects the nodeService bean.- Parameters:
nodeService- the nodeService.
-
setContentService
public void setContentService(ContentService contentService)
Injects the contentService bean.- Parameters:
contentService- the contentService.
-
setTikaConfig
public void setTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)
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)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.
-
-