psdi.iface.mos

Class MosProcess

  • java.lang.Object
    • psdi.iface.mos.MosProcess
    • Field Detail

      • mxTrans

        protected MXTransaction mxTrans
        Transaction object to hold whole transaction
      • action

        protected java.lang.String action
        Specifies action for Outbound transaction
      • primaryMboSet

        protected MboSetRemote primaryMboSet
        Specifies MboSet for primary table in the map for transaction
      • primaryMbo

        protected MboRemote primaryMbo
        Specifies Mbo for primary table in the map for transaction
      • mbo

        protected MboRemote mbo
        Reference to Mbo
      • dbName

        protected java.lang.String dbName
        Database brand name
      • mxServer

        protected MXServer mxServer
        Reference to MxServer
      • mosName

        protected java.lang.String mosName
        the name of the Object Structure
      • userInfo

        protected UserInfo userInfo
        UserInfo of the user who initiated transaction
      • mdi

        protected MosDetailInfo mdi
        Data dictionary info about THIS MicSet
      • micsetrel

        protected java.util.ArrayList micsetrel
        Describes Data Dictionary for Specific map
      • hr

        protected java.util.ArrayList hr
        Values object to store all levels
      • mosInfo

        protected MosInfo mosInfo
      • primaryMboName

        protected java.lang.String primaryMboName
      • scriptName

        protected java.lang.String scriptName
      • apiContext

        protected boolean apiContext
      • INTEGRATIONLOGGER

        public static final MXLogger INTEGRATIONLOGGER
        Integration logger for logging messages related to MAXIMO startup.
    • Constructor Detail

      • MosProcess

        public MosProcess()
                   throws MXException,
                          java.rmi.RemoteException
        Construct the set
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException
    • Method Detail

      • setJsonRequest

        public void setJsonRequest(OslcRequest jsonRequest)
      • setMosName

        public void setMosName(java.lang.String mosName)
        Set object structure name
        Parameters:
        mosName - Object Structure Name
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • setOSName

        public void setOSName(java.lang.String osName)
      • hasScript

        public final boolean hasScript()
      • hasInvokedScript

        public final boolean hasInvokedScript(java.util.Map context)
      • getMosName

        public java.lang.String getMosName()
                                    throws MXException
        Return Object Structure name.
        Returns:
        Object Structure Name
        Throws:
        MXException - MAXIMO exception
      • getMboServer

        protected MboServerInterface getMboServer()
                                           throws MXException,
                                                  java.rmi.RemoteException
        Return a reference to the server.
        Returns:
        MboServerInterface
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getTranslator

        protected Translate getTranslator()
                                   throws MXException,
                                          java.rmi.RemoteException
        Return a Translator Object.
        Returns:
        Translate object
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getUserInfo

        public UserInfo getUserInfo()
                             throws MXException,
                                    java.rmi.RemoteException
        Return user info of current instance
        Returns:
        UserInfo Object
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • setUserInfo

        public void setUserInfo(UserInfo info)
                         throws MXException,
                                java.rmi.RemoteException
        Set user info of current instance
        Parameters:
        info - UserInfo Object
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • isValueEQ

        public boolean isValueEQ(java.lang.String listName,
                                 java.lang.String inMaxValue,
                                 java.lang.String inValue)
                          throws MXException,
                                 java.rmi.RemoteException
        Checks if the passed value in indeed a value of the given listname and maxvalue combination in valuelist table or not.
        Parameters:
        listName - Give the list name.
        inMaxValue - Give the max value value.
        inValue - Give the value that you are trying to verify.
        Returns:
        The true or false condition indicating if passed value (inValue) exists as value of given list (listName) and maxvalue (inMaxValue) combination in the database.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • isMaxVarEQ

        public boolean isMaxVarEQ(java.lang.String maxvarName,
                                  java.lang.String inValue,
                                  java.lang.String orgId,
                                  java.lang.String siteId)
                           throws MXException,
                                  java.rmi.RemoteException
        Checks if the passed value in indeed a value of the given maxvar in the maxvar table or not
        Parameters:
        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.
        Returns:
        The true or false condition indicating if passed value (inValue) exists as value of given maxvar (maxvarName) in the database.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getInterDD

        public ObjectStructureCache getInterDD()
        Return ObjectStructureCache reference
        Returns:
        ObjectStructureCache
      • getDBName

        public java.lang.String getDBName()
                                   throws MXException,
                                          java.rmi.RemoteException
        Return Database Name
        Returns:
        Database name
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getPrimaryMbo

        public MboRemote getPrimaryMbo()
                                throws MXException,
                                       java.rmi.RemoteException
        Return primary mbo for outbound transactions
        Returns:
        primaryMbo
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getTransaction

        public MXTransaction getTransaction()
                                     throws MXException,
                                            java.rmi.RemoteException
        Retern reference to transaction object
        Returns:
        Transaction object
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getTransactionAction

        public java.lang.String getTransactionAction()
        Return action of the transaction
        Returns:
        Action of the transaction
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getKeyArray

        public java.lang.String[] getKeyArray(MicSetInfo info)
                                       throws MXException,
                                              java.rmi.RemoteException
        Deprecated. use getKeyArray(MosDetailInfo info)
        Create array of keys from data dictionary
        Parameters:
        info - MicSet Info
        Returns:
        Array of Keys to mbo
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getKeyArray

        public java.lang.String[] getKeyArray(java.lang.String name)
                                       throws MXException,
                                              java.rmi.RemoteException
        Create array of keys from data dictionary
        Parameters:
        name - Object name
        Returns:
        Array of Keys to mbo
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception