@AlfrescoPublicApi public interface MetadataExtracter extends ContentWorker
Please pardon the incorrect spelling of extractor.
| Modifier and Type | Interface and Description |
|---|---|
static class |
MetadataExtracter.OverwritePolicy
A enumeration of functional property overwrite policies.
|
| Modifier and Type | Method and Description |
|---|---|
Map<org.alfresco.service.namespace.QName,Serializable> |
extract(org.alfresco.service.cmr.repository.ContentReader reader,
Map<org.alfresco.service.namespace.QName,Serializable> destination)
Extracts the metadata values from the content provided by the reader and source
mimetype to the supplied map.
|
Map<org.alfresco.service.namespace.QName,Serializable> |
extract(org.alfresco.service.cmr.repository.ContentReader reader,
MetadataExtracter.OverwritePolicy overwritePolicy,
Map<org.alfresco.service.namespace.QName,Serializable> destination)
Extracts the metadata values from the content provided by the reader and source
mimetype to the supplied map.
|
Map<org.alfresco.service.namespace.QName,Serializable> |
extract(org.alfresco.service.cmr.repository.ContentReader reader,
MetadataExtracter.OverwritePolicy overwritePolicy,
Map<org.alfresco.service.namespace.QName,Serializable> destination,
Map<String,Set<org.alfresco.service.namespace.QName>> mapping)
Extracts the metadata from the content provided by the reader and source
mimetype to the supplied map.
|
boolean |
isSupported(String mimetype)
Determines if the extracter works against the given mimetype.
|
boolean isSupported(String mimetype)
mimetype - the document mimetypeMap<org.alfresco.service.namespace.QName,Serializable> extract(org.alfresco.service.cmr.repository.ContentReader reader, Map<org.alfresco.service.namespace.QName,Serializable> destination)
overwrite policy
between document metadata and system metadata will be used.
The extraction viability can be determined by an up front call to isSupported(String).
The source mimetype must be available on the
ContentAccessor.getMimetype() method
of the reader.
reader - the source of the contentdestination - the map of properties to populate (essentially a return value)org.alfresco.service.cmr.repository.ContentIOException - if a detectable error occursextract(ContentReader, OverwritePolicy, Map, Map)Map<org.alfresco.service.namespace.QName,Serializable> extract(org.alfresco.service.cmr.repository.ContentReader reader, MetadataExtracter.OverwritePolicy overwritePolicy, Map<org.alfresco.service.namespace.QName,Serializable> destination)
The extraction viability can be determined by an up front call to isSupported(String).
The source mimetype must be available on the
ContentAccessor.getMimetype() method
of the reader.
reader - the source of the contentoverwritePolicy - the policy stipulating how the system properties must be
overwritten if presentdestination - the map of properties to populate (essentially a return value)org.alfresco.service.cmr.repository.ContentIOException - if a detectable error occursextract(ContentReader, OverwritePolicy, Map, Map)Map<org.alfresco.service.namespace.QName,Serializable> extract(org.alfresco.service.cmr.repository.ContentReader reader, MetadataExtracter.OverwritePolicy overwritePolicy, Map<org.alfresco.service.namespace.QName,Serializable> destination, Map<String,Set<org.alfresco.service.namespace.QName>> mapping)
overwrite policy is also explictly
set.
The extraction viability can be determined by an up front call to
isSupported(String).
The source mimetype must be available on the
ContentAccessor.getMimetype() method
of the reader.
reader - the source of the contentoverwritePolicy - the policy stipulating how the system properties must be
overwritten if presentdestination - the map of properties to populate (essentially a return value)mapping - a mapping of document-specific properties to system properties.org.alfresco.service.cmr.repository.ContentIOException - if a detectable error occursextract(ContentReader, Map)Copyright © 2005–2018 Alfresco Software. All rights reserved.