psdi.app.recontask

Class ReconTask

  • java.lang.Object
    • Constructor Detail

      • ReconTask

        public ReconTask(MboSet ms)
                  throws java.rmi.RemoteException
        Default Constructor.
        Parameters:
        ms -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Default initialization routine. If RECONTASKCOMP exist, set resultoption field to required and editable
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new ReconTask, setting any field defaults.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • 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
      • getLinkRules

        public java.util.ArrayList getLinkRules()
                                         throws java.rmi.RemoteException,
                                                MXException
        Get the ReconLinkRules associated with the specified ReconTask, ordered by CASCADEPOSITION.
        Specified by:
        getLinkRules in interface ReconTaskRemote
        Returns:
        the ordered list of ReconLinkRules
        Throws:
        java.rmi.RemoteException
        MXException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        NOTE: If TAMIT 7.2 is migrated to MBS, this method must be migrated instead of super.canDelete() This method overrides super.canDelete(). For TAMIT 7.2, a Cron Task associated with a Reconciliation Task are deleted via the Reconciliation Task app. No longer is the user required to manually delete the Cron Task manually before deleting the Reconciliation Task.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long modifier)
                    throws MXException,
                           java.rmi.RemoteException
        delete the Task and associated entries from RECONTASKLINK table
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        modifier - 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:
        java.rmi.RemoteException
        MXException
        See Also:
        Mbo.delete(long)
      • appValidate

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

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        Duplicate the current Reconciliation Task.
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote The newly created Reconciliation Task Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • activateDeactivateReconTask

        public void activateDeactivateReconTask()
                                         throws java.rmi.RemoteException,
                                                MXException
        First this Recon Task is saved, then depending on the current value of Active, if this Recon Task is already active, then this method deactivates this Recon Task. If this Recon Task is not already active, then this method activates this Recon Task & associated Cron Task.
        Specified by:
        activateDeactivateReconTask in interface ReconTaskRemote
        Throws:
        java.rmi.RemoteException
        MXException
      • createCronTaskInstance

        protected void createCronTaskInstance(boolean createActive)
                                       throws java.rmi.RemoteException,
                                              MXException
        Creates an instance of a Cron Task that is associated with this Recon Task.
        Throws:
        java.rmi.RemoteException
        MXException
      • deleteCronTaskInstance

        public void deleteCronTaskInstance()
                                    throws java.rmi.RemoteException,
                                           MXException
        Deletes an associated Cron Task, if there is one.
        Throws:
        java.rmi.RemoteException
        MXException
      • getCronTaskInstanceName

        protected java.lang.String getCronTaskInstanceName()
                                                    throws java.rmi.RemoteException,
                                                           MXException
        Constructs the instance name for the Cron Task. instance name syntax: "Recon" + reconciliationTask.recontaskid
        Returns:
        Sting A Cron Task instance name generated by using the recontaskid of the Reconciliation Task
        Throws:
        java.rmi.RemoteException
        MXException
      • isCronTaskCreated

        public boolean isCronTaskCreated()
                                  throws java.rmi.RemoteException,
                                         MXException
        Tests if a Cron Task exists for this Reconciliation Task
        Returns:
        boolean true if the Cron Task exists; otherwise false
        Throws:
        java.rmi.RemoteException
        MXException
      • isReconTaskActive

        public boolean isReconTaskActive()
                                  throws MXException,
                                         java.rmi.RemoteException
        Tests is this Reconciliation Task is active (has been activated)
        Specified by:
        isReconTaskActive in interface ReconTaskRemote
        Returns:
        boolean true if this Reconciliation Task is active; otherwise false
        Throws:
        java.rmi.RemoteException
        MXException
      • isEmpty

        public static boolean isEmpty(MboSetRemote ms)
                               throws java.rmi.RemoteException,
                                      MXException
        Utility method to test if the given MboSetRemote is null or empty
        Parameters:
        ms - MboSetRemote to test
        Returns:
        boolean true if the given set is null or is empty; otherwise false
        Throws:
        java.rmi.RemoteException
        MXException