RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebAdapt.TEndUserRightsEvent Type

TEndUserRightsEvent is the type for event handlers that check whether a user has rights to perform a specific operation.

Pascal
TEndUserRightsEvent = procedure (Sender: TObject; Rights: TStrings; var HasRights, Handled: Boolean) of object;
C++
(Sender: TObject; Rights: TStrings; var HasRights, Handled: Boolean) ( TEndUserRightsEvent)();

TEndUserRightsEvent is the type for event handlers that indicate whether the current end user has the rights that match a specified set of rights strings. Note that the event handler can obtain a reference to the current end user information from the global WebContext

Sender is the end user adapter that needs to check the current end user's rights. 

Rights is a string list, where each string in the list indicates the access rights being queried. Typically, these values come from the ViewRights property of a Web page information object that describes the page that the user wants to access or of an adapter that the user wants to call. 

HasRights returns true if the event handler verifies that the current end user has the rights indicated by the Rights parameter, false if the user does not have sufficient rights. 

Handled returns true if the event handler ascertained whether the user had the desired rights, false if the event handler did not determine the current user's rights. If Handled returns false, the end user adapter attempts its own mechanism for verifying rights. Typically, if the application contains a Web user list (TWebUserList), the end user adapter uses that Web user list to check rights; otherwise, it simply grants the user rights. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!