Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.mail.actionpipe
Class ParseMailBody

java.lang.Object
  extended by org.nuxeo.cm.mail.actionpipe.AbstractCaseManagementMailAction
      extended by org.nuxeo.cm.mail.actionpipe.ParseMailBody
All Implemented Interfaces:
MailActionPipeConstants, org.nuxeo.ecm.platform.mail.action.MessageAction

public class ParseMailBody
extends AbstractCaseManagementMailAction

Parser for mail body.

Author:
Laurent Doguin, Sun Seng David TAN

Field Summary
static Integer GROUP_TO_FIND_INDEX
          The group used to find the index of the header in the body
static Map<String,Integer> monthMap
           
 
Fields inherited from interface org.nuxeo.cm.mail.actionpipe.MailActionPipeConstants
ATTACHMENTS_KEY, BODY_KEY, CASEMANAGEMENT_SERVICE_KEY, CORE_SESSION_ID_KEY, MESSAGE_ID_KEY, MIMETYPE_SERVICE_KEY, ORIGINAL_CC_RECIPIENTS_KEY, ORIGINAL_RECEPTION_DATE_KEY, ORIGINAL_SENDER_NAME_KEY, ORIGINAL_SENDERS_KEY, ORIGINAL_TO_RECIPIENTS_KEY, RECEPTION_DATE_KEY, SENDER_EMAIL_KEY, SENDER_KEY, SUBJECT_KEY
 
Constructor Summary
ParseMailBody()
           
 
Method Summary
 boolean execute(org.nuxeo.ecm.platform.mail.action.ExecutionContext context)
           
static void initializeMonthMap()
           
static void parse(Object content, Map<String,Object> resultMap)
           
 void reset(org.nuxeo.ecm.platform.mail.action.ExecutionContext context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_TO_FIND_INDEX

public static final Integer GROUP_TO_FIND_INDEX
The group used to find the index of the header in the body


monthMap

public static final Map<String,Integer> monthMap
Constructor Detail

ParseMailBody

public ParseMailBody()
Method Detail

initializeMonthMap

public static final void initializeMonthMap()

execute

public boolean execute(org.nuxeo.ecm.platform.mail.action.ExecutionContext context)
                throws Exception
Throws:
Exception

parse

public static void parse(Object content,
                         Map<String,Object> resultMap)
                  throws Exception
Throws:
Exception

reset

public void reset(org.nuxeo.ecm.platform.mail.action.ExecutionContext context)
           throws Exception
Throws:
Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.