public class LSNRUtil
extends java.lang.Object
| Constructor and Description |
|---|
LSNRUtil() |
| Modifier and Type | Method and Description |
|---|---|
static MboRemote |
getCommTemplate(java.lang.String templateId,
UserInfo ui)
Get the comm template record
|
static MboRemote |
getInboundCommRecord(MboRemote oldInbComm)
Returns a new staging mbo with all the information from old record
|
static MXLogger |
getLogger()
Returns the logger to be used to log messages.
|
static MboSetRemote |
getMboSet(java.lang.String name,
UserInfo ui)
Returns a business object set based on the name of the business object.
|
static void |
handleErrorException(java.lang.Exception e,
java.lang.String emailAddress,
MboRemote inboundComm)
Handle error case with changing status,error column and sending e-mail
|
static void |
processMessage(MboRemote inboundComm)
Process the message retrieved from mailserver in asynchronous way(non-JMS)
|
static void |
processMessage(javax.jms.ObjectMessage objm)
Process the message retrieved from mailserver
|
static void |
processWorkFlow(MboRemote inboundComm,
java.lang.String processName)
Process workflow for the staging record
|
static void |
sendEmail(MboRemote ownMbo,
java.lang.String sendTo,
java.lang.String templateName,
java.lang.String senderFrom,
java.lang.String subject,
java.util.Date receivedDate,
java.lang.Throwable t)
Sends e-mail to sender/admin
|
static void |
sendEmail(MboRemote ownMbo,
java.lang.String sendTo,
java.lang.String templateName,
java.lang.Throwable t)
Sends error email to more than one recipient
|
static void |
sendEmail(java.lang.String messageStr,
MboRemote ownMbo,
java.lang.String sendTo,
java.lang.String templateName)
Sends error email to more than one recipient
|
static void |
setLogger(MXLogger log)
Set the logger to be used to log messages.
|
static MboRemote |
updateInboundComm(java.lang.String[] attributeName,
java.lang.String[] value,
MboRemote oldInbComm)
Update staging record with new value
|
public static void setLogger(MXLogger log)
logger - the logger to be used to log messages.public static MXLogger getLogger()
public static void processMessage(MboRemote inboundComm) throws java.lang.Exception
inboundComm - recordjava.lang.Exceptionpublic static void processMessage(javax.jms.ObjectMessage objm)
throws java.lang.Exception
uniqueId - java.lang.Exceptionpublic static void handleErrorException(java.lang.Exception e,
java.lang.String emailAddress,
MboRemote inboundComm)
throws java.lang.Exception
e - emailAddress - inboundComm - java.lang.Exceptionpublic static MboRemote updateInboundComm(java.lang.String[] attributeName, java.lang.String[] value, MboRemote oldInbComm) throws java.lang.Exception
attributeName - value - oldInbComm - java.lang.Exceptionpublic static MboRemote getInboundCommRecord(MboRemote oldInbComm) throws java.lang.Exception
oldInbComm - java.lang.Exceptionpublic static void processWorkFlow(MboRemote inboundComm, java.lang.String processName) throws java.lang.Exception
inboundComm - processName - java.lang.Exceptionpublic static MboRemote getCommTemplate(java.lang.String templateId, UserInfo ui) throws java.lang.Exception
templateid - java.lang.Exceptionpublic static void sendEmail(java.lang.String messageStr,
MboRemote ownMbo,
java.lang.String sendTo,
java.lang.String templateName)
throws java.lang.Exception
messageStr - ownMbo - sendTo - templateName - java.lang.Exceptionpublic static void sendEmail(MboRemote ownMbo, java.lang.String sendTo, java.lang.String templateName, java.lang.Throwable t) throws java.lang.Exception
ownMbo - sendTo - templateName - t - java.lang.Exceptionpublic static void sendEmail(MboRemote ownMbo, java.lang.String sendTo, java.lang.String templateName, java.lang.String senderFrom, java.lang.String subject, java.util.Date receivedDate, java.lang.Throwable t) throws java.lang.Exception
ownMbo - sendTo - templateName - senderFrom - subject - receivedDate - t - java.lang.Exceptionpublic static MboSetRemote getMboSet(java.lang.String name, UserInfo ui) throws java.lang.Exception
name - name of the business object.MXException - if fails to get the business object set.RemoteException - if fails to get the business object set.java.lang.Exception