EDataServer.WebDAVAccessControlEntry¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
flags |
r/w |
||
inherited_href |
r/w |
||
principal_href |
r/w |
||
principal_kind |
r/w |
||
privileges |
[ |
r/w |
Methods¶
class |
|
class |
|
|
|
|
|
Details¶
- class EDataServer.WebDAVAccessControlEntry¶
- classmethod free(ptr)¶
- Parameters:
ptr (
objectorNone) – anEDataServer.WebDAVAccessControlEntry
Frees an
EDataServer.WebDAVAccessControlEntrypreviously created withEDataServer.WebDAVAccessControlEntry.new() orEDataServer.WebDAVAccessControlEntry.copy(). The function does nothing, if ptr isNone.New in version 3.26.
- classmethod new(principal_kind, principal_href, flags, inherited_href)¶
- Parameters:
principal_kind (
EDataServer.WebDAVACEPrincipalKind) – anEDataServer.WebDAVACEPrincipalKindprincipal_href (
strorNone) – principal href; should be set only if principal_kind isEDataServer.WebDAVACEPrincipalKind.HREFflags (
int) – bit-or ofEDataServer.WebDAVACEFlagvaluesinherited_href (
strorNone) – href of the resource from which inherits; should be set only if flags containEDataServer.WebDAVACEFlag.INHERITED
- Returns:
A newly created
EDataServer.WebDAVAccessControlEntry, prefilled with given values. Free it withEDataServer.WebDAVAccessControlEntry.free(), when no longer needed.- Return type:
Describes one Access Control Entry (ACE).
The flags should always contain either
EDataServer.WebDAVACEFlag.GRANTorEDataServer.WebDAVACEFlag.DENYvalue.Use
EDataServer.WebDAVAccessControlEntry.append_privilege() to add respective privileges to the entry.New in version 3.26.
- append_privilege(privilege)¶
- Parameters:
privilege (
EDataServer.WebDAVPrivilege) – anEDataServer.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.WebDAVAccessControlEntryprefilled with the same values as self, orNone, when self isNone. Free it withEDataServer.WebDAVAccessControlEntry.free(), when no longer needed.- Return type:
New in version 3.26.
- get_privileges()¶
- Returns:
A
GLib.SListofEDataServer.WebDAVPrivilegewith the list of privileges for the self. The reurnedGLib.SList, together with its data is owned by the self.- Return type:
New in version 3.26.