2using System.Threading.Tasks;
10 [CollectionName(
"Privileges")]
12 [Index(
"LocalId",
"ParentFullId")]
13 [Index(
"ParentFullId",
"LocalId")]
18 private string objectId =
null;
19 private string parentFullId =
string.Empty;
20 private string localId =
string.Empty;
21 private string fullId =
string.Empty;
22 private string description =
string.Empty;
39 set => this.objectId = value;
47 get => this.parentFullId;
48 set => this.parentFullId = value;
57 set => this.localId = value;
66 set => this.fullId = value;
72 [DefaultValueStringEmpty]
75 get => this.description;
76 set => this.description = value;
87 if (this.parent is
null && !
string.IsNullOrEmpty(this.parentFullId))
93 internal set => this.parent = value;
Corresponds to a privilege in the system.
Privilege Parent
Parent privilege.
Privilege()
Corresponds to a privilege in the system.
string ObjectId
Object ID of privilege
string ParentFullId
Full Privilege ID of parent privilege. If the empty string, privilege is a root privilege.
string Description
Description of privilege.
string LocalId
Local Privilege ID, unique among the child privileges of the same parent.
string FullId
Full Privilege ID. Corresponds to the concatenation of ancestor IDs with the local ID,...
Maintains the collection of all privileges in the system.
static async Task< Privilege > GetPrivilege(string PrivilegeId)
Gets the Privilege object corresponding to a full Privilege ID.
TypeNameSerialization
How the type name should be serialized.