psdi.app.kpi

Class KPITemplateMain

  • java.lang.Object
    • Field Detail

      • MBO_KPITEMPLATEMAIN

        public static final java.lang.String MBO_KPITEMPLATEMAIN
        See Also:
        Constant Field Values
      • CAUTIONMAX

        public static final java.lang.String CAUTIONMAX
        The value where the indicators would change to a user-set color to indicate that the result of the KPI is in an alert stage.
        MAX TYPE: DECIMAL
        SAME AS: KPIMAIN.CAUTIONMAX
        See Also:
        Constant Field Values
      • CAUTIONMIN

        public static final java.lang.String CAUTIONMIN
        The value where the indicators would change to a user-set color to indicate that the result of the KPI is in a caution stage. Note: If the Caution At value is greater than the Alert At value, the direction of the KPI will change to indicate that a higher number is more ideal than a lower number.
        MAX TYPE: DECIMAL
        SAME AS: KPIMAIN.CAUTIONMIN
        See Also:
        Constant Field Values
      • ISACTIVE

        public static final java.lang.String ISACTIVE
        Maps to the KPIMAIN.REALTIME
        MAX TYPE: YORN
        SAME AS: KPIMAIN.REALTIME
        See Also:
        Constant Field Values
      • ISPUBLIC

        public static final java.lang.String ISPUBLIC
        Check this box to make the report available to all users who can run reports in the applicaton.
        MAX TYPE: YORN
        SAME AS: KPIMAIN.ISPUBLIC
        See Also:
        Constant Field Values
      • KPITEMPLATEMAINID

        public static final java.lang.String KPITEMPLATEMAINID
        Unique Id
        MAX TYPE: BIGINT
        See Also:
        Constant Field Values
      • KPITEMPLATEMAINNUM

        public static final java.lang.String KPITEMPLATEMAINNUM
        Template Main Id
        MAX TYPE: UPPER
        See Also:
        Constant Field Values
      • KPITEMPLATENUM

        public static final java.lang.String KPITEMPLATENUM
        Template Name
        MAX TYPE: UPPER
        SAME AS: KPITEMPLATE.KPITEMPLATENUM
        See Also:
        Constant Field Values
      • TARGET

        public static final java.lang.String TARGET
        The target, or desired, value for the KPI.
        MAX TYPE: DECIMAL
        SAME AS: KPIMAIN.TARGET
        See Also:
        Constant Field Values
      • RELATIONSHIP_VALUES

        public static final java.lang.String RELATIONSHIP_VALUES
        "KPITEMPLATEVARVALUES"
        See Also:
        Constant Field Values
    • Constructor Detail

      • KPITemplateMain

        public KPITemplateMain(MboSet ms)
                        throws MXException,
                               java.rmi.RemoteException
        Constructs the KPITemplateMain object.

        Parameters:
        ms - MboSet
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialization routine. Set the fields to read/write mode conditionally
        Overrides:
        init in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a new KPITemplate object. This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Parameters:
        none -
        Throws:
        MXException - , RemoteException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        override delete to delete this and records associated with KPITemplate
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException - , RemoteException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • validateTemplate

        public java.lang.String validateTemplate()
                                          throws java.rmi.RemoteException,
                                                 MXException
        Validates the current template, and returns the Query SQL, if valid.
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • copy

        public MboRemote copy(MboSetRemote mboset,
                              long mboAddFlags)
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: Mbo
        Adds a new mbo to the set passed in and copies the information for each of the fields into the new mbo from this. The new mbo will be added to the next of the current index.
        Specified by:
        copy in interface MboRemote
        Overrides:
        copy in class Mbo
        Parameters:
        mboset - The set into which the new mbo will be added.
        mboAddFlags - Flags to use when adding the new Mbo. Values on the attribute are always set with NOACCESSCHECK|NOVALIDATION_AND_NOACTION.
        Returns:
        The new mbo, with values copied from this mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • findValueForVariable

        public java.lang.String findValueForVariable(MboSetRemote mboset,
                                                     java.lang.String varname)
                                              throws java.rmi.RemoteException,
                                                     MXException
        Throws:
        java.rmi.RemoteException
        MXException