public class MboXMLUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DELETEONLY
Option DELETEONLY.
|
static MXLogger |
INTEGRATIONLOGGER |
Constructor and Description |
---|
MboXMLUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkDefaultValues(MboValueInfo mvi,
java.lang.String name,
StructureObject strucObject)
Check default Value and how to process it
|
static void |
checkRowstamp(MboRemote mbo,
StructureObject strucObject)
Default method to check rowstamp attribte against row stamp of the mbo.
|
static int |
convertAction(java.lang.String action)
Converts action in XML to the MboSet Constant
|
static java.lang.String |
getDisplayKeyValue(MboSetInfo mboSetInfo,
java.lang.String[] keys,
java.lang.Object data)
Create array of keys and key values from data dictionary and concat it together
|
static java.lang.String |
getFullKeyValue(MboSetInfo mboSetInfo,
java.lang.String[] keys,
java.lang.Object data)
Create array of keys from data dictionary and concat it together
|
static java.lang.String[] |
getKeyValues(MboSetInfo mboSetInfo,
java.lang.String[] keys,
StructureObject strucObject)
Create array of keys from data dictionary
|
static java.lang.String |
getMosName(org.jdom.Document doc)
Gets Object Struture Name from a top level of Document
|
static void |
mosXmlToMbo(MboRemote mbo,
StructureObject strucObject,
java.util.Map<java.lang.String,IfaceColumnInfo> data,
long accessModifier,
boolean skipKeys)
Converts XML data to Mbo's based on Object Structure Definition
|
static void |
xmlToMbo(MboRemote mbo,
StructureObject data)
Converts XML data to existing Mbo
|
static void |
xmlToMbo(MboRemote mbo,
StructureObject strucObject,
java.util.Iterator columns,
long accessModifier)
Converts XML data to all specified columns in a Mbo
|
static MboSetRemote |
xmlToMboSet(MboSetRemote mboSet,
ObjectList data)
Converts XML data to existing MboSet
|
static MboSetRemote |
xmlToMboSet(MboSetRemote mboSet,
ObjectList data,
int mboAction)
Converts XML data to existing MboSet
|
static MboSetRemote |
xmlToMboSet(UserInfo info,
ObjectList data,
java.util.Map<java.lang.String,java.lang.String> params,
MXTransaction trans)
Creates MboSet and converts XML data to it
|
static MboSetRemote |
xmlToMboSet(UserInfo info,
ObjectList data,
java.util.Map<java.lang.String,java.lang.String> params,
MXTransaction trans,
java.lang.String appName)
Creates MboSet and converts XML data to it
|
public static final MXLogger INTEGRATIONLOGGER
public static final int DELETEONLY
public static MboSetRemote xmlToMboSet(UserInfo info, ObjectList data, java.util.Map<java.lang.String,java.lang.String> params, MXTransaction trans) throws java.rmi.RemoteException, MXException
info
- Give refrence to User Info object.data
- List of XML data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static MboSetRemote xmlToMboSet(UserInfo info, ObjectList data, java.util.Map<java.lang.String,java.lang.String> params, MXTransaction trans, java.lang.String appName) throws java.rmi.RemoteException, MXException
info
- Give refrence to User Info object.data
- List of XML data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static MboSetRemote xmlToMboSet(MboSetRemote mboSet, ObjectList data, int mboAction) throws java.rmi.RemoteException, MXException
mboSet
- Give refrence to existing MboSet object.data
- List of XML data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static MboSetRemote xmlToMboSet(MboSetRemote mboSet, ObjectList data) throws java.rmi.RemoteException, MXException
mboSet
- Give refrence to existing MboSet object.data
- List of XML data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static void xmlToMbo(MboRemote mbo, StructureObject data) throws java.rmi.RemoteException, MXException
mbo
- Give refrence to existing Mbo object.data
- XML data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static void xmlToMbo(MboRemote mbo, StructureObject strucObject, java.util.Iterator columns, long accessModifier) throws java.rmi.RemoteException, MXException
mbo
- Give refrence to Mbo object.strucObject
- XML data.columns
- Columns Iterator.accessModifier
- accessModifier to set the data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static void mosXmlToMbo(MboRemote mbo, StructureObject strucObject, java.util.Map<java.lang.String,IfaceColumnInfo> data, long accessModifier, boolean skipKeys) throws java.rmi.RemoteException, MXException
mbo
- Give refrence to Mbo object.strucObject
- XML data.data
- Map of of data needed to be set.accessModifier
- accessModifier to set the data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.lang.String getMosName(org.jdom.Document doc) throws MXException, java.rmi.RemoteException
doc
- JDOM Documnt around XML dataMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.lang.String[] getKeyValues(MboSetInfo mboSetInfo, java.lang.String[] keys, StructureObject strucObject) throws MXException, java.rmi.RemoteException
mboSetInfo
- Informnation of the Integration Objectkeys
- Key arraystrucObject
- Reference to structureData Object for the current data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.lang.String getFullKeyValue(MboSetInfo mboSetInfo, java.lang.String[] keys, java.lang.Object data) throws MXException, java.rmi.RemoteException
mboSetInfo
- Informnation of the Integration Objectkeys
- Key arraydata
- Reference to structureData Object for the current data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static java.lang.String getDisplayKeyValue(MboSetInfo mboSetInfo, java.lang.String[] keys, java.lang.Object data) throws MXException, java.rmi.RemoteException
mboSetInfo
- Informnation of the Integration Objectkeys
- Key arraydata
- Reference to structureData Object for the current data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static boolean checkDefaultValues(MboValueInfo mvi, java.lang.String name, StructureObject strucObject) throws MXException, java.rmi.RemoteException
mvi
- Informnation of the Mbo Attributename
- Attribute NamestrucObject
- Reference to structureData Object for the current data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static int convertAction(java.lang.String action) throws MXException, java.rmi.RemoteException
action
- XML actionMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic static void checkRowstamp(MboRemote mbo, StructureObject strucObject) throws MXException, java.rmi.RemoteException
mbo
- Give refrence to Mbo object.strucObject
- XML data.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exception