public class MfMailWFHandler extends java.lang.Object implements ActionCustomClass
| Constructor and Description |
|---|
MfMailWFHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyCustomAction(MboRemote inboundComm,
java.lang.Object[] arg1)
Entry point as custom action.
|
protected java.lang.String |
checkAttributes(java.util.Hashtable values,
java.util.HashSet keySet,
java.lang.String validAttList)
Check if all the attributes in hashtable belongs to valid attributes
|
protected void |
handleWFMail(MboRemote inboundComm,
UserInfo ui) |
protected static boolean |
isWorkflowMail(MboRemote inboundComm,
MfMailGlobalInfo gi)
Determine whether inboundComm contains mail for Workflow scenario
|
protected void |
processAssignment(WFAssignment assign,
MfMailWFMailInfo mailInfo,
MboRemote inboundComm,
UserInfo ui)
Complete WFAssignment as specified in the mail.
|
protected MfMailWFMailInfo |
readFirstLine(java.lang.String messageBody,
MfMailWFMailInfo mi)
Parse either the first line of the body (for small device), or value part of LSNRCOMPACTION
(for medium device)
|
protected MfMailWFMailInfo |
readMAXIMOMAILMessage(MboRemote inboundComm) |
void |
sendWFReplyMail(MboRemote inboundComm,
CommTemplateRemote commTemplate,
MboRemote targetMbo,
WFAssignment assign,
boolean checkHtml) |
public void applyCustomAction(MboRemote inboundComm, java.lang.Object[] arg1) throws MXException, java.rmi.RemoteException
applyCustomAction in interface ActionCustomClassinboundComm - The Mbo on which the action will apply.MXExceptionjava.rmi.RemoteExceptionActionCustomClass.applyCustomAction(psdi.mbo.MboRemote, java.lang.Object[])protected void handleWFMail(MboRemote inboundComm, UserInfo ui) throws java.rmi.RemoteException, MXException
params - inboundComm - java.rmi.RemoteExceptionMXExceptionprotected void processAssignment(WFAssignment assign, MfMailWFMailInfo mailInfo, MboRemote inboundComm, UserInfo ui) throws java.rmi.RemoteException, MXException
assign - instance - targetMbo - mailInfo - inboundComm - ui - java.rmi.RemoteExceptionMXExceptionprotected MfMailWFMailInfo readMAXIMOMAILMessage(MboRemote inboundComm) throws MXException, java.rmi.RemoteException
params - inboundComm - java.rmi.RemoteExceptionLSNRParseExceptionMXExceptionprotected static boolean isWorkflowMail(MboRemote inboundComm, MfMailGlobalInfo gi) throws MXException, java.rmi.RemoteException
inboundComm - gi - MXExceptionjava.rmi.RemoteExceptionprotected MfMailWFMailInfo readFirstLine(java.lang.String messageBody, MfMailWFMailInfo mi) throws MXException
messageBody - mi - MXExceptionpublic void sendWFReplyMail(MboRemote inboundComm, CommTemplateRemote commTemplate, MboRemote targetMbo, WFAssignment assign, boolean checkHtml) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionprotected java.lang.String checkAttributes(java.util.Hashtable values,
java.util.HashSet keySet,
java.lang.String validAttList)
values - hash of values from mailkeySet - hash of key attributesvalidAttList - list of valid attributes