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 ActionCustomClass
inboundComm
- The Mbo on which the action will apply.MXException
java.rmi.RemoteException
ActionCustomClass.applyCustomAction(psdi.mbo.MboRemote, java.lang.Object[])
protected void handleWFMail(MboRemote inboundComm, UserInfo ui) throws java.rmi.RemoteException, MXException
params
- inboundComm
- java.rmi.RemoteException
MXException
protected void processAssignment(WFAssignment assign, MfMailWFMailInfo mailInfo, MboRemote inboundComm, UserInfo ui) throws java.rmi.RemoteException, MXException
assign
- instance
- targetMbo
- mailInfo
- inboundComm
- ui
- java.rmi.RemoteException
MXException
protected MfMailWFMailInfo readMAXIMOMAILMessage(MboRemote inboundComm) throws MXException, java.rmi.RemoteException
params
- inboundComm
- java.rmi.RemoteException
LSNRParseException
MXException
protected static boolean isWorkflowMail(MboRemote inboundComm, MfMailGlobalInfo gi) throws MXException, java.rmi.RemoteException
inboundComm
- gi
- MXException
java.rmi.RemoteException
protected MfMailWFMailInfo readFirstLine(java.lang.String messageBody, MfMailWFMailInfo mi) throws MXException
messageBody
- mi
- MXException
public void sendWFReplyMail(MboRemote inboundComm, CommTemplateRemote commTemplate, MboRemote targetMbo, WFAssignment assign, boolean checkHtml) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
protected 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