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
PermissionEntityIdentifier(string, string, string)
Combination of values that form a unique identifier.
public PermissionEntityIdentifier(string key, string name, string subName)
Parameters
key
stringIdentity key value
name
stringName of type that is affected by permission
subName
stringName 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
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
SubName
Gets the name of a subtype that is affected by this permission.
public string SubName { get; }
Property Value
Methods
Equals(PermissionEntityIdentifier?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PermissionEntityIdentifier? other)
Parameters
other
PermissionEntityIdentifierAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.