psdi.webclient.beans.kpi

Class KPIAppBean

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


    public class KPIAppBean
    extends AppBean
    Custom Application bean for KPI application. The methods in this bean represents the custom handling required for KPI Manager application. *
    • Constructor Detail

      • KPIAppBean

        public KPIAppBean()
    • Method Detail

      • setKPIInfo

        public java.lang.String setKPIInfo()
                                    throws java.rmi.RemoteException,
                                           MXException
        Sets current info of the KPI into the session.
        Returns:
        String graph title
        Throws:
        java.rmi.RemoteException
        MXException
        javax.servlet.ServletException
      • setTrendGraphInfo

        public java.lang.String setTrendGraphInfo()
                                           throws java.rmi.RemoteException,
                                                  MXException
        Sets information to draw the trend graph into a one object and sets in session for the servlet to grab
        Returns:
        String graph title
        Throws:
        java.rmi.RemoteException
        MXException
      • updatekpis

        public void updatekpis()
                        throws MXException,
                               java.rmi.RemoteException
        Called when UPDATE event is fired. Updates current KPI
        Parameters:
        sessionContext -
        event -
        Throws:
        java.rmi.RemoteException
        java.io.IOException
        javax.servlet.ServletException
        MXException
      • getKPIInfo

        public java.util.Vector getKPIInfo()
                                    throws java.rmi.RemoteException,
                                           MXException
        Gets current info of the KPI into the session.
        Throws:
        java.rmi.RemoteException
        MXException
        javax.servlet.ServletException
      • formatNumber

        public java.lang.String formatNumber(double dNumber)
        Format the number to make it upto 2 decimal places in fraction and remove trailing zeros
        Parameters:
        dNumber - double to perform function on
        Returns:
        sNumber string representation of dNumber
      • getDouble

        public double getDouble(java.lang.Object dNumber)
        Returns double from an number object
      • isNewKPI

        public boolean isNewKPI()
        Returns true of the current KPi being created is new and not saved
        Returns:
        boolean
        Throws:
        java.rmi.RemoteException
        MXException
        javax.servlet.ServletException
      • refreshChart

        public boolean refreshChart()
                             throws MXException,
                                    java.rmi.RemoteException
        Event handler method for "refreshchart" event, when clicked from Refresh Chart Button in the KPI Application in Trend Tab
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • validateTrendInfo

        public void validateTrendInfo()
                               throws MXException
        Validates the settings for Trend Chart
        Throws:
        MXException