public class ExternalJSONMapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MXLogger |
INTEGRATIONLOGGER
The Integration logger
|
Constructor and Description |
---|
ExternalJSONMapper(java.lang.String mapName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatConditionalValue(java.util.List<JSONMapPropertyValuesInfo> values,
java.lang.Object jo,
java.lang.String jsonData,
MboSetInfo msi)
Find correct value based on condition and format it to process
|
StructureData |
mapJSONtoOS(com.ibm.json.java.JSONArtifact jsonData,
java.lang.String messageType,
java.lang.String mosName,
UserInfo userInfo)
Map JSON to object structure and process it to Maximo
|
StructureData |
mapJSONtoOS(com.ibm.json.java.JSONArtifact jsonData,
java.lang.String messageType,
java.lang.String mosName,
UserInfo userInfo,
boolean toJSON) |
StructureData |
mapJSONtoOS(com.ibm.json.java.JSONArtifact jsonData,
java.lang.String interfaceName,
UserInfo userInfo)
Map JSON to object structure
|
com.ibm.json.java.JSONArtifact |
mapMboSetToJSON(MboSetRemote mboSet,
UserInfo userInfo)
Map MboSet to JSON
|
com.ibm.json.java.JSONArtifact |
mapMboToJSON(MboRemote mbo,
UserInfo userInfo)
Map Mbo to JSON
|
com.ibm.json.java.JSONArtifact |
mapOSToJSON(StructureData strucIn,
UserInfo userInfo)
Map object structure XML to JSON
|
com.ibm.json.java.JSONArtifact |
mapOSToJSON(StructureData strucIn,
UserInfo userInfo,
boolean fromJSON)
Map object structure XML to JSON
|
boolean |
meetCondition(java.lang.String condition,
java.lang.Object jo,
java.lang.String jsonData,
MboSetInfo msi)
Check if condition true or false
|
MboRemote |
processJSON(com.ibm.json.java.JSONArtifact jsonData,
java.lang.String messageType,
java.lang.String mosName,
UserInfo userInfo,
MXTransaction mxTrans)
Map JSON to object structure and process it to Maximo
|
void |
setForInsert(com.ibm.json.java.JSONObject jo,
java.lang.String jsonData,
MboSetRemote mboSet)
Validate ORG and SITE for the inbound transaction.
|
public static final MXLogger INTEGRATIONLOGGER
public ExternalJSONMapper(java.lang.String mapName) throws MXException
mapName
- the map nameMXException
- MAXIMO exceptionpublic MboRemote processJSON(com.ibm.json.java.JSONArtifact jsonData, java.lang.String messageType, java.lang.String mosName, UserInfo userInfo, MXTransaction mxTrans) throws MXException, java.rmi.RemoteException
jsonData
- source JSONmessageType
- Message TypemosName
- Object StructureuserInfo
- User Info objectmxTrans
- Reference to MXTransaction objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic StructureData mapJSONtoOS(com.ibm.json.java.JSONArtifact jsonData, java.lang.String interfaceName, UserInfo userInfo) throws MXException, java.rmi.RemoteException
interfaceName
- Enterprise Service nameuserInfo
- User Info objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic StructureData mapJSONtoOS(com.ibm.json.java.JSONArtifact jsonData, java.lang.String messageType, java.lang.String mosName, UserInfo userInfo) throws MXException, java.rmi.RemoteException
jsonData
- source JSONmessageType
- Message TypemosName
- Object StructureuserInfo
- User Info objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic StructureData mapJSONtoOS(com.ibm.json.java.JSONArtifact jsonData, java.lang.String messageType, java.lang.String mosName, UserInfo userInfo, boolean toJSON) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public com.ibm.json.java.JSONArtifact mapOSToJSON(StructureData strucIn, UserInfo userInfo) throws MXException, java.rmi.RemoteException
strucIn
- StructureData object which reference to XMLuserInfo
- User Info objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic com.ibm.json.java.JSONArtifact mapOSToJSON(StructureData strucIn, UserInfo userInfo, boolean fromJSON) throws MXException, java.rmi.RemoteException
strucIn
- StructureData object which reference to XMLuserInfo
- User Info objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic com.ibm.json.java.JSONArtifact mapMboToJSON(MboRemote mbo, UserInfo userInfo) throws MXException, java.rmi.RemoteException
mbo
- reference to Mbo objectuserInfo
- User Info objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic com.ibm.json.java.JSONArtifact mapMboSetToJSON(MboSetRemote mboSet, UserInfo userInfo) throws MXException, java.rmi.RemoteException
mboSet
- reference to MboSet objectuserInfo
- User Info objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.String formatConditionalValue(java.util.List<JSONMapPropertyValuesInfo> values, java.lang.Object jo, java.lang.String jsonData, MboSetInfo msi) throws MXException, java.rmi.RemoteException
values
- All conditional valuesjo
- processing objectjsonData
- Serialized JSON objectmsi
- MboSetInfo objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic boolean meetCondition(java.lang.String condition, java.lang.Object jo, java.lang.String jsonData, MboSetInfo msi) throws MXException, java.rmi.RemoteException
condition
- conditionjo
- processing objectjsonData
- Serialized JSON objectmsi
- MboSetInfo objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void setForInsert(com.ibm.json.java.JSONObject jo, java.lang.String jsonData, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
jo
- JSON objectmboSet
- MboSet to set org or sit id parametersjsonData
- Serialized JSON objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exception