psdi.webclient.beans.bim.viewer

Class AssetLookupBaseToo

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener


    public class AssetLookupBaseToo
    extends DataBean
    • Constructor Detail

      • AssetLookupBaseToo

        public AssetLookupBaseToo()
    • Method Detail

      • 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
      • 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
      • setCurrentBeanRecordByLocId

        public void setCurrentBeanRecordByLocId(long locationId)
                                         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)