psdi.webclient.beans.swcatalog

Class SelectAndProcessSoftwareBean

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


    public class SelectAndProcessSoftwareBean
    extends DataBean
    Bean for processing of selected software - provides common functionality for multiple dialogs that are used in the Software Catalog application to select Software Catalog entries and link them in a certain way to the current main record
    Since:
    7.2.1
    • Constructor Detail

      • SelectAndProcessSoftwareBean

        public SelectAndProcessSoftwareBean()
    • Method Detail

      • getMboSetRemote

        protected MboSetRemote getMboSetRemote()
                                        throws MXException,
                                               java.rmi.RemoteException
        Obtain a where clause depending on the parent object and the relationship to it, apply to the clause parameters from the current record and filter TLOAMSOFTWARE based on the clause
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        DataBean.getMboSetRemote()
      • getFilterClause

        protected java.lang.String getFilterClause()
        Provide a where clause that applies to the TLOAMSOFTWARE object. It expects the following parameters
      • :0 (mandatory) - the unique id TLOAMSOFTWATRE.TLOAMSOFTWATREID of the current main record
      • :1 (mandatory) - a boolean that will be set to false
      • :2 (optional) - the name TLOAMSOFTWARE.SWNAME of the current main record
Returns:
the where clause
  • execute

    public int execute()
                throws MXException,
                       java.rmi.RemoteException
    Handles the OK button on the dialog. Call the same method for each selected record. Call a method to refresh the view at the end
    Overrides:
    execute in class DataBean
    Returns:
    int
    Throws:
    MXException
    java.rmi.RemoteException
    See Also:
    DataBean.execute()
  • processSelectedRecord

    protected void processSelectedRecord(MboRemote currentMainRecord,
                                         MboRemote targetMbo)
                                  throws MXException,
                                         java.rmi.RemoteException
    Process the pair of current main record and one of the selected catalog records. Take a different action depending on the the value parameter (CHILDVERSION, etc.) of the mxevent used to bring this dialog (SELPROCSW)
    Parameters:
    currentMainRecord - the current main software catalog record. Cannot be null
    targetMbo - a software catalog record selected from the dialog backed by this bean
    Throws:
    MXException
    java.rmi.RemoteException
  • saveAndReloadChildTable

    protected void saveAndReloadChildTable(java.lang.String tableControlId)
                                    throws MXException,
                                           java.rmi.RemoteException
    Helper method that if passed a presentation control ID of a table saves to the database the changes made on the selection after the user has clicked OK. After the save the table passed in the parameter is reloaded.
    Parameters:
    tableControlId - the presentation id of the element of type table that represents the table that needs to be reloaded
    Throws:
    MXException
    java.rmi.RemoteException
  • getReloadTableControlId

    protected java.lang.String getReloadTableControlId()
    Obtain a name of the table that needs to be force reloaded, if needed at all
    Returns:
    Control ID of a table on the current tab from the software catalog presentation