Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.repo.content.metadata
Class TikaSpringConfiguredMetadataExtracter
java.lang.Object
  org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter
      org.alfresco.repo.content.metadata.TikaPoweredMetadataExtracter
          org.alfresco.repo.content.metadata.TikaSpringConfiguredMetadataExtracter
All Implemented Interfaces:
MetadataEmbedder, ContentWorker, MetadataExtracter, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@org.alfresco.api.AlfrescoPublicApi
public class TikaSpringConfiguredMetadataExtracter
extends TikaPoweredMetadataExtracter
A Metadata Extractor which makes use of Apache Tika, and allows the selection of the Tika parser to be sprung-in to extract the metadata from your document. This is typically used with custom Tika Parsers.
   author:                 --      cm:author
   title:                  --      cm:title
   subject:                --      cm:description
   created:                --      cm:created
   comments:
   

geo:lat: -- cm:latitude

geo:long: -- cm:longitude

Since:
3.4
Author:
Nick Burch

Nested classes/interfaces inherited from interface org.alfresco.repo.content.metadata.MetadataExtracter
MetadataExtracter.OverwritePolicy
Field Summary
protected static org.apache.commons.logging.Log
logger
Fields inherited from class org.alfresco.repo.content.metadata.TikaPoweredMetadataExtracter
documentSelector, KEY_AUTHOR, KEY_COMMENTS, KEY_CREATED, KEY_DESCRIPTION, KEY_SUBJECT, KEY_TAGS, KEY_TITLE
Fields inherited from class org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter
MEGABYTE_SIZE, metadataExtracterConfig, NAMESPACE_PROPERTY_PREFIX, PROPERTY_COMPONENT_EMBED, PROPERTY_COMPONENT_EXTRACT, PROPERTY_PREFIX_METADATA
Constructor Summary
TikaSpringConfiguredMetadataExtracter()
Method Summary
protected org.apache.tika.parser.Parser
getParser()
          Returns the Tika parser
void
setTikaParser(org.apache.tika.parser.Parser tikaParser)
          Injects the Tika parser to use
void
setTikaParserName(String className)
          Injects the name of the Tika parser to use
Methods inherited from class org.alfresco.repo.content.metadata.TikaPoweredMetadataExtracter
buildParseContext, buildSupportedMimetypes, embedInternal, extractRaw, extractSize, extractSpecific, getDocumentSelector, getEmbedder, getExtractorContext, getInputStream, getMetadataSeparator, makeDate, needHeaderContents, setDocumentSelector, setMetadataSeparator
Methods inherited from class org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter
checkIsEmbedSupported, checkIsSupported, embed, extract, extract, extract, filterSystemProperties, getBeanName, getDefaultEmbedMapping, getDefaultMapping, getEmbedMapping, getExecutorService, getExtractionTime, getLimits, getMapping, getMimetypeService, getReliability, init, isEmbeddingSupported, isSupported, newRawMap, putRawValue, readEmbedMappingProperties, readEmbedMappingProperties, readGlobalEmbedMappingProperties, readGlobalExtractMappingProperties, readMappingProperties, readMappingProperties, register, setApplicationContext, setBeanName, setDictionaryService, setEmbedMapping, setEmbedMappingProperties, setEnableStringTagging, setExecutorService, setFailOnTypeConversion, setInheritDefaultEmbedMapping, setInheritDefaultMapping, setMapping, setMappingProperties, setMetadataExtracterConfig, setMimetypeLimits, setMimetypeService, setOverwritePolicy, setOverwritePolicy, setProperties, setRegistry, setSupportedDateFormats, setSupportedEmbedMimetypes, setSupportedMimetypes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
logger
protected static org.apache.commons.logging.Log logger
Constructor Detail
TikaSpringConfiguredMetadataExtracter
public TikaSpringConfiguredMetadataExtracter()
Method Detail
setTikaParserName
public void setTikaParserName(String className)
Injects the name of the Tika parser to use

setTikaParser
public void setTikaParser(org.apache.tika.parser.Parser tikaParser)
Injects the Tika parser to use

getParser
protected org.apache.tika.parser.Parser getParser()
Returns the Tika parser
Overrides:
getParser in class TikaPoweredMetadataExtracter

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.