public class JodConverterMetadataExtracter extends AbstractMappingMetadataExtracter implements OpenOfficeMetadataWorker
author: -- cm:author title: -- cm:title description: -- cm:description
MetadataExtracter.OverwritePolicylogger, MEGABYTE_SIZE, NAMESPACE_PROPERTY_PREFIX, PROPERTY_COMPONENT_EMBED, PROPERTY_COMPONENT_EXTRACT, PROPERTY_PREFIX_METADATA| Constructor and Description |
|---|
JodConverterMetadataExtracter() |
JodConverterMetadataExtracter(Set<String> supportedMimetypes) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Serializable> |
extractRaw(org.alfresco.service.cmr.repository.ContentReader reader)
Override to provide the raw extracted metadata values.
|
void |
init()
Provides a hook point for implementations to perform initialization.
|
boolean |
isConnected() |
boolean |
isSupported(String sourceMimetype)
Perform the default check, but also check if the OpenOffice connection is good.
|
void |
setWorker(OpenOfficeMetadataWorker worker) |
checkIsEmbedSupported, checkIsSupported, embed, embedInternal, extract, extract, extract, filterSystemProperties, getBeanName, getDefaultEmbedMapping, getDefaultMapping, getEmbedMapping, getExecutorService, getLimits, getMapping, getMimetypeService, isEmbeddingSupported, makeDate, newRawMap, putRawValue, readEmbedMappingProperties, readEmbedMappingProperties, readGlobalEmbedMappingProperties, readGlobalExtractMappingProperties, readMappingProperties, readMappingProperties, register, setApplicationContext, setBeanName, setDictionaryService, setEmbedMapping, setEmbedMappingProperties, setEnableStringTagging, setExecutorService, setFailOnTypeConversion, setInheritDefaultEmbedMapping, setInheritDefaultMapping, setMapping, setMappingProperties, setMimetypeLimits, setMimetypeService, setOverwritePolicy, setProperties, setRegistry, setSupportedDateFormats, setSupportedEmbedMimetypes, setSupportedMimetypespublic void setWorker(OpenOfficeMetadataWorker worker)
public void init()
AbstractMappingMetadataExtracterdefault mappings will be requested during
initialization.init in class AbstractMappingMetadataExtracterpublic boolean isConnected()
isConnected in interface OpenOfficeMetadataWorkerpublic boolean isSupported(String sourceMimetype)
isSupported in interface MetadataExtracterisSupported in class AbstractMappingMetadataExtractersourceMimetype - the document mimetypeAbstractMappingMetadataExtracter.setSupportedMimetypes(Collection)public Map<String,Serializable> extractRaw(org.alfresco.service.cmr.repository.ContentReader reader) throws Throwable
default mapping doesn't handle all properties, it is
possible for each instance of the extracter to be configured differently and more or
less of the properties may be used in different installations.
Raw values must not be trimmed or removed for any reason. Null values and empty strings are
Properties extracted and their meanings and types should be thoroughly described in the class-level javadocs of the extracter implementation, for example:
editor: - the document editor --> cm:author title: - the document title --> cm:title user1: - the document summary user2: - the document description --> cm:description user3: - user4: -
extractRaw in interface OpenOfficeMetadataWorkerextractRaw in class AbstractMappingMetadataExtracterreader - the document to extract the values from. This stream provided by
the reader must be closed if accessed directly.Throwable - All exception conditions can be handled.AbstractMappingMetadataExtracter.getDefaultMapping()Copyright © 2005–2018 Alfresco Software. All rights reserved.