Discuss this help topic in SecureBlackbox Forum

TElWebDAVACLOptions.OnReadSupportedPrivileges

TElWebDAVACLOptions     See also     


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


This event is fired when supported privileges are needed for some resource.

Declaration

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

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

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

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

[PHP]
    TSBWebDAVReadSupportedPrivilegesEvent|callable|NULL get_OnReadSupportedPrivileges()
    void set_OnReadSupportedPrivileges(TSBWebDAVReadSupportedPrivilegesEvent|callable|NULL $Value)
    callable TSBWebDAVReadSupportedPrivilegesEvent(TObject $Sender, string $URL, SBWebDAVServer_TElWebDAVPrincipal $Principal, integer &$Privileges)

[Java]
    TSBWebDAVReadSupportedPrivilegesEvent getOnReadSupportedPrivileges();
    void setOnReadSupportedPrivileges(TSBWebDAVReadSupportedPrivilegesEvent Value);
    TSBWebDAVReadSupportedPrivilegesEvent.Callback OnReadSupportedPrivileges = new TSBWebDAVReadSupportedPrivilegesEvent.Callback() {
        public void TSBWebDAVReadSupportedPrivilegesEventCallback(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 supported privileges are needed for some resource (DAV:supported-privilege-set property value). The handler should provide a set of privileges via the corresponding parameter.

See also:     OnReadCurrentUserPrivileges    

Discuss this help topic in SecureBlackbox Forum