psdi.app.system.virtual

Class MaxVarInputSet

    • Constructor Detail

      • MaxVarInputSet

        public MaxVarInputSet(MboServerInterface ms)
                       throws MXException,
                              java.rmi.RemoteException
        Construct the set
        Parameters:
        ms - The MboServerInterface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create an MaxVarInput object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The MaxVarInput.
        Returns:
        an MaxVarInput object.
        Throws:
        MXException
        java.rmi.RemoteException
      • reset

        public void reset()
                   throws MXException,
                          java.rmi.RemoteException
        Description copied from class: MboSet
        Clears the current contents of the collection. This will cause a requery to the database. Save changes you wish to keep before calling this method. All linked Mbos and MboSets are closed.
        Specified by:
        reset in interface MboSetRemote
        Overrides:
        reset in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.save()
      • setupDetail

        public MboRemote setupDetail()
                              throws MXException,
                                     java.rmi.RemoteException
        Create one MaxVarInput mbo for each site within the org.
        Returns:
        The first Mbo to use to set parameters for a method. If there is no site, it will return null.
        Throws:
        MXException
        java.rmi.RemoteException
      • callInit

        public void callInit()
                      throws MXException,
                             java.rmi.RemoteException
        The method to default the required field. This has to be taken out from the init of MaxVarInput because we don't want a mbo value to be instantiated before siteid and org id is being able to set.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMaxVarMbos

        public MboSetRemote getMaxVarMbos(java.lang.String[] varNames,
                                          java.lang.String orgid,
                                          java.lang.String siteid)
                                   throws MXException,
                                          java.rmi.RemoteException
        Get the maxvar records by siteid and orgid. If the combination of siteid and orgid is not consistent with the type of the requested MaxVar, null will be returned.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSetData

        public MboSetData getMboSetData(java.lang.String[] attributes)
                                 throws java.rmi.RemoteException
        Overwritten to get the attribute list. When this method is called, the attributes specified has to include all the attributes will be displayed in the dialog.
        Specified by:
        getMboSetData in interface MboSetRemote
        Overrides:
        getMboSetData in class MboSet
        Throws:
        java.rmi.RemoteException
        See Also:
        MboSet.getMboSetData(String[])
      • getMboSetData

        public MboSetData getMboSetData(int row,
                                        int count,
                                        java.lang.String[] attributes)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overwritten to get the attribute list. When this method is called, the attributes specified has to include all the attributes will be displayed in the dialog.
        Specified by:
        getMboSetData in interface MboSetRemote
        Overrides:
        getMboSetData in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • getMaxVarsInScope

        public void getMaxVarsInScope(java.lang.String[] attributes)
                               throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • setObjClassPath

        public void setObjClassPath(java.lang.String objPath)
                             throws java.rmi.RemoteException
        The method to replace the default MaxVarInput class as the default maxvarinput's object. If any appValidation need to be needed for a group of MaxVars, a class derived from MaxVarInput should be created, and the MboSet contains the derived MaxVarInput should be notified by this method to accept a class name pointing to the derived class.
        Specified by:
        setObjClassPath in interface MaxVarInputSetRemote
        Throws:
        java.rmi.RemoteException
        See Also:
        MaxVarInputSet.setObjClassPath(java.lang.String)
      • getMaxVarType

        public java.lang.String getMaxVarType(java.lang.String varName)
                                       throws MXException,
                                              java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException