psdi.webclient.beans.bim

Class SystemsBaseBean

    • Field Detail

      • _modelLocation

        protected java.lang.String _modelLocation
      • _userInfo

        protected UserInfo _userInfo
      • _setStartingLoc

        protected boolean _setStartingLoc
    • Constructor Detail

      • SystemsBaseBean

        public SystemsBaseBean()
    • Method Detail

      • initialize

        public 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
      • setupStartingLocation

        protected java.lang.String setupStartingLocation()
                                                  throws java.rmi.RemoteException,
                                                         MXException
        The starting location is passed from the .jsp on the event that initiatiates the dialog
        Throws:
        MXException
        java.rmi.RemoteException
      • getTableId

        protected abstract java.lang.String getTableId()
      • getTreeId

        protected abstract java.lang.String getTreeId()
      • getModelLocation

        public java.lang.String getModelLocation()
      • lookupAllLocationsForSystem

        public MboSetRemote lookupAllLocationsForSystem(java.lang.String systemId,
                                                        java.lang.String siteId)
                                                 throws java.rmi.RemoteException,
                                                        MXException
        Queries the LOCHIERARCHY table for all entries associated with a system
        Parameters:
        systemId - System ID of target system
        siteId - Site ID of target system
        Returns:
        MboSetRemore with All entries associated with the system
        Throws:
        java.rmi.RemoteException
        MXException
      • populateSystem

        protected void populateSystem(MboRemote locSysMbo,
                                      LocationRemote owningLocation,
                                      java.lang.String systemId,
                                      java.lang.String siteId,
                                      java.lang.String parent,
                                      java.util.Set selection)
                               throws java.rmi.RemoteException,
                                      MXException
        Populates a new (empty) system with a 2 level hierarchy.
        Parameters:
        owningLocation -
        systemId - System ID of target system
        siteId - Site ID of target system
        parent -
        selection - A set of items to add to the system. It is assumed though not required that this set was geneated from a selection in the model viewer. It is possible that the sets contain items that have not been imported into Maximo
        Throws:
        java.rmi.RemoteException
        MXException
      • addSelectionToSystem

        protected int addSelectionToSystem(LocHierarchySetRemote hierarchySet,
                                           java.lang.String systemId,
                                           java.lang.String siteId,
                                           java.lang.String rootLocation,
                                           java.util.Set selection)
                                    throws java.rmi.RemoteException,
                                           MXException
        Add a set of locations specifed by the value bound to the control to the system with the specified parent.
        Parameters:
        hierarchySet -
        systemId - System ID of target system
        siteId - Site ID of target system
        rootLocation -
        selection - A set of items to add to the system. It is assumed though not required that this set was geneated from a selection in the model viewer. It is possible that the sets contain items that have not been imported into Maximo
        Returns:
        The number of items added to the system.
        Throws:
        java.rmi.RemoteException
        MXException
      • addNodeToSystem

        protected MboRemote addNodeToSystem(MboSetRemote hierarchySet,
                                            java.lang.String systemId,
                                            java.lang.String siteId,
                                            java.lang.String location,
                                            java.lang.String parent)
                                     throws java.rmi.RemoteException,
                                            MXException
        Add location as a member the the specified system with the specified parent
        Parameters:
        hierarchySet -
        systemId - System ID of target system
        siteId - Site ID of target system
        location - Location
        parent - Parent location (may be null)
        Returns:
        Mbo for the new LocHierarchy record
        Throws:
        java.rmi.RemoteException
        MXException
      • deleteAllMember

        protected void deleteAllMember(MboRemote systemMbo)
                                throws java.rmi.RemoteException,
                                       MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • setSetStartingLoc

        public void setSetStartingLoc(boolean setStartingLoc)
      • setChildrenFlag

        protected void setChildrenFlag(MboRemote locSysMbo,
                                       MboRemote locationMbo,
                                       java.lang.String systemId,
                                       java.lang.String siteId,
                                       java.lang.String parent)
                                throws java.rmi.RemoteException,
                                       MXException
        Set the hasChildren flag to true on the location specified by parent
        Parameters:
        locationMbo -
        systemId - System ID of target system
        siteId - Site ID of target system
        parent -
        Throws:
        java.rmi.RemoteException
        MXException