All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VPMInterfaces Interface ENOVIEventPlugin

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---ENOVIEventPlugin
 

Usage: you can freely reimplement this interface.


interface ENOVIEventPlugin

Interface allowing to early subscribe to the event CreateLoginSession step After, before the creation of the Login Session.

Role : This unique entry point enables to postpone any additional subscription to any other event just after the creation of the Login Session, i.e. when a safe transactional context is available.
All additional subscriptions have hence to be coded in the method onAfterCreateLoginSession of the subscriber class implementing the callback interface ENOVISessionEvent.AfterCreateLoginSession of the subscriber class implementing the callback interface .
This interface replaces the deprecated interface ENOVIPlugin since V5R13. It is strongly recommended that you migrate your existing code before the next release to comply with the new rules.
Usage : The implementation of ENOVIEventPlugin has to be an extension of a dummy late type :

CATImplementClass( MyEventPluginCode, DataExtension, CATBaseUnknown, MyDummyLateType );
#include "TIE_ENOVIEventPlugin.h"
TIE_ENOVIEventPlugin( MyEventPluginCode );

A new line is to be added to the dictionary :
MyDummyLateType ENOVIEventPlugin libWhere_MyEventPluginCode_Is

The only code


Method Index


o Init(ENOVIEventManager_var&)
Unique method of the plug-in interface called during the initialization of the Login Session (i.

Methods


o Init
public virtual HRESULT Init( const ENOVIEventManager_var& iEventManager)= 0
Unique method of the plug-in interface called during the initialization of the Login Session (i.e. before any transactional context has been setup).
Role : Method in which the subscription to the event CreateLoginSession, step After, must be coded thanks to the interface ENOVIEventManager passed as argument.
It is forbidden to perform other subscriptions or to raise events in any implementation of this method.
See the CAA use case CAAVpiAutomaticSubscription of the framework CAAVPMInterfaces.edu for an example of such an implementation.

This object is included in the file: ENOVIEventPlugin.h
If needed, your Imakefile.mk should include the module: GUIDVPMInterfaces

Copyright © 2003, Dassault Systèmes. All rights reserved.