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 (
object
orNone
) – anEDataServer.WebDAVAccessControlEntry
Frees an
EDataServer.WebDAVAccessControlEntry
previously 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.WebDAVACEPrincipalKind
principal_href (
str
orNone
) – principal href; should be set only if principal_kind isEDataServer.WebDAVACEPrincipalKind.HREF
flags (
int
) – bit-or ofEDataServer.WebDAVACEFlag
valuesinherited_href (
str
orNone
) – 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.GRANT
orEDataServer.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
) – 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.WebDAVAccessControlEntry
prefilled 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.SList
ofEDataServer.WebDAVPrivilege
with 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.