Table of Contents

Class PermissionEntityIdentifier

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

A permission entity identifier is a unique identifier for "something" that has a permission level.

public sealed class PermissionEntityIdentifier : IEquatable<PermissionEntityIdentifier>
Inheritance
PermissionEntityIdentifier
Implements
Inherited Members

Remarks

Immutable

Constructors

PermissionEntityIdentifier(string, string)

Combination of values that form a unique identifier.

public PermissionEntityIdentifier(string key, string name)

Parameters

key string

Identity key value

name string

Name of type that is affected by permission

PermissionEntityIdentifier(string, string, string)

Combination of values that form a unique identifier.

public PermissionEntityIdentifier(string key, string name, string subName)

Parameters

key string

Identity key value

name string

Name of type that is affected by permission

subName string

Name of derived information related to the type targeted by Name

Properties

Key

Gets the identifier of the instance that is affected by this permission, e.g. "123" for a given page id.

public string Key { get; }

Property Value

string

Name

Gets the name of the type that is affected by this permission, e.g "Page", "Paragraph", "Item", "MyOwnCustomType" etc.

public string Name { get; }

Property Value

string

SubName

Gets the name of a subtype that is affected by this permission.

public string SubName { get; }

Property Value

string

Methods

Equals(PermissionEntityIdentifier?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PermissionEntityIdentifier? other)

Parameters

other PermissionEntityIdentifier

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

To top