psdi.iface.mos

Class MosDefinitionImpl

    • Field Detail

      • defnMetaData

        protected java.util.Map defnMetaData
    • Constructor Detail

      • MosDefinitionImpl

        public MosDefinitionImpl()
                          throws MXException,
                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • setDefinitionMetaData

        public void setDefinitionMetaData(java.util.Map defnMetaData)
        Parameters:
        defnMetaData - the metaData for creating xml
      • forceDiscardChildMboSet

        public 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. This is release mbos and hence optmize memory usage. This method should return true only when the developer knows that this mboSet has no new/modified/deleted mbos and this mboset is not live in a UI session. Any deviation from that might cause data corruption.
        Parameters:
        event - whether its an event based serialization
        mboSet - the child mboset to be force discarded
        msd - the os config object represneting the child mboset
        Returns:
        true if this mboSet needs to be discarded false otherwise
      • scriptOverrideRules

        public final void scriptOverrideRules(MboRemote mbo,
                                              MosDetailInfo mosDetInfo,
                                              java.util.Map ovrdColValueMap)
                                       throws MXException,
                                              java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • scriptSkipColRules

        public final java.util.Set scriptSkipColRules(MboRemote mbo,
                                                      MosDetailInfo mosDetInfo,
                                                      java.util.Set skipCols)
                                               throws MXException,
                                                      java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • checkBusinessRules

        public int checkBusinessRules(MboRemote mbo,
                                      MosDetailInfo mosDetInfo,
                                      java.util.Map ovrdColValueMap)
                               throws MXException,
                                      java.rmi.RemoteException
        Default method to call back and find out can we process data from specific table. This method will return always true and can be overriden in MicSet
        Parameters:
        mbo - the current processing mbo
        Returns:
        PROCESS (means continue to process)
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • postSerializationRules

        public void postSerializationRules(MboRemote mbo,
                                           MosDetailInfo mosDetInfo)
                                    throws MXException,
                                           java.rmi.RemoteException
        Override this method for doing custom rules after the mbo has be serialized.
        Parameters:
        mbo - the mbo that has just been serialized.
        mosDetInfo - the MosDetailInfo corresponding to that mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • getColumnsToSkip

        public java.util.Set getColumnsToSkip(MboRemote mbo)
                                       throws MXException,
                                              java.rmi.RemoteException
        Parameters:
        mbo - the Mbo that will be serialized to xml
        Returns:
        the Set of column names that should not be serialized
        Throws:
        MXException
        java.rmi.RemoteException
      • serializationEnd

        public byte[] serializationEnd(byte[] serializedData)
                                throws MXException
        Throws:
        MXException
      • myCompletedList

        public void myCompletedList(MboSetRemote msr,
                                    java.lang.String queryName,
                                    java.lang.String app,
                                    java.lang.String owner)
                             throws MXException,
                                    java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • myNotCompletedList

        public void myNotCompletedList(MboSetRemote msr,
                                       java.lang.String queryName,
                                       java.lang.String app,
                                       java.lang.String owner)
                                throws MXException,
                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException