public class InteractionBinder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static MXLogger |
INTERACTIONLOGGER
Interaction logger for logging messages related to Interaction.
|
| Constructor and Description |
|---|
InteractionBinder(java.lang.String interactionName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(MboSetRemote interactionSet,
MboRemote mainMbo,
boolean isResponse)
Main method of binding.
|
void |
bindData(MboRemote sourceMbo,
MboRemote targetMbo,
java.lang.String parameter,
java.lang.String value)
Map individual attribute from source to target
|
void |
bindInteractionData(MboRemote sourceMbo,
MboRemote targetMbo,
IntMappingInfo mapping)
Process mapping for the individual level in request or response
|
IntMappingDetailInfo |
findKeyName(IntMappingInfo mapping,
java.lang.String keyName)
Find key column in the mapping
|
protected MboRemote |
findMbo(MboRemote sourceMbo,
MboSetRemote targetSet,
IntMappingInfo mapping,
java.lang.String action)
Find Mbo in target based on the mapped keys
|
java.lang.String |
formatColumn(MboRemote sourceMbo,
java.lang.String name)
Format Column value based of the MaxType
|
java.lang.String |
getKeyValue(MboRemote sourceMbo,
java.lang.String value)
Get value for key column
|
void |
getRelatedSets(MboRemote sourceMbo,
java.lang.String value,
java.util.List relatedSets)
Find all related MboSets for asource Mbo
|
public static final MXLogger INTERACTIONLOGGER
public InteractionBinder(java.lang.String interactionName)
throws MXException,
java.rmi.RemoteException
interactionName - name of the interactionMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void bind(MboSetRemote interactionSet, MboRemote mainMbo, boolean isResponse) throws MXException, java.rmi.RemoteException
interactionSet - Starting Mbo set to map data tomainMbo - Primary MBo for the interaction mappingisResponse - request vs response indicatorMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void bindInteractionData(MboRemote sourceMbo, MboRemote targetMbo, IntMappingInfo mapping) throws MXException, java.rmi.RemoteException
sourceMbo - Source Mbo of the mappingtargetMbo - Target Mbo of the mappingmapping - Interaction mapping infoMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void bindData(MboRemote sourceMbo, MboRemote targetMbo, java.lang.String parameter, java.lang.String value) throws MXException, java.rmi.RemoteException
sourceMbo - Source Mbo of the mappingtargetMbo - Target Mbo of the mappingparameter - Target attribute to mapvalue - value to use for mappingMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionprotected MboRemote findMbo(MboRemote sourceMbo, MboSetRemote targetSet, IntMappingInfo mapping, java.lang.String action) throws MXException, java.rmi.RemoteException
sourceMbo - Source Mbo of the mappingtargetSet - Target MboSet to find a Mbomapping - Interaction mapping infoaction - Process actionMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic IntMappingDetailInfo findKeyName(IntMappingInfo mapping, java.lang.String keyName) throws MXException, java.rmi.RemoteException
mapping - Interaction mapping infokeyName - Key nameMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic java.lang.String getKeyValue(MboRemote sourceMbo, java.lang.String value) throws MXException, java.rmi.RemoteException
sourceMbo - Source Mbo of the mappingvalue - Value to processMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic java.lang.String formatColumn(MboRemote sourceMbo, java.lang.String name) throws MXException, java.rmi.RemoteException
sourceMbo - Source Mbo of the mappingname - Attribute nameMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exceptionpublic void getRelatedSets(MboRemote sourceMbo, java.lang.String value, java.util.List relatedSets) throws MXException, java.rmi.RemoteException
sourceMbo - Source Mbo of the mappingvalue - ValuerelatedSets - List of related setsMXException - MAXIMO exceptionjava.rmi.RemoteException - Remote exception