psdi.webclient.beans.bim.viewer

Class AssetLookupBase

    • Constructor Detail

      • AssetLookupBase

        public AssetLookupBase()
    • Method Detail

      • getMboSet

        public MboSetRemote getMboSet()
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from class: DataBean
        Returns the reference to the remote MboSet. Checks to see if the DataBean has a mboSetRemote is it doesn't and the resetRemote flag is true it will try and obtain a MboSetRemote for the bean via the getMboSetRemote method. IMPORTANT: This method should not be overidden. Override getMboSetRemote if the bean needs to get a MboSetRemote in a "non-standard" way. But if it is absolutely necessary make sure to call the initalize() method after obtaining the MboSetRemote and to set the flag resetRemote = false.
        Overrides:
        getMboSet in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSetRemote

        public MboSetRemote getMboSetRemote()
                                     throws MXException,
                                            java.rmi.RemoteException
        Description copied from class: DataBean
        Obtains and returns a MboSetRemote using the mboname of parent/relationship setup for the bean. Override this method if the DataBean needs to get a MboSetRemote in a non-standard way. (Not via a the MXSession, or a relationship from another DataBean).
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • initialize

        protected void initialize()
                           throws MXException,
                                  java.rmi.RemoteException
        Description copied from class: DataBean
        Typically called after the DataBean gets a new MboSetRemote On the MboSetRemote it sets the app, the app defaults, user defaults If the remote is an instanceof NonPersistentMboSetRemote then setup is called on it and sets the current row to 0. If the DataBean isn't bound to a table then initialize fetches the first mbo (sets the current row to 0). If this method is overridden under most case you will want to call super.initalize at the end of the the new initialize method.
        Overrides:
        initialize in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • structureChangedEvent

        public void structureChangedEvent(DataBean speaker)
        Description copied from class: DataBean
        event called by the "parent" DataBean which tells this DataBean that it references a new mbo or MboSetRemote. The fireStructureChangedEvent is called thus setting the resetRemote flag for all the "children" DataBeans
        Specified by:
        structureChangedEvent in interface DataBeanListener
        Overrides:
        structureChangedEvent in class DataBean
      • setCurrentRecordToAppLocation

        public void setCurrentRecordToAppLocation()
                                           throws MXException,
                                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • bimviewer

        public int bimviewer()
      • bimModelListChanged

        public int bimModelListChanged()
                                throws java.rmi.RemoteException,
                                       MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • setCurrentBeanRecord

        public void setCurrentBeanRecord(java.lang.String modelLocation)
                                  throws java.rmi.RemoteException,
                                         MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • eventMultiSelect

        public int eventMultiSelect()
      • appendSelection

        public int appendSelection()
      • getBinding

        public java.lang.String getBinding()
      • testResultsForDuplicates

        protected void testResultsForDuplicates(java.util.Set assetnumSet,
                                                MboSetRemote resultSet,
                                                java.util.Set existingAssets)
                                         throws java.rmi.RemoteException,
                                                MXException
        Check if the assets in the result set are already on the result set. If not add them
        Parameters:
        assetSet -
        resultSet -
        existingAssets -
        Throws:
        java.rmi.RemoteException
        MXException
      • insertAssets

        public void insertAssets(MboRemote appMbo,
                                 java.util.Set newAssets,
                                 java.lang.String siteid)
                          throws java.rmi.RemoteException,
                                 MXException
        Adds assets in the parent Asset and locations table
        Parameters:
        assetnumSet - The set of attributes to add
        siteId - The siteId of the assets to be added. All assets in assetNumSet must have the same siteId
        Throws:
        MXException
        java.rmi.RemoteException
      • insertLocations

        public void insertLocations(MboRemote appMbo,
                                    java.util.Set newLocations,
                                    java.lang.String siteid)
                             throws java.rmi.RemoteException,
                                    MXException
        Adds assets in the parent Asset and locations table
        Parameters:
        assetnumSet - The set of attributes to add
        siteId - The siteId of the assets to be added. All assets in assetNumSet must have the same siteId
        Throws:
        MXException
        java.rmi.RemoteException
      • filterAndUndelete

        protected void filterAndUndelete(DataBean multiLocDataBean,
                                         java.lang.String modelSiteId,
                                         java.util.Set selectedAssets,
                                         java.util.Set selectedLocations)
                                  throws java.rmi.RemoteException,
                                         MXException
        Compares the proposed insertions against the existing table. Duplicates are remove and items in the table that are delted, but are in the insertion set are undeleted
        Parameters:
        assetsDataBean -
        Throws:
        java.rmi.RemoteException
        MXException
      • formatInClause

        protected java.lang.String formatInClause(java.util.Iterator itr)