EDataServer.WebDAVAccessControlEntry

Fields

Name

Type

Access

Description

flags

int

r/w

inherited_href

str

r/w

principal_href

str

r/w

principal_kind

EDataServer.WebDAVACEPrincipalKind

r/w

privileges

[object]

r/w

Methods

class

free (ptr)

class

new (principal_kind, principal_href, flags, inherited_href)

append_privilege (privilege)

copy ()

get_privileges ()

Details

class EDataServer.WebDAVAccessControlEntry
classmethod free(ptr)
Parameters:

ptr (object or None) – an EDataServer.WebDAVAccessControlEntry

Frees an EDataServer.WebDAVAccessControlEntry previously created with EDataServer.WebDAVAccessControlEntry.new() or EDataServer.WebDAVAccessControlEntry.copy(). The function does nothing, if ptr is None.

New in version 3.26.

classmethod new(principal_kind, principal_href, flags, inherited_href)
Parameters:
Returns:

A newly created EDataServer.WebDAVAccessControlEntry, prefilled with given values. Free it with EDataServer.WebDAVAccessControlEntry.free(), when no longer needed.

Return type:

EDataServer.WebDAVAccessControlEntry

Describes one Access Control Entry (ACE).

The flags should always contain either EDataServer.WebDAVACEFlag.GRANT or EDataServer.WebDAVACEFlag.DENY value.

Use EDataServer.WebDAVAccessControlEntry.append_privilege() to add respective privileges to the entry.

New in version 3.26.

append_privilege(privilege)
Parameters:

privilege (EDataServer.WebDAVPrivilege) – an EDataServer.WebDAVPrivilege

Appends a new privilege to the list of privileges for the self. The function assumes ownership of the privilege, which is freed together with the self.

New in version 3.26.

copy()
Returns:

A new EDataServer.WebDAVAccessControlEntry prefilled with the same values as self, or None, when self is None. Free it with EDataServer.WebDAVAccessControlEntry.free(), when no longer needed.

Return type:

EDataServer.WebDAVAccessControlEntry or None

New in version 3.26.

get_privileges()
Returns:

A GLib.SList of EDataServer.WebDAVPrivilege with the list of privileges for the self. The reurned GLib.SList, together with its data is owned by the self.

Return type:

[EDataServer.WebDAVPrivilege]

New in version 3.26.