psdi.app.eventresponse

Class EventResponseService

    • Constructor Detail

      • EventResponseService

        public EventResponseService(MXServer mxServer)
                             throws java.rmi.RemoteException
        Parameters:
        mxServer -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
        Initializes the RespondingEventListener.
        Specified by:
        init in interface Service
        Overrides:
        init in class AppService
        See Also:
        Service
      • registerResponder

        public void registerResponder(MboRemote sourceMbo,
                                      MboRemote refMbo,
                                      MboRemote targetMbo,
                                      java.lang.String eventName,
                                      java.lang.String validateID,
                                      java.lang.String presaveID,
                                      java.lang.String actionID,
                                      java.lang.String postID)
                               throws MXException,
                                      java.rmi.RemoteException
        Creates a EventResponse Mbo with the given information and implements it immediately. This registration will replace any previous ER with the same source, reference, and event name. Registering with all null or empty string actions will delete any existing ER. This method may modify both the source and reference Mbo. The EventResponse change is not permanent or published outside the parameter Mbos until those Mbos, and the MXTransaction which they are a part of, are saved.
        Specified by:
        registerResponder in interface EventResponseServiceRemote
        Parameters:
        sourceMbo - The Mbo that will give the event.
        refMbo - The Mbo registering this ER.
        eventName - The name of the event to respond to.
        validateID - The action to do on the eventValidate Message.
        presaveID - The action to do on the preSaveEventAction Message.
        actionID - The action to do on the eventAction Message.
        postID - The action to do on the postCommitEventAction Message.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        EventResponseService.registerResponder(psdi.mbo.MboRemote, psdi.mbo.MboRemote, psdi.mbo.MboRemote, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)