psdi.webclient.beans.rsconfig

Class RSConfigRelatedMboTreeBean

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


    public class RSConfigRelatedMboTreeBean
    extends TreeControlBean
    Related Tree Bean from ResultSet configuration application (Start Center). Display main object and its related object in tree structure for the user to configure columns to display in the portlet. Note: Related Object are NOT from maxrelationship, but from report structure maxintobjdetails.
    • Field Detail

      • LOGGER

        public static final MXLogger LOGGER
      • currentAppName

        protected java.lang.String currentAppName
      • currentObjStructure

        protected java.lang.String currentObjStructure
      • currentNodeMbo

        protected MboRemote currentNodeMbo
      • lastSelectedNodeControlID

        public java.lang.String lastSelectedNodeControlID
      • firstSelectOnChangeApp

        protected boolean firstSelectOnChangeApp
      • dummyRootNode

        protected MboRemote dummyRootNode
    • Constructor Detail

      • RSConfigRelatedMboTreeBean

        public RSConfigRelatedMboTreeBean()
    • 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 TreeControlBean
        Throws:
        MXException
        java.rmi.RemoteException
      • setChangeAppOrOSForResetContent

        public void setChangeAppOrOSForResetContent()
      • selectnode

        public int selectnode()
                       throws MXException,
                              java.rmi.RemoteException
        When user selects a node, display available attributes for the selected object
        Overrides:
        selectnode in class TreeControlBean
        Returns:
        EVENT_HANDLED;
        Throws:
        MXException
        java.rmi.RemoteException
      • getTop

        public java.lang.Object[][] getTop(java.lang.String[] dataattributes,
                                           int maxchildren)
                                    throws MXException,
                                           java.rmi.RemoteException
        Override this method in case if the tree isn't an OS data and a dummy root node is created.
        Overrides:
        getTop in class TreeControlBean
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException - Apr 16, 2007
      • getLastSelectedNodeControlID

        public java.lang.String getLastSelectedNodeControlID()
      • getMboSetRemote

        public MboSetRemote getMboSetRemote()
                                     throws MXException,
                                            java.rmi.RemoteException
        Get MboSet for related-object Tree Control Tree control display REPORT related object using MAXINTOBJDETAIL where intobjectname= $(ReportName of selected Application) If users wants to configure attributes from related object, they can pick the related object if they are defined in REPORT structure. If there is no ROS defined for the selected app then create a dummy Root node.
        Overrides:
        getMboSetRemote in class DataBean
        Returns:
        maxintobjdetail mboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • createMainObjectRootNode

        protected MboRemote createMainObjectRootNode(MboSetRemote mboSet)
                                              throws MXException,
                                                     java.rmi.RemoteException
        This method is used to create a root node for main object when there is no report object structure defined for the selected application
        Parameters:
        MAXINTOBJDETAIL - set where the dummy node will be added
        Returns:
        dummy root Node for main object
        Throws:
        MXException
        java.rmi.RemoteException
      • restoreDataAfterSave

        public void restoreDataAfterSave()
                                  throws MXException,
                                         java.rmi.RemoteException
        After Save button is clicked, the tree lost all the children, as mboSet is cleared up. Manually select the last node will reload the data.
        Throws:
        MXException
        java.rmi.RemoteException
      • getChildren

        public java.lang.Object[][] getChildren(java.lang.String objectname,
                                                java.lang.String uniqueid,
                                                java.lang.String[] dataattributes,
                                                int maxchildren)
                                         throws MXException,
                                                java.rmi.RemoteException
        overridden from default treecontrolbean
        Overrides:
        getChildren in class TreeControlBean
        Parameters:
        objectname -
        uniqueid -
        dataattributes -
        maxchildren -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException