Table of Contents

Class UnifiedPermissionQuery

Namespace
Dynamicweb.Security.Permissions
Assembly
Dynamicweb.Security.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 class UnifiedPermissionQuery
Inheritance
UnifiedPermissionQuery
Inherited Members

Properties

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

Examples

"Page", "Paragraph", "Item", "MyOwnCustomType" etc.

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. Name="Page", SubName="Sort" gives permissions for the Sort field
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.

UserId

User id
public string UserId { get; set; }

Property Value

string
userId

Remarks

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

Methods

GetIdentifier()

Gets the identifier for this query.
public UnifiedPermissionIdentifier GetIdentifier()

Returns

UnifiedPermissionIdentifier
identifier
To top