Location: Symbol Reference > Classes > TJwServerAccessControl Class > TJwServerAccessControl Methods > TJwServerAccessControl.JwIsAccessAllowed Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwServerAccessControl.JwIsAccessAllowed Method
Pascal
procedure JwIsAccessAllowed(const Trustee: TJwSecurityID; const AProperty: TJwString; const AccessRights: TJwAccessMask; var AccessAllowed: Boolean); virtual;
Parameters 
Description 
const Trustee: TJwSecurityID 
Receives a trustee as a TJwSecurityID instance to be used for the access check. 
const AProperty: TJwString 
Not used. Must be empty. 
const AccessRights: TJwAccessMask 
An bit mask of access rights to be used to do the access right. This is a desired access mask. 
var AccessAllowed: Boolean 
A boolean value receiving the access check result. A return value of TRUE means that the trustee was granted access; otherwise the access was denied.
In case of an error this value is set to FALSE. 

JwIsAccessAllowed determines whether the given trustee has access to the resource considering the security descriptor.

This function can be hooked by using property OnIsAccessAllowed

The function is called by the interface method with the same name. Since the interface method returns a HRESULT value this version must raise an EOleSysError and supply the return value to EOleSysError constructor (ErrorCode). Use

  raise EOleSysError.Create('text message', MAKE_HRESULT(1, FacilityCode, Win32_or_User_Code));

This method implements the JWSCL version of the COM method with the same name.

Exceptions 
Description 
This method can raise a JWSCL exception derived from EJwsclSecurityException
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!