psdi.webclient.beans.startcntr

Class PortletAppBean

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


    public class PortletAppBean
    extends AppBean
    Represents the base appbean class for portlet configuration applications. Has methods needed in all portlet appbeans, for e.g cancel and gototstartcenter. This class was created to reduces code from prevoius version.
    • Constructor Detail

      • PortletAppBean

        public PortletAppBean()
    • 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
  • gotostartcenter

    public int gotostartcenter()
    This method catches the gotostartcenter event, sends to start center app.
    Returns:
    EVENT_HANDLED
  • clearPortletCache

    public void clearPortletCache()
                           throws java.rmi.RemoteException,
                                  MXException
    Clears the cache for this portlet from WebclientSession. The id of the cache will be in the form of PORTLETCACHE_
    Throws:
    java.rmi.RemoteException
    MXException
  • cancel

    public int cancel()
    This method catches the cancel event, sends to start center app.
    Returns:
    EVENT_HANDLED
  • currentStartCenterId

    public long currentStartCenterId()
                              throws MXException,
                                     java.rmi.RemoteException
    Returns start center id associated with this portlet
    Returns:
    long as the start center Id
    Throws:
    MXException
    java.rmi.RemoteException
  • getCacheName

    public java.lang.String getCacheName()
                                  throws java.rmi.RemoteException,
                                         MXException
    Returns cache name prefix for this portlet app bean Its WebClientRuntime.PORTLET_CACHE_PREFIX+getMbo().getString("layoutid");
    Returns:
    Throws:
    MXException
    java.rmi.RemoteException
  • getMboSetRemote

    protected MboSetRemote getMboSetRemote()
                                    throws MXException,
                                           java.rmi.RemoteException
    Description copied from class: DataBean
    Obtains and returns a MboSetRemote using the mboname of parent/relationship setup for the bean. Override this method if the DataBean needs to get a MboSetRemote in a non-standard way. (Not via a the MXSession, or a relationship from another DataBean).
    Overrides:
    getMboSetRemote in class DataBean
    Throws:
    MXException
    java.rmi.RemoteException