public class MosProcess extends java.lang.Object implements MosConstants
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
action
Specifies action for Outbound transaction
|
protected boolean |
apiContext |
protected java.lang.String |
dbName
Database brand name
|
protected java.util.ArrayList |
hr
Values object to store all levels
|
static MXLogger |
INTEGRATIONLOGGER
Integration logger for logging messages related to MAXIMO startup.
|
protected ObjectStructureCache |
interDD
Describes Integration Data Dictinary
|
protected MboRemote |
mbo
Reference to Mbo
|
protected MosDetailInfo |
mdi
Data dictionary info about THIS MicSet
|
protected java.util.ArrayList |
micsetrel
Describes Data Dictionary for Specific map
|
protected MosInfo |
mosInfo |
protected java.lang.String |
mosName
the name of the Object Structure
|
protected MXServer |
mxServer
Reference to MxServer
|
protected MXTransaction |
mxTrans
Transaction object to hold whole transaction
|
protected MboRemote |
primaryMbo
Specifies Mbo for primary table in the map for transaction
|
protected java.lang.String |
primaryMboName |
protected MboSetRemote |
primaryMboSet
Specifies MboSet for primary table in the map for transaction
|
protected java.lang.String |
scriptName |
protected UserInfo |
userInfo
UserInfo of the user who initiated transaction
|
ACTION, ACTIONADD, ACTIONADDUPDATE, ACTIONDELETE, ACTIONREPLACE, ACTIONUPDATE, ADAPTER_INSTALL, ADD, ADDATEND, BASELANGUAGE, BYPASS, COMPANYSETID_NAME, COMPLETE, CONFIGFILENAME, CREATIONDATETIME, DELETEFORINSERT, DEPLOYMENT_MANAGER, ENTERPRISE_SERVICE, ERRORTAG, ESCAPECHAR, EVENT, FILTERMBOKEY, INVOKE_CHANNEL, ITEMSETID_NAME, MAXIMO_NS_PREFIX, MAXIMOVERSION, MESSAGEID, MESSAGETYPE_CREATE, MESSAGETYPE_DELETE, MESSAGETYPE_INITIATE, MESSAGETYPE_INVOKE, MESSAGETYPE_MERGE, MESSAGETYPE_PATCH, MESSAGETYPE_PROCESS, MESSAGETYPE_PUBLISH, MESSAGETYPE_QUERY, MESSAGETYPE_RESPONSE, MESSAGETYPE_SYNC, MESSAGETYPE_UPDATE, MESSAGETYPE_WAKEUP, OBJECT_STRUCTURE_SERVICE, ORGID_NAME, OVERRIDEALWAYS, OVERRIDENULLONLY, PROCESS, SITEID_NAME, SKIP, SKIPMBO, SKIPMBOKEY, STANDARD_SERVICE, TRANSLANGUAGE, UPDATE, XSI_NS, XSI_NS_PREFIX
Constructor and Description |
---|
MosProcess()
Construct the set
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDBName()
Return Database Name
|
ObjectStructureCache |
getInterDD()
Return ObjectStructureCache reference
|
OslcRequest |
getJsonRequest() |
java.lang.String[] |
getKeyArray(MicSetInfo info)
Deprecated.
use getKeyArray(MosDetailInfo info)
|
java.lang.String[] |
getKeyArray(java.lang.String name)
Create array of keys from data dictionary
|
protected MboServerInterface |
getMboServer()
Return a reference to the server.
|
java.lang.String |
getMosName()
Return Object Structure name.
|
MboRemote |
getPrimaryMbo()
Return primary mbo for outbound transactions
|
MXTransaction |
getTransaction()
Retern reference to transaction object
|
java.lang.String |
getTransactionAction()
Return action of the transaction
|
protected Translate |
getTranslator()
Return a Translator Object.
|
UserInfo |
getUserInfo()
Return user info of current instance
|
boolean |
hasInvokedScript(java.util.Map context) |
boolean |
hasScript() |
boolean |
isMaxVarEQ(java.lang.String maxvarName,
java.lang.String inValue,
java.lang.String orgId,
java.lang.String siteId)
Checks if the passed value in indeed a value of the given maxvar in the
maxvar table or not
|
protected boolean |
isRESTEditMode() |
protected boolean |
isSetValueMode() |
boolean |
isValueEQ(java.lang.String listName,
java.lang.String inMaxValue,
java.lang.String inValue)
Checks if the passed value in indeed a value of the given listname and
maxvalue combination in valuelist table or not.
|
void |
setJsonRequest(OslcRequest jsonRequest) |
void |
setMosName(java.lang.String mosName)
Set object structure name
|
void |
setOSName(java.lang.String osName) |
void |
setOSPrimaryMbo(MboRemote mbo) |
void |
setUserInfo(UserInfo info)
Set user info of current instance
|
protected MXTransaction mxTrans
protected java.lang.String action
protected MboSetRemote primaryMboSet
protected MboRemote primaryMbo
protected MboRemote mbo
protected java.lang.String dbName
protected MXServer mxServer
protected java.lang.String mosName
protected UserInfo userInfo
protected MosDetailInfo mdi
protected ObjectStructureCache interDD
protected java.util.ArrayList micsetrel
protected java.util.ArrayList hr
protected MosInfo mosInfo
protected java.lang.String primaryMboName
protected java.lang.String scriptName
protected boolean apiContext
public static final MXLogger INTEGRATIONLOGGER
public MosProcess() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
public OslcRequest getJsonRequest()
protected boolean isRESTEditMode() throws MXException
MXException
protected boolean isSetValueMode() throws MXException
MXException
public void setJsonRequest(OslcRequest jsonRequest)
public void setMosName(java.lang.String mosName)
mosName
- Object Structure NameMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void setOSName(java.lang.String osName)
public final boolean hasScript()
public final boolean hasInvokedScript(java.util.Map context)
public void setOSPrimaryMbo(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getMosName() throws MXException
MXException
- MAXIMO exceptionprotected MboServerInterface getMboServer() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionprotected Translate getTranslator() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic UserInfo getUserInfo() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void setUserInfo(UserInfo info) throws MXException, java.rmi.RemoteException
info
- UserInfo ObjectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic boolean isValueEQ(java.lang.String listName, java.lang.String inMaxValue, java.lang.String inValue) throws MXException, java.rmi.RemoteException
listName
- Give the list name.inMaxValue
- Give the max value value.inValue
- Give the value that you are trying to verify.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic boolean isMaxVarEQ(java.lang.String maxvarName, java.lang.String inValue, java.lang.String orgId, java.lang.String siteId) throws MXException, java.rmi.RemoteException
maxvarName
- Give the max var name whose value is in question.inValue
- Give the max var value that you are trying to verify.orgId
- Organization Id.siteId
- Site Id.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic ObjectStructureCache getInterDD()
public java.lang.String getDBName() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic MboRemote getPrimaryMbo() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic MXTransaction getTransaction() throws MXException, java.rmi.RemoteException
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.String getTransactionAction()
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.String[] getKeyArray(MicSetInfo info) throws MXException, java.rmi.RemoteException
info
- MicSet InfoMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.String[] getKeyArray(java.lang.String name) throws MXException, java.rmi.RemoteException
name
- Object nameMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exception