Table of Contents

Class PermissionQuery

Namespace
Dynamicweb.Security.Permissions
Assembly
Dynamicweb.Core.dll

A permission query is a description of what parameters you want use for quering the permission storage. Name="Page" + Key="123" will return all permissions related to a Page with Id "123"

public sealed class PermissionQuery
Inheritance
PermissionQuery
Inherited Members

Properties

IncludeSubKeys

Include sub keys in search result or not. For file and folders Key="/Files/Folder", Name="File", IncludeSubKeys=true gives permissions for the folder and all its subfolders: /Files/Folder /Files/Folder/Subfolder1 /Files/Folder/Subfolder2 /Files/Folder/Subfolder2/Subfolder3

public bool IncludeSubKeys { get; init; }

Property Value

bool

includeSubKeys

Remarks

Is useful in case of hierarchical keys.

Key

Identifier that is unique in combination with Name.

public string? Key { get; set; }

Property Value

string

key

Remarks

Leaving this property blank means it will not be a limiting factor for the query, meaning "Any" value is accepted.

Name

Name of type that is affected by permission.

public string? Name { get; set; }

Property Value

string

name

Remarks

Leaving this property blank means it will not be a limiting factor for the query, meaning "Any" value is accepted.

OwnerId

Owner id

public string? OwnerId { get; set; }

Property Value

string

Owner id

Remarks

Leaving this property blank means it will not be a limiting factor for the query, meaning "Any" value is accepted.

SubName

Name of derived information related to the type targeted by Name.

public string? SubName { get; set; }

Property Value

string

subName

Remarks

Leaving this property blank means it will not be a limiting factor for the query, meaning "Any" value is accepted.

To top