public class LSNRActionHelper
extends java.lang.Object
| Constructor and Description |
|---|
LSNRActionHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authExistForObjectAndAction(InboundCommRemote inboundComm,
MboRemote objectRemote,
java.lang.String action,
java.lang.String objectName)
Check for given site authorization exist or not
|
java.util.Date |
convertToDate(int type,
java.lang.String value,
UserInfo u)
Convert the string to a date object
|
void |
createCommLog(MboRemote inboundComm,
MboRemote actionObject)
creats a commlog entry
|
void |
createDocLinkForCommLog(MboRemote inboundComm,
MboRemote commlog)
Create doclinks entry for COMMLOG
|
MboRemote |
createObject(InboundCommRemote inboundComm,
MboRemote objectRemote)
Create sr,incident or problem record from inboundcomm
|
void |
handleException(java.lang.String objectName,
java.lang.Exception ee,
MboRemote inboundComm,
java.lang.String action)
Method called during exception of actions.
|
boolean |
performSecuityCheck(InboundCommRemote inboundComm,
MboRemote objectMbo)
Perform security check for the object and action specified in message body
|
boolean |
requiredFieldsExist(MboRemote actionObject,
long uniqueId)
Checks if all required field have value before creating service request,incident or problem
|
void |
setExtraAttrValuesForInsert(java.util.HashMap map)
Sets extra attribute-value pair for CREATE action
Should be called before createObject call
|
void |
setExtraAttrValuesForUpdate(java.util.HashMap map)
Sets extra attribute-value pair for UPDATE action
Should be called before updateObject call
|
void |
updateDoclinkForActionObject(MboRemote inboundComm,
MboRemote actionObject)
Updates the doclink entry for the action object specified in message body
|
void |
updateInbCommAfterAction(InboundCommRemote inboundComm,
MboRemote objectRemote) |
MboRemote |
updateObject(InboundCommRemote inboundComm,
MboRemote objectRemote)
Update sr,incident,problem with message body attributes
|
void |
updateStatusAndSendMail(MboRemote inboundComm,
java.lang.String status,
java.lang.String msgStr,
java.lang.String templateName)
Updates the status of inboundcomm and sends a mail to sender/admin
|
public boolean requiredFieldsExist(MboRemote actionObject, long uniqueId) throws MXException
actionObject - uniqueId - MXExceptionpublic void createCommLog(MboRemote inboundComm, MboRemote actionObject) throws MXException
inboundComm - actionObject - templateName - MXExceptionpublic void createDocLinkForCommLog(MboRemote inboundComm, MboRemote commlog) throws MXException
inboundcomm - commlog - java.lang.ExceptionMXExceptionpublic void updateDoclinkForActionObject(MboRemote inboundComm, MboRemote actionObject) throws MXException
inboundComm - actionObject - MXExceptionpublic void updateStatusAndSendMail(MboRemote inboundComm, java.lang.String status, java.lang.String msgStr, java.lang.String templateName) throws MXException
inboundComm - status - msgStr - templateName - MXExceptionpublic java.util.Date convertToDate(int type,
java.lang.String value,
UserInfo u)
throws java.lang.Exception
attr - value - uniqueId - MXExceptionjava.lang.Exceptionpublic MboRemote createObject(InboundCommRemote inboundComm, MboRemote objectRemote) throws MXException
inboundComm - objectRemote - MXExceptionpublic MboRemote updateObject(InboundCommRemote inboundComm, MboRemote objectRemote) throws MXException
inboundComm - objectRemote - MXExceptionpublic boolean performSecuityCheck(InboundCommRemote inboundComm, MboRemote objectMbo) throws java.lang.Exception
inboundComm - formatMode - java.lang.Exceptionpublic boolean authExistForObjectAndAction(InboundCommRemote inboundComm, MboRemote objectRemote, java.lang.String action, java.lang.String objectName) throws MXException
inboundComm - objectRemote - action - objectName - MXExceptionpublic void setExtraAttrValuesForInsert(java.util.HashMap map)
throws java.lang.Exception
map - java.lang.Exceptionpublic void setExtraAttrValuesForUpdate(java.util.HashMap map)
throws java.lang.Exception
map - java.lang.Exceptionpublic void updateInbCommAfterAction(InboundCommRemote inboundComm, MboRemote objectRemote) throws java.lang.Exception
java.lang.Exceptionpublic void handleException(java.lang.String objectName,
java.lang.Exception ee,
MboRemote inboundComm,
java.lang.String action)
throws java.lang.Exception
objectName - ee - inboundComm - action - java.lang.Exception