User rights checking event typeTFRChSessionIDDelphi declaration
TFRChItemUserRights=procedure(Sender: TISAPIActionItem; var Accept: Boolean) of object;
C++ declaration
typedef void __fastcall(__closure *TFRChItemUserRights)(TISAPIActionItem *Sender, bool & Accept);
Description
Used by TISAPIActionItem before calling the OnAction event.Setting Accept to FALSE causes the rejecting of request.
Session ID check eventTFRChUserRightsDelphi declaration
TFRChSessionID=procedure(Sender: TISAPIDispatcher; ASessID: AnsiString; var InUse: Boolean) of object;
C++ declaration
typedef void __fastcall(__closure *TFRChSessionID)(TISAPIDispatcher *Sender, System::AnsiString ASessID, bool & InUse);
Description
Sender - current dispatcherASessID - session ID
InUse - set this flag to TRUE to show that a session currently exists
Checking user rights against a tableTFRSessionEventDelphi declaration
TFRChUserRights=procedure(Sender: TComponent; Action, TableName: AnsiString; var Accept: Boolean) of object;
C++ declaration
typedef void __fastcall(__closure *TFRChUserRights)(Classes::TComponent *Sender, System::AnsiString Action, System::AnsiString TableName, bool & Accept);
Description
TableName - table nameAction - action name
Accept - set to TRUE, when user can do Action against to table named TableName
Session-manager called session notify eventTOnNewRequestEventDelphi declaration
TFRSessionEvent=procedure(Sender: TISAPIDispatcher) of object;
C++ declaration
typedef void __fastcall(__closure *TFRSessionEvent)(TISAPIDispatcher *Sender);
Description
Sender is the current dispatcher.
Request handling event typeTOnTerminateExtensionEventDelphi declaration
TOnNewRequestEvent=procedure(Request: TFRISAPIRequest; Response: TFRISAPIResponse; var Handled: Boolean) of object;
C++ declaration
typedef void __fastcall(__closure *TOnNewRequestEvent)(TFRISAPIRequest *Request, TFRISAPIResponse *Response, bool & Handled);
Description
Request parameters can be obtained from the Request object.Response parameters and the resulting HTML text or the resulting stream are assignable to Response object.
You need to set Handled to TRUE, when the request is handled.
OnTerminateExtension event typeDelphi declaration
TOnTerminateExtensionEvent=procedure(MustTerminate: Boolean; var CanTerminate: Boolean) of object;
C++ declaration
typedef void __fastcall(__closure *TOnTerminateExtensionEvent)(bool MustTerminate, bool & CanTerminate);
Description
Event will be called when the server wants to unload DLL (inside TerminateExtension ). If MustTerminate is FALSE, then setting the flag CanTerminate to TRUE, informs the server that unloading is not suggested. The result depends on the server.Used by TISAPIApp, design time visible in TFRISAPIDispatcher.