psdi.webclient.beans.asset

Class SourceOrTargetAssetReportDowntimeBean

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


    public class SourceOrTargetAssetReportDowntimeBean
    extends DataBean
    This bean is responsible for executing the relationship DOWNTIMEREPORT against either a Source Asset or Target Asset within the relationships table within the Relationship tab of Asset application.
    • Field Detail

      • isOwnerSelectActionMenu

        protected boolean isOwnerSelectActionMenu
        Keep track if the user opened this dialog from the Select Action menu, or from the Relationships table.
    • Constructor Detail

      • SourceOrTargetAssetReportDowntimeBean

        public SourceOrTargetAssetReportDowntimeBean()
    • Method Detail

      • getMboSetRemote

        protected MboSetRemote getMboSetRemote()
                                        throws MXException,
                                               java.rmi.RemoteException
        Get the MboSet to use against either the applications's Asset or the one selected from the Relationships table -Source or Target Asset
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        java.rmi.RemoteException - if error occurs
        MXException - if error occurs
      • saveAssetAppBean

        protected void saveAssetAppBean()
                                 throws java.rmi.RemoteException,
                                        MXException
        We need to save the Asset app bean programmatically because if we use the savemode="ONLOAD" all references to UI controls get reset, which means we can not determine which asset the user wants to use in this dialog.
        Throws:
        java.rmi.RemoteException - if error occurs
        MXException - if error occurs
      • execute

        public int execute()
                    throws MXException,
                           java.rmi.RemoteException
        Save the downtime report manually because this dialog had the savemode="ONLOADUNLOAD" attribute which resets all references. This is a workaround for this issue.
        Overrides:
        execute in class DataBean
        Throws:
        java.rmi.RemoteException - if error occurs
        MXException - if error occurs