psdi.workflow

Class WorkflowTargetDeletionMonitor

  • java.lang.Object
    • psdi.workflow.WorkflowTargetDeletionMonitor


  • public class WorkflowTargetDeletionMonitor
    extends java.lang.Object
    This object is responsible for preventing the deletion of any Main Mbo Object which is controlled by an active workflow process.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void delete(Mbo mbo)
      This method should be only called with the check above returns without an exception.
      static void doCheck(Mbo mbo)
      Checks to see that the Mbo isn't the target of a workflow instance.
      static void undelete(Mbo mbo) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkflowTargetDeletionMonitor

        public WorkflowTargetDeletionMonitor()
    • Method Detail

      • doCheck

        public static void doCheck(Mbo mbo)
                            throws java.rmi.RemoteException,
                                   MXException
        Checks to see that the Mbo isn't the target of a workflow instance.
        Parameters:
        mbo - The Mbo being marked for deletion.
        Throws:
        MXApplicationException - Thrown with "workflow","NoDelActiveWF" if there are active workflow instances on the Mbo to be deleted.
        java.rmi.RemoteException
        MXException
      • delete

        public static void delete(Mbo mbo)
                           throws java.rmi.RemoteException,
                                  MXException
        This method should be only called with the check above returns without an exception.
        Throws:
        java.rmi.RemoteException
        MXException
      • undelete

        public static void undelete(Mbo mbo)
                             throws java.rmi.RemoteException,
                                    MXException
        Throws:
        java.rmi.RemoteException
        MXException