Discuss this help topic in SecureBlackbox Forum

TElWebDAVACLOptions.OnReadCurrentUserPrivileges

TElWebDAVACLOptions     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when current user privileges are needed.

Declaration

[C#]
    event TSBWebDAVReadPrivilegesEvent OnReadCurrentUserPrivileges;
    delegate void TSBWebDAVReadPrivilegesEvent(Object Sender, string URL, TElWebDAVPrincipal Principal, ref int Privileges);

[VB.NET]
    Event OnReadCurrentUserPrivileges As TSBWebDAVReadPrivilegesEvent
    Delegate Sub TSBWebDAVReadPrivilegesEvent(ByVal Sender As Object, ByVal URL As String, ByVal Principal As TElWebDAVPrincipal, ByRef Privileges As Integer)

[Pascal]
    property OnReadCurrentUserPrivileges : TSBWebDAVReadPrivilegesEvent;
    TSBWebDAVReadPrivilegesEvent = procedure(Sender : TObject; const URL : string; Principal : TElWebDAVPrincipal; var Privileges : integer) of object;

[C++]
    void get_OnReadCurrentUserPrivileges(TSBWebDAVReadPrivilegesEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnReadCurrentUserPrivileges(TSBWebDAVReadPrivilegesEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBWebDAVReadPrivilegesEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcURL, int32_t szURL, SBWebDAVServer_TElWebDAVPrincipalHandle Principal, int32_t &Privileges);

[PHP]
    TSBWebDAVReadPrivilegesEvent|callable|NULL get_OnReadCurrentUserPrivileges()
    void set_OnReadCurrentUserPrivileges(TSBWebDAVReadPrivilegesEvent|callable|NULL $Value)
    callable TSBWebDAVReadPrivilegesEvent(TObject $Sender, string $URL, SBWebDAVServer_TElWebDAVPrincipal $Principal, integer &$Privileges)

[Java]
    TSBWebDAVReadPrivilegesEvent getOnReadCurrentUserPrivileges();
    void setOnReadCurrentUserPrivileges(TSBWebDAVReadPrivilegesEvent Value);
    TSBWebDAVReadPrivilegesEvent.Callback OnReadCurrentUserPrivileges = new TSBWebDAVReadPrivilegesEvent.Callback() {
        public void TSBWebDAVReadPrivilegesEventCallback(TObject Sender, String URL, TElWebDAVPrincipal Principal, TSBInteger Privileges) {
            //...
        }
    }

Parameters

  • Principal - the principal (user) for which the privileges are needed.
  • Privileges - a set of privileges should be provided via this parameter.
  • URL - URL of the resource for which the privileges are required.
  • pcURL - URL of the resource for which the privileges are required.
  • szURL - the length of pcURL in bytes.

Possible privileges

Description

    This event is fired when privileges are needed for the current user to access some resource (DAV:current-user-privilege-set property value). The handler should provide a set of privileges via the corresponding parameter.

See also:     OnReadSupportedPrivileges    

Discuss this help topic in SecureBlackbox Forum