psdi.refapp.webclient.beans

Class RefBasicAppBean

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


    public class RefBasicAppBean
    extends StatefulAppBean
    A Bean class for the Basic Reference App
    • Constructor Detail

      • RefBasicAppBean

        public RefBasicAppBean()
    • Method Detail

      • initializeApp

        public void initializeApp()
                           throws MXException,
                                  java.rmi.RemoteException
        Description copied from class: AppBean
        This method is called when the presentations "main" page is initalized and before the page is rendered. It can be called multiple times to "reinitialize" the applicaiton, for example when the existing query is reset.

        Only on the first initialize the method also checks for these mutually exclusiive special conditions:

      • if there is a particular record the app needs to jump to (using uniqueid from the loadapp or gotoapp event) the result set is restricted to that record only
      • if there is a startup query sent through the launch in context as a startup where clause it is set as a user where clause
      • if there is an additional ecent "insert" a new record is inserted

        A subsequent call to initializeApp() will not check for these conditions, causing the default reset to happen

Overrides:
initializeApp in class AppBean
Throws:
MXException
java.rmi.RemoteException
  • showMsgDisplayAsMessageBox

    public int showMsgDisplayAsMessageBox()
                                   throws MXException,
                                          java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgDisplayAsStatus

    public int showMsgDisplayAsStatus()
                               throws MXException,
                                      java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgGroupKey

    public int showMsgGroupKey()
                        throws MXException,
                               java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgException

    public int showMsgException()
                         throws MXException,
                                java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgMessageString

    public int showMsgMessageString()
                             throws MXException,
                                    java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgTwoForOne

    public int showMsgTwoForOne()
                         throws MXException,
                                java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgButtonOk

    public int showMsgButtonOk()
                        throws MXException,
                               java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgButtonClose

    public int showMsgButtonClose()
                           throws MXException,
                                  java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgButtonOkCancel

    public int showMsgButtonOkCancel()
                              throws MXException,
                                     java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgButtonYesNo

    public int showMsgButtonYesNo()
                           throws MXException,
                                  java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • showMsgButtonYesNoCancel

    public int showMsgButtonYesNoCancel()
                                 throws MXException,
                                        java.rmi.RemoteException
    Throws:
    MXException
    java.rmi.RemoteException
  • forceSave

    public int forceSave()
                  throws MXException,
                         java.rmi.RemoteException
    This method is used to test the CSRF protection. It makes a simple change to the first MBO and saves it. This can be passed as an additional event or through a series of events. If the CSRF protection is working, this save would fail if no CSRF token is supplied.
    Throws:
    MXException
    java.rmi.RemoteException