psdi.app.report

Class Report

    • Constructor Detail

      • Report

        public Report(MboSet ms)
               throws MXException,
                      java.rmi.RemoteException
        Construct the Report object
        Parameters:
        ms - Mbo set
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        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. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from class: Mbo
        Pre-save validation method. Programmer can override with specific rules.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canLimitRecords

        public boolean canLimitRecords()
                                throws MXException,
                                       java.rmi.RemoteException
        Does this report type support the Limit Records functionality?
        Specified by:
        canLimitRecords in interface ReportRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • isLimitedType

        public boolean isLimitedType(java.lang.String runType)
                              throws MXException,
                                     java.rmi.RemoteException
        Does this report type disable fields due to unsupported functionality?
        Specified by:
        isLimitedType in interface ReportRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • setFieldsReadOnly

        public void setFieldsReadOnly(boolean state)
                               throws MXException,
                                      java.rmi.RemoteException
        Disable fields that are not used for this report type.
        Specified by:
        setFieldsReadOnly in interface ReportRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • generateAndReplaceAllXML

        public java.lang.String generateAndReplaceAllXML()
                                                  throws MXException,
                                                         java.rmi.RemoteException
        Builds the replibrary presentation XML from scratch, ignoring the existing content. This is required when saving QBRs in multi-lang environments, since inserting an individual dialog may result in multiple languages in a single presentation. This process is different from the generateallxml() method used in Report Admin, which locates each dialog within the presentation and updates it. That method supports building dialogs for a subset of reports, but is significantly slower when building all dialogs.
        Specified by:
        generateAndReplaceAllXML in interface ReportRemote
        Returns:
        String the replibrary presentation XML.
        Throws:
        MXException, - RemoteException
        MXException
        java.rmi.RemoteException
      • assembleFolderDialog

        public java.lang.String assembleFolderDialog(java.lang.String appName)
                                              throws MXException,
                                                     java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • assembleDOVRequestPage

        public java.lang.String assembleDOVRequestPage()
                                                throws MXException,
                                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • insertDialog

        public java.lang.String insertDialog(java.lang.String presentationXML,
                                             java.lang.String dialogXML,
                                             java.lang.String dialogID)
                                      throws MXException,
                                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        Mark the object to be deleted depending on the access modifier. This will usually be overridden in the subclass of Mbo as there may be application specific rules as to if and when an object can be deleted. Object is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        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
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • duplicate

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        Duplicates a Report record. Also duplicates the ReportLookup and ReportLabel for this Report.
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote The newly created Report.
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashSet. If this field does not need to be copied return true. The following are the Report fields will be skipped without being copied to the newly duplicated Report:
        1. reportnum
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        true If the field does not need to be copied return true, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Report.loadSkipFieldCopyHashSet()
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Description copied from class: Mbo
        Save the object and other linked objects. Subclasses can code their save() logic to include any appropriate updates to other linked objects and call super.save().
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException