public class MosDefinitionImpl extends MosProcess
INTEGRATIONLOGGER
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 |
---|
MosDefinitionImpl() |
Modifier and Type | Method and Description |
---|---|
int |
applyAPICondition(MboRemote mbo,
MosDetailInfo mosDetInfo) |
int |
checkBusinessRules(MboRemote mbo,
MosDetailInfo mosDetInfo,
java.util.Map<java.lang.String,java.lang.Object> ovrdColValueMap)
Default method to call back and find out can we process data from
specific table.
|
MboRemote |
createNewMbo(MboSetRemote mboSet) |
boolean |
forceDiscardChildMboSet(boolean event,
MboSetRemote mboSet,
MosDetailInfo msd)
This will give developers a chance to discard child mbosets in a os graph selctively when
the publish channel using this os has retainmbos set to true.
|
java.util.Set<java.lang.String> |
getColumnsToSkip(MboRemote mbo) |
void |
myCompletedList(MboSetRemote msr,
java.lang.String queryName,
java.lang.String app,
java.lang.String owner) |
void |
myNotCompletedList(MboSetRemote msr,
java.lang.String queryName,
java.lang.String app,
java.lang.String owner) |
void |
postSerializationRules(MboRemote mbo,
MosDetailInfo mosDetInfo)
Override this method for doing custom rules after the
mbo has be serialized. |
void |
scriptOverrideRules(MboRemote mbo,
MosDetailInfo mosDetInfo,
java.util.Map<java.lang.String,java.lang.Object> ovrdColValueMap) |
java.util.Set<java.lang.String> |
scriptSkipColRules(MboRemote mbo,
MosDetailInfo mosDetInfo,
java.util.Set<java.lang.String> skipCols) |
int |
scriptSkipMboRules(MboRemote mbo,
MosDetailInfo mosDetInfo) |
byte[] |
serializationEnd(byte[] serializedData) |
void |
setDefinitionMetaData(java.util.Map<java.lang.String,?> defnMetaData) |
getDBName, getInterDD, getJsonRequest, getKeyArray, getKeyArray, getMosName, getPrimaryMbo, getTransaction, getTransactionAction, getUserInfo, hasInvokedScript, hasScript, isMaxVarEQ, isValueEQ, setJsonRequest, setMosName, setOSName, setOSPrimaryMbo, setUserInfo
public MosDefinitionImpl() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setDefinitionMetaData(java.util.Map<java.lang.String,?> defnMetaData)
defnMetaData
- the metaData for creating xmlpublic boolean forceDiscardChildMboSet(boolean event, MboSetRemote mboSet, MosDetailInfo msd)
event
- whether its an event based serializationmboSet
- the child mboset to be force discardedmsd
- the os config object represneting the child mbosetpublic MboRemote createNewMbo(MboSetRemote mboSet) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public final int scriptSkipMboRules(MboRemote mbo, MosDetailInfo mosDetInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public final void scriptOverrideRules(MboRemote mbo, MosDetailInfo mosDetInfo, java.util.Map<java.lang.String,java.lang.Object> ovrdColValueMap) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public final java.util.Set<java.lang.String> scriptSkipColRules(MboRemote mbo, MosDetailInfo mosDetInfo, java.util.Set<java.lang.String> skipCols) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int checkBusinessRules(MboRemote mbo, MosDetailInfo mosDetInfo, java.util.Map<java.lang.String,java.lang.Object> ovrdColValueMap) throws MXException, java.rmi.RemoteException
mbo
- the current processing mboMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic int applyAPICondition(MboRemote mbo, MosDetailInfo mosDetInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void postSerializationRules(MboRemote mbo, MosDetailInfo mosDetInfo) throws MXException, java.rmi.RemoteException
mbo
has be serialized.mbo
- the mbo that has just been serialized.mosDetInfo
- the MosDetailInfo corresponding to that mbo
.MXException
java.rmi.RemoteException
public java.util.Set<java.lang.String> getColumnsToSkip(MboRemote mbo) throws MXException, java.rmi.RemoteException
mbo
- the Mbo that will be serialized to xmlMXException
java.rmi.RemoteException
public byte[] serializationEnd(byte[] serializedData) throws MXException
MXException
public void myCompletedList(MboSetRemote msr, java.lang.String queryName, java.lang.String app, java.lang.String owner) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void myNotCompletedList(MboSetRemote msr, java.lang.String queryName, java.lang.String app, java.lang.String owner) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException