Platoo ISAPI ComponentsTFRChItemUserRights

Contents

User rights checking event type

Delphi 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.

TFRChSessionID

Contents

Session ID check event

Delphi 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 dispatcher

ASessID - session ID

InUse - set this flag to TRUE to show that a session currently exists

TFRChUserRights

Contents

Checking user rights against a table

Delphi 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 name

Action - action name

Accept - set to TRUE, when user can do Action against to table named TableName

TFRSessionEvent

Contents

Session-manager called session notify event

Delphi declaration
TFRSessionEvent=procedure(Sender: TISAPIDispatcher) of object;
C++ declaration
typedef void __fastcall(__closure *TFRSessionEvent)(TISAPIDispatcher *Sender);

Description
Sender is the current dispatcher.

TOnNewRequestEvent

Contents

Request handling event type

Delphi 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.

TOnTerminateExtensionEvent

Contents

OnTerminateExtension event type

Delphi 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.