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<java.lang.String,java.lang.String> map)
Sets extra attribute-value pair for CREATE action
Should be called before createObject call
|
void |
setExtraAttrValuesForUpdate(java.util.HashMap<java.lang.String,java.lang.String> 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
- MXException
public void createCommLog(MboRemote inboundComm, MboRemote actionObject) throws MXException
inboundComm
- actionObject
- templateName
- MXException
public void createDocLinkForCommLog(MboRemote inboundComm, MboRemote commlog) throws MXException
inboundcomm
- commlog
- java.lang.Exception
MXException
public void updateDoclinkForActionObject(MboRemote inboundComm, MboRemote actionObject) throws MXException
inboundComm
- actionObject
- MXException
public void updateStatusAndSendMail(MboRemote inboundComm, java.lang.String status, java.lang.String msgStr, java.lang.String templateName) throws MXException
inboundComm
- status
- msgStr
- templateName
- MXException
public java.util.Date convertToDate(int type, java.lang.String value, UserInfo u) throws java.lang.Exception
attr
- value
- uniqueId
- MXException
java.lang.Exception
public MboRemote createObject(InboundCommRemote inboundComm, MboRemote objectRemote) throws MXException
inboundComm
- objectRemote
- MXException
public MboRemote updateObject(InboundCommRemote inboundComm, MboRemote objectRemote) throws MXException
inboundComm
- objectRemote
- MXException
public boolean performSecuityCheck(InboundCommRemote inboundComm, MboRemote objectMbo) throws java.lang.Exception
inboundComm
- formatMode
- java.lang.Exception
public boolean authExistForObjectAndAction(InboundCommRemote inboundComm, MboRemote objectRemote, java.lang.String action, java.lang.String objectName) throws MXException
inboundComm
- objectRemote
- action
- objectName
- MXException
public void setExtraAttrValuesForInsert(java.util.HashMap<java.lang.String,java.lang.String> map) throws java.lang.Exception
map
- java.lang.Exception
public void setExtraAttrValuesForUpdate(java.util.HashMap<java.lang.String,java.lang.String> map) throws java.lang.Exception
map
- java.lang.Exception
public void updateInbCommAfterAction(InboundCommRemote inboundComm, MboRemote objectRemote) throws java.lang.Exception
java.lang.Exception
public 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