public class MfMailUtility
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
checkAppAuth(InboundCommRemote inboundComm,
MboRemote targetMbo) |
boolean |
checkStatusAuth(InboundCommRemote inboundComm,
MboRemote targetMbo,
UserInfo ui) |
void |
createInboundCommLog(MboRemote inboundComm,
MboRemote targetMbo,
java.util.Date cDate)
creats a commlog entry for inbound mail
|
static MboRemote |
getCommTemplate(java.lang.String templateId,
UserInfo ui) |
java.util.HashSet<java.lang.String> |
getHashSet(java.lang.String commaSeparatedList) |
MXLogger |
getLogger() |
java.lang.String |
getSenderFromTemplate(MboRemote commTemplate) |
boolean |
isKeyAttribute(java.lang.String[] keys,
java.lang.String attribute) |
boolean |
isMailHTML() |
void |
logMailInfo(MboRemote inboundComm)
Log information about the inboundcomm to identify the mail caused the error.
|
static void |
logMailInfo(MXLogger pLogger,
MboRemote inboundComm) |
void |
sendErrorMail(MboRemote inboundComm,
java.lang.String template)
Method to Send Error notification mail This method is used from
MfMailSendErrorReply class
|
void |
sendErrorMailToAdmin(java.lang.String errMsg,
java.lang.String template)
Send Mail to administrator to notify admin action is needed.
|
void |
sendSTReplyMailVerySmall(MboRemote inboundComm,
MboRemote commTemplate,
MboRemote targetMbo,
MboRemote trackEntry,
UserInfo ui,
java.lang.String valueList,
int deviceClass)
Send reply mail for status scenario with very small device
|
void |
sendWFNotifyMail(MboRemote track,
MboRemote tempTargetMbo,
MfMailWFCtrlInfo wc)
This method send notification mail when work flow assignment has
completed by different user by mail.
|
void |
setLogger(MXLogger logger) |
public void sendSTReplyMailVerySmall(MboRemote inboundComm, MboRemote commTemplate, MboRemote targetMbo, MboRemote trackEntry, UserInfo ui, java.lang.String valueList, int deviceClass) throws java.rmi.RemoteException, MXException
inboundComm
- commTemplate
- targetMbo
- trackEntry
- ui
- valueList
- objKeys
- deviceClass
- java.rmi.RemoteException
MXException
public void sendWFNotifyMail(MboRemote track, MboRemote tempTargetMbo, MfMailWFCtrlInfo wc) throws java.rmi.RemoteException, MXException
track
- tempTargetMbo
- wc
- java.rmi.RemoteException
MXException
public void sendErrorMail(MboRemote inboundComm, java.lang.String template) throws java.rmi.RemoteException, MXException
inboundComm
- template
- java.rmi.RemoteException
MXException
public static MboRemote getCommTemplate(java.lang.String templateId, UserInfo ui) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void logMailInfo(MboRemote inboundComm) throws java.rmi.RemoteException, MXException
inboundComm
- java.rmi.RemoteException
MXException
public static void logMailInfo(MXLogger pLogger, MboRemote inboundComm) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void sendErrorMailToAdmin(java.lang.String errMsg, java.lang.String template) throws java.rmi.RemoteException, MXException
errMsg
- : message texttemplate
- : communication templatejava.rmi.RemoteException
MXException
public void createInboundCommLog(MboRemote inboundComm, MboRemote targetMbo, java.util.Date cDate) throws MXException, java.rmi.RemoteException
inboundComm
- targetMbo
- templateName
- MXException
java.rmi.RemoteException
public boolean isKeyAttribute(java.lang.String[] keys, java.lang.String attribute)
public java.util.HashSet<java.lang.String> getHashSet(java.lang.String commaSeparatedList)
public java.lang.String getSenderFromTemplate(MboRemote commTemplate) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public MXLogger getLogger()
public void setLogger(MXLogger logger)
public boolean isMailHTML() throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean checkAppAuth(InboundCommRemote inboundComm, MboRemote targetMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean checkStatusAuth(InboundCommRemote inboundComm, MboRemote targetMbo, UserInfo ui) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException