public class RFC822MetadataExtracter extends AbstractMappingMetadataExtracter
messageFrom: -- imap:messageFrom, cm:originator
messageTo: -- imap:messageTo
messageCc: -- imap:messageCc
messageSubject: -- imap:messageSubject, cm:title, cm:description, cm:subjectline
messageSent: -- imap:dateSent, cm:sentdate
messageReceived: -- imap:dateReceived
All header names:
Thread-Index: -- imap:threadIndex
Message-ID: -- imap:messageId
MetadataExtracter.OverwritePolicy| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
KEY_MESSAGE_CC |
protected static java.lang.String |
KEY_MESSAGE_FROM |
protected static java.lang.String |
KEY_MESSAGE_RECEIVED |
protected static java.lang.String |
KEY_MESSAGE_SENT |
protected static java.lang.String |
KEY_MESSAGE_SUBJECT |
protected static java.lang.String |
KEY_MESSAGE_TO |
static java.lang.String[] |
SUPPORTED_MIMETYPES |
logger, NAMESPACE_PROPERTY_PREFIX, supportedDateFormats| Constructor and Description |
|---|
RFC822MetadataExtracter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map |
extractRaw(org.alfresco.service.cmr.repository.ContentReader reader)
Override to provide the raw extracted metadata values.
|
java.util.Map |
getCurrentMapping()
Back door for RM
|
checkIsSupported, extract, extract, extract, filterSystemProperties, getDefaultMapping, getExtractionTime, getMapping, getMimetypeService, getReliability, init, isSupported, makeDate, newRawMap, putRawValue, readMappingProperties, readMappingProperties, register, setDictionaryService, setFailOnTypeConversion, setInheritDefaultMapping, setMapping, setMappingProperties, setMimetypeService, setOverwritePolicy, setOverwritePolicy, setRegistry, setSupportedDateFormats, setSupportedMimetypesprotected static final java.lang.String KEY_MESSAGE_FROM
protected static final java.lang.String KEY_MESSAGE_TO
protected static final java.lang.String KEY_MESSAGE_CC
protected static final java.lang.String KEY_MESSAGE_SUBJECT
protected static final java.lang.String KEY_MESSAGE_SENT
protected static final java.lang.String KEY_MESSAGE_RECEIVED
public static java.lang.String[] SUPPORTED_MIMETYPES
protected java.util.Map extractRaw(org.alfresco.service.cmr.repository.ContentReader reader)
throws java.lang.Throwable
AbstractMappingMetadataExtracterdefault 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
OverwritePolicyProperties 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 class AbstractMappingMetadataExtracterreader - the document to extract the values from. This stream provided by
the reader must be closed if accessed directly.java.lang.ThrowableAbstractMappingMetadataExtracter.getDefaultMapping()public final java.util.Map getCurrentMapping()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.