psdi.webclient.beans.asset

Class AssetAppBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener
    Direct Known Subclasses:
    PlusCAssetAppBean


    public class AssetAppBean
    extends AppBean
    • Field Detail

      • targetStatusOption

        public java.lang.String targetStatusOption
    • Constructor Detail

      • AssetAppBean

        public AssetAppBean()
    • Method Detail

      • REFRESHLIST

        public int REFRESHLIST()
                        throws MXException,
                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • structureChangedEvent

        public void structureChangedEvent(DataBean speaker)
        Event called by the "resultsBean" DataBean which tells this DataBean that it references a new mbo or reset's the default filterBy to VIEWALL if the user is changing mbo's except if it is a navhistory or refreshrelationship action
        Specified by:
        structureChangedEvent in interface DataBeanListener
        Overrides:
        structureChangedEvent in class AppBean
        Parameters:
        speaker - DataBean passed into parent structureChangedEvent
      • APPLYIAS

        public int APPLYIAS()
                     throws java.rmi.RemoteException,
                            java.io.IOException,
                            javax.servlet.ServletException
        Throws:
        java.rmi.RemoteException
        java.io.IOException
        javax.servlet.ServletException
      • MOVEASSET

        public int MOVEASSET()
                      throws java.rmi.RemoteException,
                             java.io.IOException,
                             javax.servlet.ServletException
        Throws:
        java.rmi.RemoteException
        java.io.IOException
        javax.servlet.ServletException
      • SWAPASSET

        public int SWAPASSET()
                      throws java.rmi.RemoteException,
                             java.io.IOException,
                             javax.servlet.ServletException
        Throws:
        java.rmi.RemoteException
        java.io.IOException
        javax.servlet.ServletException
      • STATUS

        public int STATUS()
                   throws java.rmi.RemoteException,
                          java.io.IOException,
                          javax.servlet.ServletException,
                          MXException
        Throws:
        java.rmi.RemoteException
        java.io.IOException
        javax.servlet.ServletException
        MXException
      • STATUSSUB

        public int STATUSSUB()
                      throws MXException,
                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • ALTERITEM

        public int ALTERITEM()
                      throws java.rmi.RemoteException,
                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • USERCUST

        public int USERCUST()
                     throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • ASTLOCCOMM

        public int ASTLOCCOMM()
                       throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • SAVE

        public int SAVE()
                 throws MXException,
                        java.rmi.RemoteException
        checks for exceptions resulting from duplicate AssetMeter.Sequence values when the Asset's meter group (Asset.GroupName) has been modified. If duplicate sequence exceptions exists, appends an exception that informs user to modify the duplicate sequence numbers if they are not desired. The save transation still completes with duplicate sequence numbers.
        Overrides:
        SAVE in class AppBean
        Throws:
        MXApplicationException - ("meter","dupseqnumResolution")
        MXException
        java.rmi.RemoteException
      • recalibrateLinearAssets

        public int recalibrateLinearAssets()
                                    throws java.rmi.RemoteException,
                                           MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • considerDuplicateMeterSequences

        public void considerDuplicateMeterSequences()
                                             throws java.rmi.RemoteException,
                                                    MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • MANAGELIB

        public int MANAGELIB()
                      throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • MANAGEFOLD

        public int MANAGEFOLD()
                       throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • ASSOCFOLD

        public int ASSOCFOLD()
                      throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • ISSUEITEMS

        public int ISSUEITEMS()
                       throws MXException,
                              java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • METREAD

        public int METREAD()
                    throws MXException,
                           java.rmi.RemoteException,
                           java.io.IOException,
                           javax.servlet.ServletException
        Throws:
        MXException
        java.rmi.RemoteException
        java.io.IOException
        javax.servlet.ServletException
      • METRESET

        public int METRESET()
                     throws MXException,
                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • METHIST

        public int METHIST()
                    throws MXException,
                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • VIEWWOPM

        public int VIEWWOPM()
                     throws java.rmi.RemoteException,
                            java.io.IOException,
                            javax.servlet.ServletException
        Throws:
        java.rmi.RemoteException
        java.io.IOException
        javax.servlet.ServletException
      • checkDPAAppsAccess

        public void checkDPAAppsAccess()
                                throws MXException,
                                       java.rmi.RemoteException
        is the user authorized to view deployed asset details? That is, can the user click on the Deployed Asset Details button on the Asset Details screen that will take him/her to the Deployed asset applications ?
        Throws:
        MXApplicationException - ("access","notauthorized")
        MXException
        java.rmi.RemoteException
      • viewdetails

        public int viewdetails()
                        throws MXException,
                               java.rmi.RemoteException
        This function handles the "View Details" button on the Asset Details dialog.
        Throws:
        MXException
        java.rmi.RemoteException
      • openMaximoDiscovery

        public int openMaximoDiscovery()
                                throws MXException,
                                       java.rmi.RemoteException
        This function handles the "Discovery" button on the Asset Details dialog.
        Throws:
        MXException
        java.rmi.RemoteException
      • ZEROYTD

        public int ZEROYTD()
                    throws MXException,
                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(int nRow,
                             java.lang.String attribute,
                             java.lang.String value,
                             long accessModifier)
                      throws MXException
        Description copied from class: DataBean
        Updates an attribute's value on the given row. Fires a row change event to all the listeners upon success.
        Overrides:
        setValue in class DataBean
        Throws:
        MXException
      • save

        public void save()
                  throws MXException
        Description copied from class: AppBean
        Needs it's own version of save to insure the proper record is set. If the current row is a new record then before saving, it stores the key attributes and their values. Calls save then resets the qbe and to the stored values. This insures that the inserted record stays as the current record after saving.
        Overrides:
        save in class AppBean
        Throws:
        MXException
      • PLUSVIEWSP

        public int PLUSVIEWSP()
                       throws java.rmi.RemoteException,
                              MXException
        Calls View Spot Check History dialog after validating, fetches information
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • convertsachildtoparent

        public int convertsachildtoparent()
                                   throws MXException,
                                          java.rmi.RemoteException
        Make the current customized (child) Service Address a main one (parent)
        Throws:
        MXException
        java.rmi.RemoteException
      • createNewSA

        public int createNewSA()
                        throws MXException,
                               java.rmi.RemoteException
        Prepares the initial data to be used in the 'Create New Service Address' dialog.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • addNewSAusingTempData

        public int addNewSAusingTempData()
                                  throws MXException,
                                         java.rmi.RemoteException
        Proceed with the Service Address creation based on information provided in the dialog.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • changeTemplateState

        public int changeTemplateState()
                                throws MXException,
                                       java.rmi.RemoteException
        Method to be sent to event handler after the 'Create New Service Address' dialog is closed. This is to guarantee that changes won't be lost by leave the modified service address in memory.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • ASTDEFOP

        public int ASTDEFOP()
                     throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • ASTMNGOP

        public int ASTMNGOP()
                     throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • ASTDEFMNT

        public int ASTDEFMNT()
                      throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • ASTMNGMNT

        public int ASTMNGMNT()
                      throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • refreshhistory

        public int refreshhistory()
                           throws MXException,
                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • SPLITDEP

        public int SPLITDEP()
                     throws MXException,
                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • MANAGEDEP

        public int MANAGEDEP()
                      throws MXException,
                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • hasSigOptionAccess

        public boolean hasSigOptionAccess(java.lang.String sigOption)
                                   throws java.rmi.RemoteException,
                                          MXException
        IJ23166: this happens only in Asset Application. The same check did not happen in PM,SR,WOTRACK,QUICKREP where there is the same menu item FLTRLASET menu - Filter by Linear Assets The reason: the other apps do not have an Open Drilldown menu item in the app action menu. Refer to AppInstance.isSigOptionCheck(String sigoption) method. Since the sigoption check error "NotAuthorizedForMbo" occurred in Asset only, I am modifying the AssetAppBean to allow the Drilldown dialog to open without any error when it is launched via Filter by Linear Assets menu in the the list tab.
        Overrides:
        hasSigOptionAccess in class DataBean
        Parameters:
        sigOption - The sigoption that will be checked to see if the user has privileges for it, for the given Mbo.
        Throws:
        java.rmi.RemoteException
        MXException
      • IMPORTDIGITALDATA

        public int IMPORTDIGITALDATA()
                              throws MXException,
                                     java.rmi.RemoteException
        Method invoked from Import Digital Data action
        Throws:
        MXException
        java.rmi.RemoteException